Generated by TestNG with ReportNG at 23:31 PDT on Thursday 17 September 2020
root@f53a97fae7d2 / 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.896s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.039s
2020-09-17 23:50:53 |

2020-09-17 23:50:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:53 | ------------------------------------

2020-09-17 23:50:53 | [Mutex] waiting for: [configured:node:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e]

2020-09-17 23:50:53 | [Mutex] received everything.

2020-09-17 23:50:53 | [Mutex] isItemNotified: configured:node:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e :: true

2020-09-17 23:50:54 | [Mutex] waiting for: [received:nodes:f0502519-60b1-4b11-8737-24efbdde8e62:localhost]

2020-09-17 23:50:54 | [Mutex] received everything.

2020-09-17 23:50:54 | [Mutex] isItemNotified: received:node:f0502519-60b1-4b11-8737-24efbdde8e62:localhost:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:Node d3dfcee9-21bd-47f2-9861-eb00ba7da45b :: true

2020-09-17 23:50:54 | [Mutex] waiting for: [received:nodes:14d17b28-42e4-46d4-ac34-b5bb8f3d9330:localhost]

2020-09-17 23:50:54 | [Mutex] received everything.

2020-09-17 23:50:54 | [Mutex] isItemNotified: received:node:14d17b28-42e4-46d4-ac34-b5bb8f3d9330:localhost:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:Node d3dfcee9-21bd-47f2-9861-eb00ba7da45b :: false

createNodes 1.629s
2020-09-17 23:50:50 |

2020-09-17 23:50:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:50 | ------------------------------------

2020-09-17 23:50:50 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "pubsub#title": "Node d3dfcee9-21bd-47f2-9861-eb00ba7da45b"
}

2020-09-17 23:50:50 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-17 23:50:51 | [Mutex] waiting for: [received:nodes:d5ff94c9-8cd6-413f-9f0c-182b718c4c25:localhost]

2020-09-17 23:50:52 | [Mutex] waiting for: [received:nodes:d5ff94c9-8cd6-413f-9f0c-182b718c4c25:localhost]

2020-09-17 23:50:52 | [Mutex] received everything.

2020-09-17 23:50:52 | [Mutex] isItemNotified: received:node:d5ff94c9-8cd6-413f-9f0c-182b718c4c25:localhost:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:Node d3dfcee9-21bd-47f2-9861-eb00ba7da45b :: true

createSubnodes 1.023s
2020-09-17 23:50:52 |

2020-09-17 23:50:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:52 | ------------------------------------

2020-09-17 23:50:52 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e",
    "pubsub#title": "Node aff1ed4d-3caf-49b8-ba6d-58d3beae327e"
}

2020-09-17 23:50:52 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-17 23:50:53 | [Mutex] waiting for: [received:nodes:f7ac0e13-2db8-4b4b-abf5-df1c33e65e89:localhost]

2020-09-17 23:50:53 | [Mutex] received everything.

2020-09-17 23:50:53 | [Mutex] isItemNotified: received:node:f7ac0e13-2db8-4b4b-abf5-df1c33e65e89:localhost:node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e:Node aff1ed4d-3caf-49b8-ba6d-58d3beae327e :: true

deleteNodes 1.020s
2020-09-17 23:50:57 |

2020-09-17 23:50:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:57 | ------------------------------------

2020-09-17 23:50:57 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e"
}

2020-09-17 23:50:57 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-17 23:50:58 | [Mutex] waiting for: [received:nodes:cfd278f7-fc93-43c2-a446-5a923a00ddad:localhost]

2020-09-17 23:50:58 | [Mutex] waiting for: [received:nodes:cfd278f7-fc93-43c2-a446-5a923a00ddad:localhost]

2020-09-17 23:50:58 | [Mutex] received everything.

2020-09-17 23:50:58 | [Mutex] isItemNotified: received:node:cfd278f7-fc93-43c2-a446-5a923a00ddad:localhost:node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e:Node aff1ed4d-3caf-49b8-ba6d-58d3beae327e :: false

deleteSubnodes 1.059s
2020-09-17 23:50:56 |

2020-09-17 23:50:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:56 | ------------------------------------

2020-09-17 23:50:56 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b"
}

2020-09-17 23:50:56 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2020-09-17 23:50:57 | [Mutex] waiting for: [received:nodes:bb5bfbef-007d-482d-b2bf-752293133129:localhost]

2020-09-17 23:50:57 | [Mutex] waiting for: [received:nodes:bb5bfbef-007d-482d-b2bf-752293133129:localhost]

