Test duration : 8.720s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.154s |
2022-07-12 06:35:49 |
2022-07-12 06:35:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:49 | ------------------------------------ 2022-07-12 06:35:49 | [Mutex] waiting for: [configured:node:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:node-5635a59e-0ba1-4a8d-a793-e5861d204133] 2022-07-12 06:35:49 | [Mutex] received everything. 2022-07-12 06:35:49 | [Mutex] isItemNotified: configured:node:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:node-5635a59e-0ba1-4a8d-a793-e5861d204133 :: true 2022-07-12 06:35:50 | [Mutex] waiting for: [received:nodes:e5a63905-4148-44f4-b329-a1c50dde4938:localhost] 2022-07-12 06:35:50 | [Mutex] received everything. 2022-07-12 06:35:50 | [Mutex] isItemNotified: received:node:e5a63905-4148-44f4-b329-a1c50dde4938:localhost:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:Node 0d57e399-2427-4704-a373-5dc7aebdc8ba :: true 2022-07-12 06:35:50 | [Mutex] waiting for: [received:nodes:4c40c74c-7692-4b84-8044-ca5fb7fb0bdd:localhost] 2022-07-12 06:35:50 | [Mutex] received everything. 2022-07-12 06:35:50 | [Mutex] isItemNotified: received:node:4c40c74c-7692-4b84-8044-ca5fb7fb0bdd:localhost:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:Node 0d57e399-2427-4704-a373-5dc7aebdc8ba :: false |
createNodes | 1.631s |
2022-07-12 06:35:46 |
2022-07-12 06:35:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:46 | ------------------------------------ 2022-07-12 06:35:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "pubsub#title": "Node 0d57e399-2427-4704-a373-5dc7aebdc8ba" } 2022-07-12 06:35:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 06:35:48 | [Mutex] waiting for: [received:nodes:87a4260d-66c4-4ec4-8ad0-78b1a13e1ade:localhost] 2022-07-12 06:35:48 | [Mutex] received everything. 2022-07-12 06:35:48 | [Mutex] isItemNotified: received:node:87a4260d-66c4-4ec4-8ad0-78b1a13e1ade:localhost:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:Node 0d57e399-2427-4704-a373-5dc7aebdc8ba :: true |
createSubnodes | 1.022s |
2022-07-12 06:35:48 |
2022-07-12 06:35:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:48 | ------------------------------------ 2022-07-12 06:35:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5635a59e-0ba1-4a8d-a793-e5861d204133", "pubsub#title": "Node 5635a59e-0ba1-4a8d-a793-e5861d204133" } 2022-07-12 06:35:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 06:35:49 | [Mutex] waiting for: [received:nodes:48995f68-d966-4243-b996-8907f456340c:localhost] 2022-07-12 06:35:49 | [Mutex] waiting for: [received:nodes:48995f68-d966-4243-b996-8907f456340c:localhost] 2022-07-12 06:35:49 | [Mutex] received everything. 2022-07-12 06:35:49 | [Mutex] isItemNotified: received:node:48995f68-d966-4243-b996-8907f456340c:localhost:node-5635a59e-0ba1-4a8d-a793-e5861d204133:Node 5635a59e-0ba1-4a8d-a793-e5861d204133 :: true |
deleteNodes | 1.024s |
2022-07-12 06:35:53 |
2022-07-12 06:35:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:53 | ------------------------------------ 2022-07-12 06:35:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5635a59e-0ba1-4a8d-a793-e5861d204133" } 2022-07-12 06:35:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 06:35:54 | [Mutex] waiting for: [received:nodes:2123b5b4-38dc-4030-9263-594a2ae3e9bb:localhost] 2022-07-12 06:35:54 | [Mutex] received everything. 2022-07-12 06:35:54 | [Mutex] isItemNotified: received:node:2123b5b4-38dc-4030-9263-594a2ae3e9bb:localhost:node-5635a59e-0ba1-4a8d-a793-e5861d204133:Node 5635a59e-0ba1-4a8d-a793-e5861d204133 :: false |
deleteSubnodes | 1.026s |
2022-07-12 06:35:52 |
2022-07-12 06:35:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:52 | ------------------------------------ 2022-07-12 06:35:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba" } 2022-07-12 06:35:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-12 06:35:53 | [Mutex] waiting for: [received:nodes:da5b4895-7eca-4bd8-aaee-fdef5e7db4aa:localhost] 2022-07-12 06:35:53 | [Mutex] received everything. 2022-07-12 06:35:53 | [Mutex] isItemNotified: received:node:da5b4895-7eca-4bd8-aaee-fdef5e7db4aa:localhost:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:Node 0d57e399-2427-4704-a373-5dc7aebdc8ba :: false 2022-07-12 06:35:53 | [Mutex] waiting for: [received:nodes:95f0fe17-8979-4e0f-be5d-e82f01ec3a1c:localhost] 2022-07-12 06:35:53 | [Mutex] received everything. 2022-07-12 06:35:53 | [Mutex] isItemNotified: received:node:95f0fe17-8979-4e0f-be5d-e82f01ec3a1c:localhost:node-0d57e399-2427-4704-a373-5dc7aebdc8ba:Node 0d57e399-2427-4704-a373-5dc7aebdc8ba :: false |
publishItemsToNodes | 0.062s |
2022-07-12 06:35:51 |
2022-07-12 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:51 | ------------------------------------ 2022-07-12 06:35:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "entry": "<test>item-e51c1c59-00c5-4f61-8ff0-871d0018db87</test>", "item-id": "item-e51c1c59-00c5-4f61-8ff0-871d0018db87" } 2022-07-12 06:35:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e51c1c59-00c5-4f61-8ff0-871d0018db87" } 2022-07-12 06:35:51 | [Mutex] waiting for: [published:item:notifieditem-e51c1c59-00c5-4f61-8ff0-871d0018db87:admin@test-domain.com] 2022-07-12 06:35:51 | [Mutex] received everything. 2022-07-12 06:35:51 | [Mutex] isItemNotified: published:item:notifieditem-e51c1c59-00c5-4f61-8ff0-871d0018db87:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-07-12 06:35:51 |
2022-07-12 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:51 | ------------------------------------ 2022-07-12 06:35:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "item-id": "item-e51c1c59-00c5-4f61-8ff0-871d0018db87" } 2022-07-12 06:35:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e51c1c59-00c5-4f61-8ff0-871d0018db87" } 2022-07-12 06:35:51 | [Mutex] received everything. 2022-07-12 06:35:51 | [Mutex] isItemNotified: retracted:item:notifieditem-e51c1c59-00c5-4f61-8ff0-871d0018db87:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.046s |
2022-07-12 06:35:51 |
2022-07-12 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:51 | ------------------------------------ 2022-07-12 06:35:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "item-id": "item-e51c1c59-00c5-4f61-8ff0-871d0018db87" } 2022-07-12 06:35:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "item-id": "item-e51c1c59-00c5-4f61-8ff0-871d0018db87", "item": [ "<item id=\"item-e51c1c59-00c5-4f61-8ff0-871d0018db87\"><test>item-e51c1c59-00c5-4f61-8ff0-871d0018db87</test></item>" ] } 2022-07-12 06:35:51 | [Mutex] notify: [retrieved:item:item-e51c1c59-00c5-4f61-8ff0-871d0018db87:payload-matches:true:localhost] 2022-07-12 06:35:51 | [Mutex] received everything. 2022-07-12 06:35:51 | [Mutex] isItemNotified: retrieved:item:item-e51c1c59-00c5-4f61-8ff0-871d0018db87:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2022-07-12 06:35:51 |
2022-07-12 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:51 | ------------------------------------ 2022-07-12 06:35:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-12 06:35:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "node-5635a59e-0ba1-4a8d-a793-e5861d204133" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-12 06:35:51 |
2022-07-12 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:51 | ------------------------------------ 2022-07-12 06:35:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0d57e399-2427-4704-a373-5dc7aebdc8ba)" } 2022-07-12 06:35:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-07-12 06:35:50 |
2022-07-12 06:35:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:50 | ------------------------------------ 2022-07-12 06:35:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "jids": [ "admin@test-domain.com" ] } 2022-07-12 06:35:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-07-12 06:35:51 |
2022-07-12 06:35:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-12 06:35:51 | ------------------------------------ 2022-07-12 06:35:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0d57e399-2427-4704-a373-5dc7aebdc8ba", "jids": [ "admin@test-domain.com" ] } 2022-07-12 06:35:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |