Test duration : 8.870s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.124s |
2020-12-29 21:42:11 |
2020-12-29 21:42:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:11 | ------------------------------------ 2020-12-29 21:42:11 | [Mutex] waiting for: [configured:node:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:node-e8449b07-9438-41bb-a2b8-11e34771bac6] 2020-12-29 21:42:11 | [Mutex] received everything. 2020-12-29 21:42:11 | [Mutex] isItemNotified: configured:node:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:node-e8449b07-9438-41bb-a2b8-11e34771bac6 :: true 2020-12-29 21:42:12 | [Mutex] waiting for: [received:nodes:8810e6b6-f9ec-4e54-a87c-639fab8bb752:localhost] 2020-12-29 21:42:12 | [Mutex] received everything. 2020-12-29 21:42:12 | [Mutex] isItemNotified: received:node:8810e6b6-f9ec-4e54-a87c-639fab8bb752:localhost:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:Node 9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5 :: true 2020-12-29 21:42:12 | [Mutex] waiting for: [received:nodes:a1ded4cb-38d2-48b8-a783-3cc2d7b5c4f1:localhost] 2020-12-29 21:42:12 | [Mutex] received everything. 2020-12-29 21:42:12 | [Mutex] isItemNotified: received:node:a1ded4cb-38d2-48b8-a783-3cc2d7b5c4f1:localhost:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:Node 9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5 :: false |
createNodes | 1.508s |
2020-12-29 21:42:08 |
2020-12-29 21:42:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:08 | ------------------------------------ 2020-12-29 21:42:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "pubsub#title": "Node 9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5" } 2020-12-29 21:42:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-29 21:42:10 | [Mutex] waiting for: [received:nodes:8bba3746-e272-4b3c-85bc-2ca30e7af6b3:localhost] 2020-12-29 21:42:10 | [Mutex] waiting for: [received:nodes:8bba3746-e272-4b3c-85bc-2ca30e7af6b3:localhost] 2020-12-29 21:42:10 | [Mutex] waiting for: [received:nodes:8bba3746-e272-4b3c-85bc-2ca30e7af6b3:localhost] 2020-12-29 21:42:10 | [Mutex] received everything. 2020-12-29 21:42:10 | [Mutex] isItemNotified: received:node:8bba3746-e272-4b3c-85bc-2ca30e7af6b3:localhost:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:Node 9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5 :: true |
createSubnodes | 1.022s |
2020-12-29 21:42:10 |
2020-12-29 21:42:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:10 | ------------------------------------ 2020-12-29 21:42:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e8449b07-9438-41bb-a2b8-11e34771bac6", "pubsub#title": "Node e8449b07-9438-41bb-a2b8-11e34771bac6" } 2020-12-29 21:42:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-29 21:42:11 | [Mutex] waiting for: [received:nodes:e8df02b6-d1e5-4ab7-b38b-cef283669453:localhost] 2020-12-29 21:42:11 | [Mutex] waiting for: [received:nodes:e8df02b6-d1e5-4ab7-b38b-cef283669453:localhost] 2020-12-29 21:42:11 | [Mutex] received everything. 2020-12-29 21:42:11 | [Mutex] isItemNotified: received:node:e8df02b6-d1e5-4ab7-b38b-cef283669453:localhost:node-e8449b07-9438-41bb-a2b8-11e34771bac6:Node e8449b07-9438-41bb-a2b8-11e34771bac6 :: true |
deleteNodes | 1.026s |
2020-12-29 21:42:15 |
2020-12-29 21:42:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:15 | ------------------------------------ 2020-12-29 21:42:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e8449b07-9438-41bb-a2b8-11e34771bac6" } 2020-12-29 21:42:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-29 21:42:16 | [Mutex] waiting for: [received:nodes:698d6b27-0a46-48cf-8481-509e3e198690:localhost] 2020-12-29 21:42:16 | [Mutex] received everything. 2020-12-29 21:42:16 | [Mutex] isItemNotified: received:node:698d6b27-0a46-48cf-8481-509e3e198690:localhost:node-e8449b07-9438-41bb-a2b8-11e34771bac6:Node e8449b07-9438-41bb-a2b8-11e34771bac6 :: false |
deleteSubnodes | 1.026s |
2020-12-29 21:42:14 |
2020-12-29 21:42:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:14 | ------------------------------------ 2020-12-29 21:42:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5" } 2020-12-29 21:42:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-29 21:42:15 | [Mutex] waiting for: [received:nodes:8b60b087-b368-4df5-b8a9-f0c445630af7:localhost] 2020-12-29 21:42:15 | [Mutex] waiting for: [received:nodes:8b60b087-b368-4df5-b8a9-f0c445630af7:localhost] 2020-12-29 21:42:15 | [Mutex] received everything. 2020-12-29 21:42:15 | [Mutex] isItemNotified: received:node:8b60b087-b368-4df5-b8a9-f0c445630af7:localhost:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:Node 9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5 :: false 2020-12-29 21:42:15 | [Mutex] waiting for: [received:nodes:d7e75fd6-18ec-44f5-903b-a4bb9de9448a:localhost] 2020-12-29 21:42:15 | [Mutex] received everything. 2020-12-29 21:42:15 | [Mutex] isItemNotified: received:node:d7e75fd6-18ec-44f5-903b-a4bb9de9448a:localhost:node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5:Node 9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5 :: false |
publishItemsToNodes | 0.042s |
2020-12-29 21:42:13 |
2020-12-29 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:13 | ------------------------------------ 2020-12-29 21:42:13 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "entry": "<test>item-288e8625-ef04-4a7b-b40e-67b6331a7985</test>", "item-id": "item-288e8625-ef04-4a7b-b40e-67b6331a7985" } 2020-12-29 21:42:13 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-288e8625-ef04-4a7b-b40e-67b6331a7985" } 2020-12-29 21:42:13 | [Mutex] waiting for: [published:item:notifieditem-288e8625-ef04-4a7b-b40e-67b6331a7985:admin@test-domain.com] 2020-12-29 21:42:13 | [Mutex] received everything. 2020-12-29 21:42:13 | [Mutex] isItemNotified: published:item:notifieditem-288e8625-ef04-4a7b-b40e-67b6331a7985:admin@test-domain.com :: true |
retractItemsFromNodes | 0.081s |
2020-12-29 21:42:13 |
2020-12-29 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:13 | ------------------------------------ 2020-12-29 21:42:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "item-id": "item-288e8625-ef04-4a7b-b40e-67b6331a7985" } 2020-12-29 21:42:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-288e8625-ef04-4a7b-b40e-67b6331a7985" } 2020-12-29 21:42:13 | [Mutex] waiting for: [retracted:item:notifieditem-288e8625-ef04-4a7b-b40e-67b6331a7985:admin@test-domain.com] 2020-12-29 21:42:13 | [Mutex] received everything. 2020-12-29 21:42:13 | [Mutex] isItemNotified: retracted:item:notifieditem-288e8625-ef04-4a7b-b40e-67b6331a7985:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2020-12-29 21:42:13 |
2020-12-29 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:13 | ------------------------------------ 2020-12-29 21:42:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "item-id": "item-288e8625-ef04-4a7b-b40e-67b6331a7985" } 2020-12-29 21:42:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "item-id": "item-288e8625-ef04-4a7b-b40e-67b6331a7985", "item": [ "<item id=\"item-288e8625-ef04-4a7b-b40e-67b6331a7985\"><test>item-288e8625-ef04-4a7b-b40e-67b6331a7985</test></item>" ] } 2020-12-29 21:42:13 | [Mutex] notify: [retrieved:item:item-288e8625-ef04-4a7b-b40e-67b6331a7985:payload-matches:true:localhost] 2020-12-29 21:42:13 | [Mutex] received everything. 2020-12-29 21:42:13 | [Mutex] isItemNotified: retrieved:item:item-288e8625-ef04-4a7b-b40e-67b6331a7985:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-12-29 21:42:13 |
2020-12-29 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:13 | ------------------------------------ 2020-12-29 21:42:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-29 21:42:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e8449b07-9438-41bb-a2b8-11e34771bac6", "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-12-29 21:42:13 |
2020-12-29 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:13 | ------------------------------------ 2020-12-29 21:42:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5)" } 2020-12-29 21:42:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-12-29 21:42:12 |
2020-12-29 21:42:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:12 | ------------------------------------ 2020-12-29 21:42:12 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "jids": [ "admin@test-domain.com" ] } 2020-12-29 21:42:12 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.058s |
2020-12-29 21:42:13 |
2020-12-29 21:42:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-29 21:42:13 | ------------------------------------ 2020-12-29 21:42:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9b0648e7-b9b6-4bdd-b3e4-269feb2b0bf5", "jids": [ "admin@test-domain.com" ] } 2020-12-29 21:42:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |