Generated by TestNG with ReportNG at 21:13 PST on Tuesday 03 November 2020
root@eaa73862192b / Java 11.0.8 (Ubuntu) / Linux 4.14.186-146.268.amzn2.x86_64 (amd64)

REST: Node and item manipulation using REST API - JSON - #4728

Suites · Log Output

Test duration : 8.943s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.102s
2020-11-03 21:31:21 |

2020-11-03 21:31:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:21 | ------------------------------------

2020-11-03 21:31:21 | [Mutex] waiting for: [configured:node:node-2de92c7a-4e61-4112-932c-9334eee06467:node-2a7afccf-ad3a-402a-846d-8bb53991d160]

2020-11-03 21:31:21 | [Mutex] received everything.

2020-11-03 21:31:21 | [Mutex] isItemNotified: configured:node:node-2de92c7a-4e61-4112-932c-9334eee06467:node-2a7afccf-ad3a-402a-846d-8bb53991d160 :: true

2020-11-03 21:31:22 | [Mutex] waiting for: [received:nodes:21287a4f-64b5-4478-8fa2-744141cab052:localhost]

2020-11-03 21:31:22 | [Mutex] received everything.

2020-11-03 21:31:22 | [Mutex] isItemNotified: received:node:21287a4f-64b5-4478-8fa2-744141cab052:localhost:node-2de92c7a-4e61-4112-932c-9334eee06467:Node 2de92c7a-4e61-4112-932c-9334eee06467 :: true

2020-11-03 21:31:22 | [Mutex] waiting for: [received:nodes:c6cec28e-2eb6-4106-8b1a-ff2a4c922df7:localhost]

2020-11-03 21:31:22 | [Mutex] received everything.

2020-11-03 21:31:22 | [Mutex] isItemNotified: received:node:c6cec28e-2eb6-4106-8b1a-ff2a4c922df7:localhost:node-2de92c7a-4e61-4112-932c-9334eee06467:Node 2de92c7a-4e61-4112-932c-9334eee06467 :: false

createNodes 1.617s
2020-11-03 21:31:18 |

2020-11-03 21:31:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:18 | ------------------------------------

2020-11-03 21:31:19 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "pubsub#title": "Node 2de92c7a-4e61-4112-932c-9334eee06467"
}

2020-11-03 21:31:19 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:31:20 | [Mutex] waiting for: [received:nodes:da3b162b-45b9-45c6-b2fb-5f3765018b03:localhost]

2020-11-03 21:31:20 | [Mutex] received everything.

2020-11-03 21:31:20 | [Mutex] isItemNotified: received:node:da3b162b-45b9-45c6-b2fb-5f3765018b03:localhost:node-2de92c7a-4e61-4112-932c-9334eee06467:Node 2de92c7a-4e61-4112-932c-9334eee06467 :: true

createSubnodes 1.022s
2020-11-03 21:31:20 |

2020-11-03 21:31:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:20 | ------------------------------------

2020-11-03 21:31:20 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-2a7afccf-ad3a-402a-846d-8bb53991d160",
    "pubsub#title": "Node 2a7afccf-ad3a-402a-846d-8bb53991d160"
}

2020-11-03 21:31:20 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:31:21 | [Mutex] waiting for: [received:nodes:f9002589-a2ae-4900-b740-089d31b0fcd5:localhost]

2020-11-03 21:31:21 | [Mutex] waiting for: [received:nodes:f9002589-a2ae-4900-b740-089d31b0fcd5:localhost]

2020-11-03 21:31:21 | [Mutex] received everything.

2020-11-03 21:31:21 | [Mutex] isItemNotified: received:node:f9002589-a2ae-4900-b740-089d31b0fcd5:localhost:node-2a7afccf-ad3a-402a-846d-8bb53991d160:Node 2a7afccf-ad3a-402a-846d-8bb53991d160 :: true

deleteNodes 1.025s
2020-11-03 21:31:25 |

2020-11-03 21:31:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:25 | ------------------------------------

2020-11-03 21:31:25 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2a7afccf-ad3a-402a-846d-8bb53991d160"
}

2020-11-03 21:31:25 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:31:26 | [Mutex] waiting for: [received:nodes:6431649e-8dcb-4dec-92ea-3aadac2a3080:localhost]

2020-11-03 21:31:26 | [Mutex] waiting for: [received:nodes:6431649e-8dcb-4dec-92ea-3aadac2a3080:localhost]

2020-11-03 21:31:26 | [Mutex] received everything.

