Generated by TestNG with ReportNG at 22:18 PDT on Tuesday 26 July 2022
root@ed1b7dd8a1b3 / Java 17.0.2 (Private Build) / Linux 4.14.281-212.502.amzn2.x86_64 (amd64)

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

Suites · Log Output

Test duration : 8.789s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.109s
2022-07-26 22:32:58 |

2022-07-26 22:32:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:32:58 | ------------------------------------

2022-07-26 22:32:58 | [Mutex] waiting for: [configured:node:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:node-b8a5c41e-2dec-44df-8a24-164f302f129d]

2022-07-26 22:32:58 | [Mutex] received everything.

2022-07-26 22:32:58 | [Mutex] isItemNotified: configured:node:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:node-b8a5c41e-2dec-44df-8a24-164f302f129d :: true

2022-07-26 22:32:59 | [Mutex] waiting for: [received:nodes:2931de2b-5f0d-45c6-9f37-3c875d58b881:localhost]

2022-07-26 22:32:59 | [Mutex] received everything.

2022-07-26 22:32:59 | [Mutex] isItemNotified: received:node:2931de2b-5f0d-45c6-9f37-3c875d58b881:localhost:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:Node 339e1d09-595c-49cd-8367-4c88fb97a6e2 :: true

2022-07-26 22:32:59 | [Mutex] waiting for: [received:nodes:ed141ea9-dddf-4053-ab69-2fc560480927:localhost]

2022-07-26 22:32:59 | [Mutex] received everything.

2022-07-26 22:32:59 | [Mutex] isItemNotified: received:node:ed141ea9-dddf-4053-ab69-2fc560480927:localhost:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:Node 339e1d09-595c-49cd-8367-4c88fb97a6e2 :: false

createNodes 1.671s
2022-07-26 22:32:55 |

2022-07-26 22:32:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:32:55 | ------------------------------------

2022-07-26 22:32:56 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "pubsub#title": "Node 339e1d09-595c-49cd-8367-4c88fb97a6e2"
}

2022-07-26 22:32:56 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-26 22:32:57 | [Mutex] waiting for: [received:nodes:e75f52e9-7d3c-408e-a90e-9008c7186f58:localhost]

2022-07-26 22:32:57 | [Mutex] received everything.

2022-07-26 22:32:57 | [Mutex] isItemNotified: received:node:e75f52e9-7d3c-408e-a90e-9008c7186f58:localhost:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:Node 339e1d09-595c-49cd-8367-4c88fb97a6e2 :: true

createSubnodes 1.024s
2022-07-26 22:32:57 |

2022-07-26 22:32:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:32:57 | ------------------------------------

2022-07-26 22:32:57 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-b8a5c41e-2dec-44df-8a24-164f302f129d",
    "pubsub#title": "Node b8a5c41e-2dec-44df-8a24-164f302f129d"
}

2022-07-26 22:32:57 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-26 22:32:58 | [Mutex] waiting for: [received:nodes:bb951a1b-b9f9-4fd7-97c0-9bf44f7d39f6:localhost]

2022-07-26 22:32:58 | [Mutex] received everything.

2022-07-26 22:32:58 | [Mutex] isItemNotified: received:node:bb951a1b-b9f9-4fd7-97c0-9bf44f7d39f6:localhost:node-b8a5c41e-2dec-44df-8a24-164f302f129d:Node b8a5c41e-2dec-44df-8a24-164f302f129d :: true

deleteNodes 1.019s
2022-07-26 22:33:02 |

2022-07-26 22:33:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:02 | ------------------------------------

2022-07-26 22:33:02 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-b8a5c41e-2dec-44df-8a24-164f302f129d"
}

2022-07-26 22:33:02 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-26 22:33:03 | [Mutex] waiting for: [received:nodes:be69e086-a9fe-4b44-ae99-66722ccacbd4:localhost]

2022-07-26 22:33:03 | [Mutex] waiting for: [received:nodes:be69e086-a9fe-4b44-ae99-66722ccacbd4:localhost]

2022-07-26 22:33:03 | [Mutex] received everything.

2022-07-26 22:33:03 | [Mutex] isItemNotified: received:node:be69e086-a9fe-4b44-ae99-66722ccacbd4:localhost:node-b8a5c41e-2dec-44df-8a24-164f302f129d:Node b8a5c41e-2dec-44df-8a24-164f302f129d :: false

deleteSubnodes 1.030s
2022-07-26 22:33:01 |

2022-07-26 22:33:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:01 | ------------------------------------

2022-07-26 22:33:01 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2"
}

2022-07-26 22:33:01 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-07-26 22:33:02 | [Mutex] waiting for: [received:nodes:f9a7e6c8-b2f2-4bbb-871c-e345372ea20b:localhost]

2022-07-26 22:33:02 | [Mutex] received everything.

2022-07-26 22:33:02 | [Mutex] isItemNotified: received:node:f9a7e6c8-b2f2-4bbb-871c-e345372ea20b:localhost:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:Node 339e1d09-595c-49cd-8367-4c88fb97a6e2 :: false

2022-07-26 22:33:02 | [Mutex] waiting for: [received:nodes:ff9705b7-00fd-4adf-81dc-f832d2a7b017:localhost]

2022-07-26 22:33:02 | [Mutex] received everything.

2022-07-26 22:33:02 | [Mutex] isItemNotified: received:node:ff9705b7-00fd-4adf-81dc-f832d2a7b017:localhost:node-339e1d09-595c-49cd-8367-4c88fb97a6e2:Node 339e1d09-595c-49cd-8367-4c88fb97a6e2 :: false

publishItemsToNodes 0.063s
2022-07-26 22:33:00 |

2022-07-26 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:00 | ------------------------------------

2022-07-26 22:33:00 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "entry": "<test>item-ac11c2f0-5577-45f1-b18a-4158a8d756fb</test>",
    "item-id": "item-ac11c2f0-5577-45f1-b18a-4158a8d756fb"
}

2022-07-26 22:33:00 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ac11c2f0-5577-45f1-b18a-4158a8d756fb"
}

2022-07-26 22:33:00 | [Mutex] waiting for: [published:item:notifieditem-ac11c2f0-5577-45f1-b18a-4158a8d756fb:admin@test-domain.com]

2022-07-26 22:33:00 | [Mutex] received everything.

2022-07-26 22:33:00 | [Mutex] isItemNotified: published:item:notifieditem-ac11c2f0-5577-45f1-b18a-4158a8d756fb:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-07-26 22:33:00 |

2022-07-26 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:00 | ------------------------------------

2022-07-26 22:33:00 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "item-id": "item-ac11c2f0-5577-45f1-b18a-4158a8d756fb"
}

2022-07-26 22:33:00 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-ac11c2f0-5577-45f1-b18a-4158a8d756fb"
}

2022-07-26 22:33:00 | [Mutex] received everything.

2022-07-26 22:33:00 | [Mutex] isItemNotified: retracted:item:notifieditem-ac11c2f0-5577-45f1-b18a-4158a8d756fb:admin@test-domain.com :: true

retrieveItemsFromNodes 0.014s
2022-07-26 22:33:00 |

2022-07-26 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:00 | ------------------------------------

2022-07-26 22:33:00 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "item-id": "item-ac11c2f0-5577-45f1-b18a-4158a8d756fb"
}

2022-07-26 22:33:00 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "item-id": "item-ac11c2f0-5577-45f1-b18a-4158a8d756fb",
    "item": [
        "<item id=\"item-ac11c2f0-5577-45f1-b18a-4158a8d756fb\"><test>item-ac11c2f0-5577-45f1-b18a-4158a8d756fb</test></item>"
    ]
}

2022-07-26 22:33:00 | [Mutex] notify: [retrieved:item:item-ac11c2f0-5577-45f1-b18a-4158a8d756fb:payload-matches:true:localhost]

2022-07-26 22:33:00 | [Mutex] received everything.

2022-07-26 22:33:00 | [Mutex] isItemNotified: retrieved:item:item-ac11c2f0-5577-45f1-b18a-4158a8d756fb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.079s
2022-07-26 22:33:00 |

2022-07-26 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:00 | ------------------------------------

2022-07-26 22:33:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2022-07-26 22:33:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-b8a5c41e-2dec-44df-8a24-164f302f129d",
        "test",
        "node-339e1d09-595c-49cd-8367-4c88fb97a6e2"
    ]
}

retrieveUserSubscriptionsWithRegex 0.048s
2022-07-26 22:33:00 |

2022-07-26 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:00 | ------------------------------------

2022-07-26 22:33:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-339e1d09-595c-49cd-8367-4c88fb97a6e2)"
}

2022-07-26 22:33:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.011s
2022-07-26 22:32:59 |

2022-07-26 22:32:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:32:59 | ------------------------------------

2022-07-26 22:32:59 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-26 22:32:59 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.066s
2022-07-26 22:33:00 |

2022-07-26 22:33:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-07-26 22:33:00 | ------------------------------------

2022-07-26 22:33:00 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-339e1d09-595c-49cd-8367-4c88fb97a6e2",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-07-26 22:33:00 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}