Generated by TestNG with ReportNG at 22:18 PDT on Monday 03 April 2023
root@1512af24e4a5 / Java 17.0.6 (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.581s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingJSON
configureNodes 1.134s
2023-04-03 22:32:43 |

2023-04-03 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:43 | ------------------------------------

2023-04-03 22:32:43 | [Mutex] waiting for: [configured:node:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:node-a35ba61c-7aad-42cc-ace7-c25859c91da8]

2023-04-03 22:32:44 | [Mutex] received everything.

2023-04-03 22:32:44 | [Mutex] isItemNotified: configured:node:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:node-a35ba61c-7aad-42cc-ace7-c25859c91da8 :: true

2023-04-03 22:32:45 | [Mutex] waiting for: [received:nodes:542682dc-3629-4043-bb55-b14d6e88da85:localhost]

2023-04-03 22:32:45 | [Mutex] received everything.

2023-04-03 22:32:45 | [Mutex] isItemNotified: received:node:542682dc-3629-4043-bb55-b14d6e88da85:localhost:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:Node d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e :: true

2023-04-03 22:32:45 | [Mutex] waiting for: [received:nodes:30180254-29a8-4f23-80d3-83278ba33423:localhost]

2023-04-03 22:32:45 | [Mutex] waiting for: [received:nodes:30180254-29a8-4f23-80d3-83278ba33423:localhost]

2023-04-03 22:32:45 | [Mutex] waiting for: [received:nodes:30180254-29a8-4f23-80d3-83278ba33423:localhost]

2023-04-03 22:32:45 | [Mutex] waiting for: [received:nodes:30180254-29a8-4f23-80d3-83278ba33423:localhost]

2023-04-03 22:32:45 | [Mutex] received everything.

2023-04-03 22:32:45 | [Mutex] isItemNotified: received:node:30180254-29a8-4f23-80d3-83278ba33423:localhost:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:Node d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e :: false

createNodes 1.583s
2023-04-03 22:32:41 |

2023-04-03 22:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:41 | ------------------------------------

2023-04-03 22:32:41 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "leaf",
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "pubsub#title": "Node d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e"
}

2023-04-03 22:32:41 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:32:42 | [Mutex] waiting for: [received:nodes:d8e3d30e-3b0a-4fd6-b153-e4e0a9866c9a:localhost]

2023-04-03 22:32:42 | [Mutex] waiting for: [received:nodes:d8e3d30e-3b0a-4fd6-b153-e4e0a9866c9a:localhost]

2023-04-03 22:32:42 | [Mutex] waiting for: [received:nodes:d8e3d30e-3b0a-4fd6-b153-e4e0a9866c9a:localhost]

2023-04-03 22:32:42 | [Mutex] waiting for: [received:nodes:d8e3d30e-3b0a-4fd6-b153-e4e0a9866c9a:localhost]

2023-04-03 22:32:42 | [Mutex] received everything.

2023-04-03 22:32:42 | [Mutex] isItemNotified: received:node:d8e3d30e-3b0a-4fd6-b153-e4e0a9866c9a:localhost:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:Node d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e :: true

createSubnodes 1.032s
2023-04-03 22:32:42 |

2023-04-03 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:42 | ------------------------------------

2023-04-03 22:32:42 | on localhost executing action create-node with content type application/json and payload:
{
    "owner": "admin@test-domain.com",
    "pubsub#node_type": "collection",
    "node": "node-a35ba61c-7aad-42cc-ace7-c25859c91da8",
    "pubsub#title": "Node a35ba61c-7aad-42cc-ace7-c25859c91da8"
}

2023-04-03 22:32:42 | from localhost for action create-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:32:43 | [Mutex] waiting for: [received:nodes:83debdce-1bef-40d2-ac1c-0b79b8b14a20:localhost]

2023-04-03 22:32:43 | [Mutex] received everything.

2023-04-03 22:32:43 | [Mutex] isItemNotified: received:node:83debdce-1bef-40d2-ac1c-0b79b8b14a20:localhost:node-a35ba61c-7aad-42cc-ace7-c25859c91da8:Node a35ba61c-7aad-42cc-ace7-c25859c91da8 :: true

deleteNodes 1.021s
2023-04-03 22:32:48 |

2023-04-03 22:32:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:48 | ------------------------------------

2023-04-03 22:32:48 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-a35ba61c-7aad-42cc-ace7-c25859c91da8"
}

2023-04-03 22:32:48 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:32:49 | [Mutex] waiting for: [received:nodes:13197a9c-4ede-4680-bbc4-2fe1f2c7b9a9:localhost]

2023-04-03 22:32:49 | [Mutex] waiting for: [received:nodes:13197a9c-4ede-4680-bbc4-2fe1f2c7b9a9:localhost]

2023-04-03 22:32:49 | [Mutex] waiting for: [received:nodes:13197a9c-4ede-4680-bbc4-2fe1f2c7b9a9:localhost]

2023-04-03 22:32:49 | [Mutex] received everything.

2023-04-03 22:32:49 | [Mutex] isItemNotified: received:node:13197a9c-4ede-4680-bbc4-2fe1f2c7b9a9:localhost:node-a35ba61c-7aad-42cc-ace7-c25859c91da8:Node a35ba61c-7aad-42cc-ace7-c25859c91da8 :: false

deleteSubnodes 1.025s
2023-04-03 22:32:47 |

2023-04-03 22:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:47 | ------------------------------------

2023-04-03 22:32:47 | on localhost executing action delete-node with content type application/json and payload:
{
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e"
}

2023-04-03 22:32:47 | from localhost for action delete-node got result code 200 and payload
{
    "Note": "Operation successful"
}

