Generated by TestNG with ReportNG at 22:46 PDT on Thursday 06 October 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.597s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.084s
2022-10-06 23:00:24 |

2022-10-06 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:24 | ------------------------------------

2022-10-06 23:00:24 | [Mutex] waiting for: [configured:node:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:node-362f512a-aac8-4456-bfbf-ac92217599e6]

2022-10-06 23:00:24 | [Mutex] received everything.

2022-10-06 23:00:24 | [Mutex] isItemNotified: configured:node:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:node-362f512a-aac8-4456-bfbf-ac92217599e6 :: true

2022-10-06 23:00:25 | [Mutex] waiting for: [received:nodes:bbae6204-0b74-4ee9-a954-d43df28e29db:localhost]

2022-10-06 23:00:25 | [Mutex] received everything.

2022-10-06 23:00:25 | [Mutex] isItemNotified: received:node:bbae6204-0b74-4ee9-a954-d43df28e29db:localhost:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:Node d51bc705-e6b8-417f-b29e-5585ebdc68d3 :: true

2022-10-06 23:00:25 | [Mutex] waiting for: [received:nodes:88b6244f-7dbe-461c-a1e0-5d4a491f8a95:localhost]

2022-10-06 23:00:25 | [Mutex] received everything.

2022-10-06 23:00:25 | [Mutex] isItemNotified: received:node:88b6244f-7dbe-461c-a1e0-5d4a491f8a95:localhost:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:Node d51bc705-e6b8-417f-b29e-5585ebdc68d3 :: false

createNodes 1.578s
2022-10-06 23:00:21 |

2022-10-06 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:21 | ------------------------------------

2022-10-06 23:00:22 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "pubsub#title": "Node d51bc705-e6b8-417f-b29e-5585ebdc68d3"
}

2022-10-06 23:00:22 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-06 23:00:23 | [Mutex] waiting for: [received:nodes:6dc0ca77-c181-436c-9d3f-4ac8cb2f6552:localhost]

2022-10-06 23:00:23 | [Mutex] waiting for: [received:nodes:6dc0ca77-c181-436c-9d3f-4ac8cb2f6552:localhost]

2022-10-06 23:00:23 | [Mutex] waiting for: [received:nodes:6dc0ca77-c181-436c-9d3f-4ac8cb2f6552:localhost]

2022-10-06 23:00:23 | [Mutex] waiting for: [received:nodes:6dc0ca77-c181-436c-9d3f-4ac8cb2f6552:localhost]

2022-10-06 23:00:23 | [Mutex] received everything.

2022-10-06 23:00:23 | [Mutex] isItemNotified: received:node:6dc0ca77-c181-436c-9d3f-4ac8cb2f6552:localhost:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:Node d51bc705-e6b8-417f-b29e-5585ebdc68d3 :: true

createSubnodes 1.022s
2022-10-06 23:00:23 |

2022-10-06 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:23 | ------------------------------------

2022-10-06 23:00:23 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-362f512a-aac8-4456-bfbf-ac92217599e6",
    "pubsub#title": "Node 362f512a-aac8-4456-bfbf-ac92217599e6"
}

2022-10-06 23:00:23 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-06 23:00:24 | [Mutex] waiting for: [received:nodes:44dce592-a567-4c81-b37c-06690e4d9af4:localhost]

2022-10-06 23:00:24 | [Mutex] waiting for: [received:nodes:44dce592-a567-4c81-b37c-06690e4d9af4:localhost]

2022-10-06 23:00:24 | [Mutex] received everything.

2022-10-06 23:00:24 | [Mutex] isItemNotified: received:node:44dce592-a567-4c81-b37c-06690e4d9af4:localhost:node-362f512a-aac8-4456-bfbf-ac92217599e6:Node 362f512a-aac8-4456-bfbf-ac92217599e6 :: true

deleteNodes 1.022s
2022-10-06 23:00:28 |

2022-10-06 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:28 | ------------------------------------

2022-10-06 23:00:28 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-362f512a-aac8-4456-bfbf-ac92217599e6"
}

2022-10-06 23:00:28 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-06 23:00:29 | [Mutex] waiting for: [received:nodes:42c11700-774e-40d1-8bb2-3e5e71606ef0:localhost]

2022-10-06 23:00:29 | [Mutex] waiting for: [received:nodes:42c11700-774e-40d1-8bb2-3e5e71606ef0:localhost]

2022-10-06 23:00:29 | [Mutex] waiting for: [received:nodes:42c11700-774e-40d1-8bb2-3e5e71606ef0:localhost]

2022-10-06 23:00:29 | [Mutex] received everything.