2020-09-17 23:50:57 | [Mutex] waiting for: [received:nodes:bb5bfbef-007d-482d-b2bf-752293133129:localhost]

2020-09-17 23:50:57 | [Mutex] received everything.

2020-09-17 23:50:57 | [Mutex] isItemNotified: received:node:bb5bfbef-007d-482d-b2bf-752293133129:localhost:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:Node d3dfcee9-21bd-47f2-9861-eb00ba7da45b :: false

2020-09-17 23:50:57 | [Mutex] waiting for: [received:nodes:e55e40b8-2bf5-43af-bf56-64113cdca15d:localhost]

2020-09-17 23:50:57 | [Mutex] received everything.

2020-09-17 23:50:57 | [Mutex] isItemNotified: received:node:e55e40b8-2bf5-43af-bf56-64113cdca15d:localhost:node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b:Node d3dfcee9-21bd-47f2-9861-eb00ba7da45b :: false

publishItemsToNodes 0.049s
2020-09-17 23:50:55 |

2020-09-17 23:50:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:55 | ------------------------------------

2020-09-17 23:50:55 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "entry": "<test>item-334e1848-0ab8-473c-b0f5-214f62919a87</test>",
    "item-id": "item-334e1848-0ab8-473c-b0f5-214f62919a87"
}

2020-09-17 23:50:55 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-334e1848-0ab8-473c-b0f5-214f62919a87"
}

2020-09-17 23:50:55 | [Mutex] waiting for: [published:item:notifieditem-334e1848-0ab8-473c-b0f5-214f62919a87:admin@test-domain.com]

2020-09-17 23:50:55 | [Mutex] received everything.

2020-09-17 23:50:55 | [Mutex] isItemNotified: published:item:notifieditem-334e1848-0ab8-473c-b0f5-214f62919a87:admin@test-domain.com :: true

retractItemsFromNodes 0.105s
2020-09-17 23:50:55 |

2020-09-17 23:50:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:55 | ------------------------------------

2020-09-17 23:50:55 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "item-id": "item-334e1848-0ab8-473c-b0f5-214f62919a87"
}

2020-09-17 23:50:55 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-334e1848-0ab8-473c-b0f5-214f62919a87"
}

2020-09-17 23:50:55 | [Mutex] waiting for: [retracted:item:notifieditem-334e1848-0ab8-473c-b0f5-214f62919a87:admin@test-domain.com]

2020-09-17 23:50:55 | [Mutex] received everything.

2020-09-17 23:50:55 | [Mutex] isItemNotified: retracted:item:notifieditem-334e1848-0ab8-473c-b0f5-214f62919a87:admin@test-domain.com :: true

retrieveItemsFromNodes 0.055s
2020-09-17 23:50:55 |

2020-09-17 23:50:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:55 | ------------------------------------

2020-09-17 23:50:55 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "item-id": "item-334e1848-0ab8-473c-b0f5-214f62919a87"
}

2020-09-17 23:50:55 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "item-id": "item-334e1848-0ab8-473c-b0f5-214f62919a87",
    "item": [
        "<item id=\"item-334e1848-0ab8-473c-b0f5-214f62919a87\"><test>item-334e1848-0ab8-473c-b0f5-214f62919a87</test></item>"
    ]
}

2020-09-17 23:50:55 | [Mutex] notify: [retrieved:item:item-334e1848-0ab8-473c-b0f5-214f62919a87:payload-matches:true:localhost]

2020-09-17 23:50:55 | [Mutex] received everything.

2020-09-17 23:50:55 | [Mutex] isItemNotified: retrieved:item:item-334e1848-0ab8-473c-b0f5-214f62919a87:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2020-09-17 23:50:55 |

2020-09-17 23:50:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:55 | ------------------------------------

2020-09-17 23:50:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2020-09-17 23:50:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
        "node-aff1ed4d-3caf-49b8-ba6d-58d3beae327e",
        "test"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2020-09-17 23:50:55 |

2020-09-17 23:50:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:55 | ------------------------------------

2020-09-17 23:50:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b)"
}

2020-09-17 23:50:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.010s
2020-09-17 23:50:54 |

2020-09-17 23:50:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:54 | ------------------------------------

2020-09-17 23:50:54 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-17 23:50:54 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.015s
2020-09-17 23:50:55 |

2020-09-17 23:50:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2020-09-17 23:50:55 | ------------------------------------

2020-09-17 23:50:55 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d3dfcee9-21bd-47f2-9861-eb00ba7da45b",
    "jids": [
        "admin@test-domain.com"
    ]
}

2020-09-17 23:50:55 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}