2023-04-03 22:32:48 | [Mutex] waiting for: [received:nodes:b8ba2e6c-ff08-4aca-83c6-fb0b6f5a2d83:localhost]

2023-04-03 22:32:48 | [Mutex] waiting for: [received:nodes:b8ba2e6c-ff08-4aca-83c6-fb0b6f5a2d83:localhost]

2023-04-03 22:32:48 | [Mutex] waiting for: [received:nodes:b8ba2e6c-ff08-4aca-83c6-fb0b6f5a2d83:localhost]

2023-04-03 22:32:48 | [Mutex] waiting for: [received:nodes:b8ba2e6c-ff08-4aca-83c6-fb0b6f5a2d83:localhost]

2023-04-03 22:32:48 | [Mutex] received everything.

2023-04-03 22:32:48 | [Mutex] isItemNotified: received:node:b8ba2e6c-ff08-4aca-83c6-fb0b6f5a2d83:localhost:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:Node d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e :: false

2023-04-03 22:32:48 | [Mutex] waiting for: [received:nodes:9c799c46-505e-4235-b297-6e65ae3c4603:localhost]

2023-04-03 22:32:48 | [Mutex] received everything.

2023-04-03 22:32:48 | [Mutex] isItemNotified: received:node:9c799c46-505e-4235-b297-6e65ae3c4603:localhost:node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e:Node d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e :: false

publishItemsToNodes 0.033s
2023-04-03 22:32:46 |

2023-04-03 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:46 | ------------------------------------

2023-04-03 22:32:46 | on localhost executing action publish-item with content type application/json and payload:
{
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "entry": "<test>item-56c8904e-6ae8-4055-bb0a-577132c71f0f</test>",
    "item-id": "item-56c8904e-6ae8-4055-bb0a-577132c71f0f"
}

2023-04-03 22:32:46 | from localhost for action publish-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56c8904e-6ae8-4055-bb0a-577132c71f0f"
}

2023-04-03 22:32:46 | [Mutex] waiting for: [published:item:notifieditem-56c8904e-6ae8-4055-bb0a-577132c71f0f:admin@test-domain.com]

2023-04-03 22:32:46 | [Mutex] received everything.

2023-04-03 22:32:46 | [Mutex] isItemNotified: published:item:notifieditem-56c8904e-6ae8-4055-bb0a-577132c71f0f:admin@test-domain.com :: true

retractItemsFromNodes 0.062s
2023-04-03 22:32:46 |

2023-04-03 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:46 | ------------------------------------

2023-04-03 22:32:46 | on localhost executing action delete-item with content type application/json and payload:
{
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "item-id": "item-56c8904e-6ae8-4055-bb0a-577132c71f0f"
}

2023-04-03 22:32:46 | from localhost for action delete-item got result code 200 and payload
{
    "Note": "Operation successful",
    "item-id": "item-56c8904e-6ae8-4055-bb0a-577132c71f0f"
}

2023-04-03 22:32:46 | [Mutex] received everything.

2023-04-03 22:32:46 | [Mutex] isItemNotified: retracted:item:notifieditem-56c8904e-6ae8-4055-bb0a-577132c71f0f:admin@test-domain.com :: true

retrieveItemsFromNodes 0.063s
2023-04-03 22:32:46 |

2023-04-03 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:46 | ------------------------------------

2023-04-03 22:32:46 | on localhost executing action retrieve-item with content type application/json and payload:
{
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "item-id": "item-56c8904e-6ae8-4055-bb0a-577132c71f0f"
}

2023-04-03 22:32:46 | from localhost for action retrieve-item got result code 200 and payload
{
    "title": "Retrive PubSub node item",
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "item-id": "item-56c8904e-6ae8-4055-bb0a-577132c71f0f",
    "item": [
        "<item id=\"item-56c8904e-6ae8-4055-bb0a-577132c71f0f\"><test>item-56c8904e-6ae8-4055-bb0a-577132c71f0f</test></item>"
    ]
}

2023-04-03 22:32:46 | [Mutex] notify: [retrieved:item:item-56c8904e-6ae8-4055-bb0a-577132c71f0f:payload-matches:true:localhost]

2023-04-03 22:32:46 | [Mutex] received everything.

2023-04-03 22:32:46 | [Mutex] isItemNotified: retrieved:item:item-56c8904e-6ae8-4055-bb0a-577132c71f0f:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.051s
2023-04-03 22:32:46 |

2023-04-03 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:46 | ------------------------------------

2023-04-03 22:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com"
}

2023-04-03 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
        "test",
        "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
        "node-a35ba61c-7aad-42cc-ace7-c25859c91da8"
    ]
}

retrieveUserSubscriptionsWithRegex 0.052s
2023-04-03 22:32:46 |

2023-04-03 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:46 | ------------------------------------

2023-04-03 22:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload:
{
    "jid": "admin@test-domain.com",
    "node-pattern": "(?!node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e)"
}

2023-04-03 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
{
    "nodes": [
       
    ]
}

subscribeNodes 1.009s
2023-04-03 22:32:45 |

2023-04-03 22:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:45 | ------------------------------------

2023-04-03 22:32:45 | on localhost executing action subscribe-node with content type application/json and payload:
{
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 22:32:45 | from localhost for action subscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}

unsubscribeNodes 1.067s
2023-04-03 22:32:46 |

2023-04-03 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON]

2023-04-03 22:32:46 | ------------------------------------

2023-04-03 22:32:46 | on localhost executing action unsubscribe-node with content type application/json and payload:
{
    "node": "node-d13cf4b9-b7ee-453e-84b8-2113c3f2ab9e",
    "jids": [
        "admin@test-domain.com"
    ]
}

2023-04-03 22:32:46 | from localhost for action unsubscribe-node got result code 200 and payload
{
    "Note": "Operation successful"
}