2022-10-06 23:00:29 | [Mutex] isItemNotified: received:node:42c11700-774e-40d1-8bb2-3e5e71606ef0:localhost:node-362f512a-aac8-4456-bfbf-ac92217599e6:Node 362f512a-aac8-4456-bfbf-ac92217599e6 :: false

deleteSubnodes 1.025s
2022-10-06 23:00:27 |

2022-10-06 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:27 | ------------------------------------

2022-10-06 23:00:27 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3"
}

2022-10-06 23:00:27 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2022-10-06 23:00:28 | [Mutex] waiting for: [received:nodes:d59cad9b-85f0-4b0a-b923-576074c3190e:localhost]

2022-10-06 23:00:28 | [Mutex] received everything.

2022-10-06 23:00:28 | [Mutex] isItemNotified: received:node:d59cad9b-85f0-4b0a-b923-576074c3190e:localhost:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:Node d51bc705-e6b8-417f-b29e-5585ebdc68d3 :: false

2022-10-06 23:00:28 | [Mutex] waiting for: [received:nodes:fefa3e74-df0b-4498-9c96-a63526df7f14:localhost]

2022-10-06 23:00:28 | [Mutex] received everything.

2022-10-06 23:00:28 | [Mutex] isItemNotified: received:node:fefa3e74-df0b-4498-9c96-a63526df7f14:localhost:node-d51bc705-e6b8-417f-b29e-5585ebdc68d3:Node d51bc705-e6b8-417f-b29e-5585ebdc68d3 :: false

publishItemsToNodes 0.037s
2022-10-06 23:00:26 |

2022-10-06 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:26 | ------------------------------------

2022-10-06 23:00:26 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "entry": "<test>item-67035850-443d-4144-8b27-e95646ad9748</test>",
    "item-id": "item-67035850-443d-4144-8b27-e95646ad9748"
}

2022-10-06 23:00:26 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-67035850-443d-4144-8b27-e95646ad9748"
}

2022-10-06 23:00:26 | [Mutex] received everything.

2022-10-06 23:00:26 | [Mutex] isItemNotified: published:item:notifieditem-67035850-443d-4144-8b27-e95646ad9748:admin@test-domain.com :: true

retractItemsFromNodes 0.051s
2022-10-06 23:00:26 |

2022-10-06 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:26 | ------------------------------------

2022-10-06 23:00:26 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "item-id": "item-67035850-443d-4144-8b27-e95646ad9748"
}

2022-10-06 23:00:26 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-67035850-443d-4144-8b27-e95646ad9748"
}

2022-10-06 23:00:26 | [Mutex] received everything.

2022-10-06 23:00:26 | [Mutex] isItemNotified: retracted:item:notifieditem-67035850-443d-4144-8b27-e95646ad9748:admin@test-domain.com :: true

retrieveItemsFromNodes 0.091s
2022-10-06 23:00:26 |

2022-10-06 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:26 | ------------------------------------

2022-10-06 23:00:26 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "item-id": "item-67035850-443d-4144-8b27-e95646ad9748"
}

2022-10-06 23:00:26 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "item-id": "item-67035850-443d-4144-8b27-e95646ad9748",
    "item": [
        "<item id=\"item-67035850-443d-4144-8b27-e95646ad9748\"><test>item-67035850-443d-4144-8b27-e95646ad9748</test></item>"
    ]
}

2022-10-06 23:00:26 | [Mutex] notify: [retrieved:item:item-67035850-443d-4144-8b27-e95646ad9748:payload-matches:true:localhost]

2022-10-06 23:00:26 | [Mutex] received everything.

2022-10-06 23:00:26 | [Mutex] isItemNotified: retrieved:item:item-67035850-443d-4144-8b27-e95646ad9748:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.047s
2022-10-06 23:00:26 |

2022-10-06 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:26 | ------------------------------------

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

2022-10-06 23:00:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "node-362f512a-aac8-4456-bfbf-ac92217599e6",
        "test",
        "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3"
    ]
}

retrieveUserSubscriptionsWithRegex 0.047s
2022-10-06 23:00:26 |

2022-10-06 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:26 | ------------------------------------

2022-10-06 23:00:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d51bc705-e6b8-417f-b29e-5585ebdc68d3)"
}

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

subscribeNodes 1.010s
2022-10-06 23:00:25 |

2022-10-06 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:25 | ------------------------------------

2022-10-06 23:00:25 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "jids": [
        "admin@test-domain.com"
    ]
}

2022-10-06 23:00:25 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.051s
2022-10-06 23:00:26 |

2022-10-06 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2022-10-06 23:00:26 | ------------------------------------

2022-10-06 23:00:26 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d51bc705-e6b8-417f-b29e-5585ebdc68d3",
    "jids": [
        "admin@test-domain.com"
    ]
}

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