2020-11-03 21:31:26 | [Mutex] isItemNotified: received:node:6431649e-8dcb-4dec-92ea-3aadac2a3080:localhost:node-2a7afccf-ad3a-402a-846d-8bb53991d160:Node 2a7afccf-ad3a-402a-846d-8bb53991d160 :: false

deleteSubnodes 1.024s
2020-11-03 21:31:24 |

2020-11-03 21:31:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:24 | ------------------------------------

2020-11-03 21:31:24 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467"
}

2020-11-03 21:31:24 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-11-03 21:31:25 | [Mutex] waiting for: [received:nodes:c9af4c23-925e-47a6-85dc-b44b3109afb6:localhost]

2020-11-03 21:31:25 | [Mutex] waiting for: [received:nodes:c9af4c23-925e-47a6-85dc-b44b3109afb6:localhost]

2020-11-03 21:31:25 | [Mutex] received everything.

2020-11-03 21:31:25 | [Mutex] isItemNotified: received:node:c9af4c23-925e-47a6-85dc-b44b3109afb6:localhost:node-2de92c7a-4e61-4112-932c-9334eee06467:Node 2de92c7a-4e61-4112-932c-9334eee06467 :: false

2020-11-03 21:31:25 | [Mutex] waiting for: [received:nodes:f91dae4d-7738-4ddb-bb1b-022d35d50de3:localhost]

2020-11-03 21:31:25 | [Mutex] received everything.

2020-11-03 21:31:25 | [Mutex] isItemNotified: received:node:f91dae4d-7738-4ddb-bb1b-022d35d50de3:localhost:node-2de92c7a-4e61-4112-932c-9334eee06467:Node 2de92c7a-4e61-4112-932c-9334eee06467 :: false

publishItemsToNodes 0.101s
2020-11-03 21:31:23 |

2020-11-03 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:23 | ------------------------------------

2020-11-03 21:31:23 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "entry": "<test>item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d</test>",
    "item-id": "item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d"
}

2020-11-03 21:31:23 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d"
}

2020-11-03 21:31:23 | [Mutex] waiting for: [published:item:notifieditem-e3d3dd34-22e7-42f7-b4d3-e47976cb181d:admin@test-domain.com]

2020-11-03 21:31:23 | [Mutex] received everything.

2020-11-03 21:31:23 | [Mutex] isItemNotified: published:item:notifieditem-e3d3dd34-22e7-42f7-b4d3-e47976cb181d:admin@test-domain.com :: true

retractItemsFromNodes 0.055s
2020-11-03 21:31:23 |

2020-11-03 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:23 | ------------------------------------

2020-11-03 21:31:23 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "item-id": "item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d"
}

2020-11-03 21:31:23 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d"
}

2020-11-03 21:31:23 | [Mutex] received everything.

2020-11-03 21:31:23 | [Mutex] isItemNotified: retracted:item:notifieditem-e3d3dd34-22e7-42f7-b4d3-e47976cb181d:admin@test-domain.com :: true

retrieveItemsFromNodes 0.022s
2020-11-03 21:31:23 |

2020-11-03 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:23 | ------------------------------------

2020-11-03 21:31:23 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "item-id": "item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d"
}

2020-11-03 21:31:23 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "item-id": "item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d",
    "item": [
        "<item id=\"item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d\"><test>item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d</test></item>"
    ]
}

2020-11-03 21:31:23 | [Mutex] notify: [retrieved:item:item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d:payload-matches:true:localhost]

2020-11-03 21:31:23 | [Mutex] received everything.

2020-11-03 21:31:23 | [Mutex] isItemNotified: retrieved:item:item-e3d3dd34-22e7-42f7-b4d3-e47976cb181d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.053s
2020-11-03 21:31:23 |

2020-11-03 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:23 | ------------------------------------

2020-11-03 21:31:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-11-03 21:31:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-2de92c7a-4e61-4112-932c-9334eee06467",
        "node-2a7afccf-ad3a-402a-846d-8bb53991d160"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2020-11-03 21:31:23 |

2020-11-03 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:23 | ------------------------------------

2020-11-03 21:31:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-2de92c7a-4e61-4112-932c-9334eee06467)"
}

2020-11-03 21:31:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2020-11-03 21:31:22 |

2020-11-03 21:31:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:22 | ------------------------------------

2020-11-03 21:31:22 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-03 21:31:22 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.060s
2020-11-03 21:31:23 |

2020-11-03 21:31:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-11-03 21:31:23 | ------------------------------------

2020-11-03 21:31:23 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-2de92c7a-4e61-4112-932c-9334eee06467",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-11-03 21:31:23 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}