Test duration : 8.584s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-12-16 04:58:50 |
2022-12-16 04:58:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:50 | ------------------------------------ 2022-12-16 04:58:50 | [Mutex] waiting for: [configured:node:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:node-02ea5f35-28c6-415e-8edb-01eef08255ce] 2022-12-16 04:58:50 | [Mutex] received everything. 2022-12-16 04:58:50 | [Mutex] isItemNotified: configured:node:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:node-02ea5f35-28c6-415e-8edb-01eef08255ce :: true 2022-12-16 04:58:51 | [Mutex] waiting for: [received:nodes:835f8710-5184-43dd-a390-42181ea00020:localhost] 2022-12-16 04:58:51 | [Mutex] received everything. 2022-12-16 04:58:51 | [Mutex] isItemNotified: received:node:835f8710-5184-43dd-a390-42181ea00020:localhost:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:Node 5bfd4e57-420d-4aa5-891a-57a5085280f0 :: true 2022-12-16 04:58:51 | [Mutex] waiting for: [received:nodes:e5fd6553-010c-453f-89da-35c8cdcea90b:localhost] 2022-12-16 04:58:51 | [Mutex] waiting for: [received:nodes:e5fd6553-010c-453f-89da-35c8cdcea90b:localhost] 2022-12-16 04:58:51 | [Mutex] waiting for: [received:nodes:e5fd6553-010c-453f-89da-35c8cdcea90b:localhost] 2022-12-16 04:58:51 | [Mutex] waiting for: [received:nodes:e5fd6553-010c-453f-89da-35c8cdcea90b:localhost] 2022-12-16 04:58:51 | [Mutex] received everything. 2022-12-16 04:58:51 | [Mutex] isItemNotified: received:node:e5fd6553-010c-453f-89da-35c8cdcea90b:localhost:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:Node 5bfd4e57-420d-4aa5-891a-57a5085280f0 :: false |
createNodes | 1.517s |
2022-12-16 04:58:48 |
2022-12-16 04:58:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:48 | ------------------------------------ 2022-12-16 04:58:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "pubsub#title": "Node 5bfd4e57-420d-4aa5-891a-57a5085280f0" } 2022-12-16 04:58:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 04:58:49 | [Mutex] waiting for: [received:nodes:041f8cb4-8e9c-42db-b3ed-b930194e0ea7:localhost] 2022-12-16 04:58:49 | [Mutex] received everything. 2022-12-16 04:58:49 | [Mutex] isItemNotified: received:node:041f8cb4-8e9c-42db-b3ed-b930194e0ea7:localhost:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:Node 5bfd4e57-420d-4aa5-891a-57a5085280f0 :: true |
createSubnodes | 1.025s |
2022-12-16 04:58:49 |
2022-12-16 04:58:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:49 | ------------------------------------ 2022-12-16 04:58:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-02ea5f35-28c6-415e-8edb-01eef08255ce", "pubsub#title": "Node 02ea5f35-28c6-415e-8edb-01eef08255ce" } 2022-12-16 04:58:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 04:58:50 | [Mutex] waiting for: [received:nodes:0e82f8e7-45e0-4309-a380-5efe87c19cd2:localhost] 2022-12-16 04:58:50 | [Mutex] waiting for: [received:nodes:0e82f8e7-45e0-4309-a380-5efe87c19cd2:localhost] 2022-12-16 04:58:50 | [Mutex] waiting for: [received:nodes:0e82f8e7-45e0-4309-a380-5efe87c19cd2:localhost] 2022-12-16 04:58:50 | [Mutex] waiting for: [received:nodes:0e82f8e7-45e0-4309-a380-5efe87c19cd2:localhost] 2022-12-16 04:58:50 | [Mutex] received everything. 2022-12-16 04:58:50 | [Mutex] isItemNotified: received:node:0e82f8e7-45e0-4309-a380-5efe87c19cd2:localhost:node-02ea5f35-28c6-415e-8edb-01eef08255ce:Node 02ea5f35-28c6-415e-8edb-01eef08255ce :: true |
deleteNodes | 1.020s |
2022-12-16 04:58:55 |
2022-12-16 04:58:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:55 | ------------------------------------ 2022-12-16 04:58:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-02ea5f35-28c6-415e-8edb-01eef08255ce" } 2022-12-16 04:58:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 04:58:56 | [Mutex] waiting for: [received:nodes:981d8eff-929e-4053-b61a-bacda8e56367:localhost] 2022-12-16 04:58:56 | [Mutex] waiting for: [received:nodes:981d8eff-929e-4053-b61a-bacda8e56367:localhost] 2022-12-16 04:58:56 | [Mutex] waiting for: [received:nodes:981d8eff-929e-4053-b61a-bacda8e56367:localhost] 2022-12-16 04:58:56 | [Mutex] received everything. 2022-12-16 04:58:56 | [Mutex] isItemNotified: received:node:981d8eff-929e-4053-b61a-bacda8e56367:localhost:node-02ea5f35-28c6-415e-8edb-01eef08255ce:Node 02ea5f35-28c6-415e-8edb-01eef08255ce :: false |
deleteSubnodes | 1.028s |
2022-12-16 04:58:54 |
2022-12-16 04:58:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:54 | ------------------------------------ 2022-12-16 04:58:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0" } 2022-12-16 04:58:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-16 04:58:55 | [Mutex] waiting for: [received:nodes:eae0173d-1e8a-417c-b60e-2ae464c0a8d4:localhost] 2022-12-16 04:58:55 | [Mutex] waiting for: [received:nodes:eae0173d-1e8a-417c-b60e-2ae464c0a8d4:localhost] 2022-12-16 04:58:55 | [Mutex] waiting for: [received:nodes:eae0173d-1e8a-417c-b60e-2ae464c0a8d4:localhost] 2022-12-16 04:58:55 | [Mutex] waiting for: [received:nodes:eae0173d-1e8a-417c-b60e-2ae464c0a8d4:localhost] 2022-12-16 04:58:55 | [Mutex] received everything. 2022-12-16 04:58:55 | [Mutex] isItemNotified: received:node:eae0173d-1e8a-417c-b60e-2ae464c0a8d4:localhost:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:Node 5bfd4e57-420d-4aa5-891a-57a5085280f0 :: false 2022-12-16 04:58:55 | [Mutex] waiting for: [received:nodes:ca47c546-7cba-4890-b334-3c3f9a7a0008:localhost] 2022-12-16 04:58:55 | [Mutex] received everything. 2022-12-16 04:58:55 | [Mutex] isItemNotified: received:node:ca47c546-7cba-4890-b334-3c3f9a7a0008:localhost:node-5bfd4e57-420d-4aa5-891a-57a5085280f0:Node 5bfd4e57-420d-4aa5-891a-57a5085280f0 :: false |
publishItemsToNodes | 0.052s |
2022-12-16 04:58:52 |
2022-12-16 04:58:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:52 | ------------------------------------ 2022-12-16 04:58:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "entry": "<test>item-bb385709-1b27-4e68-be23-e77464260261</test>", "item-id": "item-bb385709-1b27-4e68-be23-e77464260261" } 2022-12-16 04:58:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bb385709-1b27-4e68-be23-e77464260261" } 2022-12-16 04:58:52 | [Mutex] waiting for: [published:item:notifieditem-bb385709-1b27-4e68-be23-e77464260261:admin@test-domain.com] 2022-12-16 04:58:53 | [Mutex] received everything. 2022-12-16 04:58:53 | [Mutex] isItemNotified: published:item:notifieditem-bb385709-1b27-4e68-be23-e77464260261:admin@test-domain.com :: true |
retractItemsFromNodes | 0.088s |
2022-12-16 04:58:53 |
2022-12-16 04:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:53 | ------------------------------------ 2022-12-16 04:58:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "item-id": "item-bb385709-1b27-4e68-be23-e77464260261" } 2022-12-16 04:58:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bb385709-1b27-4e68-be23-e77464260261" } 2022-12-16 04:58:53 | [Mutex] received everything. 2022-12-16 04:58:53 | [Mutex] isItemNotified: retracted:item:notifieditem-bb385709-1b27-4e68-be23-e77464260261:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.130s |
2022-12-16 04:58:53 |
2022-12-16 04:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:53 | ------------------------------------ 2022-12-16 04:58:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "item-id": "item-bb385709-1b27-4e68-be23-e77464260261" } 2022-12-16 04:58:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "item-id": "item-bb385709-1b27-4e68-be23-e77464260261", "item": [ "<item id=\"item-bb385709-1b27-4e68-be23-e77464260261\"><test>item-bb385709-1b27-4e68-be23-e77464260261</test></item>" ] } 2022-12-16 04:58:53 | [Mutex] notify: [retrieved:item:item-bb385709-1b27-4e68-be23-e77464260261:payload-matches:true:localhost] 2022-12-16 04:58:53 | [Mutex] received everything. 2022-12-16 04:58:53 | [Mutex] isItemNotified: retrieved:item:item-bb385709-1b27-4e68-be23-e77464260261:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-12-16 04:58:53 |
2022-12-16 04:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:53 | ------------------------------------ 2022-12-16 04:58:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-16 04:58:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "test", "node-02ea5f35-28c6-415e-8edb-01eef08255ce" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-12-16 04:58:53 |
2022-12-16 04:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:53 | ------------------------------------ 2022-12-16 04:58:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5bfd4e57-420d-4aa5-891a-57a5085280f0)" } 2022-12-16 04:58:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-12-16 04:58:51 |
2022-12-16 04:58:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:51 | ------------------------------------ 2022-12-16 04:58:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "jids": [ "admin@test-domain.com" ] } 2022-12-16 04:58:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.049s |
2022-12-16 04:58:53 |
2022-12-16 04:58:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-16 04:58:53 | ------------------------------------ 2022-12-16 04:58:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5bfd4e57-420d-4aa5-891a-57a5085280f0", "jids": [ "admin@test-domain.com" ] } 2022-12-16 04:58:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |