Test duration : 9.113s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2020-09-14 00:07:13 |
2020-09-14 00:07:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:13 | ------------------------------------ 2020-09-14 00:07:13 | [Mutex] waiting for: [configured:node:node-35c3d503-b879-4bb6-b107-eacb44c33c86:node-b0861e72-f788-4677-acd8-7e65cdd11cdd] 2020-09-14 00:07:13 | [Mutex] received everything. 2020-09-14 00:07:13 | [Mutex] isItemNotified: configured:node:node-35c3d503-b879-4bb6-b107-eacb44c33c86:node-b0861e72-f788-4677-acd8-7e65cdd11cdd :: true 2020-09-14 00:07:14 | [Mutex] waiting for: [received:nodes:5acfc7e2-aea1-4f22-a1a5-505cc0180759:localhost] 2020-09-14 00:07:14 | [Mutex] received everything. 2020-09-14 00:07:14 | [Mutex] isItemNotified: received:node:5acfc7e2-aea1-4f22-a1a5-505cc0180759:localhost:node-35c3d503-b879-4bb6-b107-eacb44c33c86:Node 35c3d503-b879-4bb6-b107-eacb44c33c86 :: true 2020-09-14 00:07:14 | [Mutex] waiting for: [received:nodes:3b9697c4-2e45-4a63-a18d-87e4bbbb54dd:localhost] 2020-09-14 00:07:14 | [Mutex] waiting for: [received:nodes:3b9697c4-2e45-4a63-a18d-87e4bbbb54dd:localhost] 2020-09-14 00:07:14 | [Mutex] received everything. 2020-09-14 00:07:14 | [Mutex] isItemNotified: received:node:3b9697c4-2e45-4a63-a18d-87e4bbbb54dd:localhost:node-35c3d503-b879-4bb6-b107-eacb44c33c86:Node 35c3d503-b879-4bb6-b107-eacb44c33c86 :: false |
createNodes | 1.717s |
2020-09-14 00:07:10 |
2020-09-14 00:07:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:10 | ------------------------------------ 2020-09-14 00:07:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "pubsub#title": "Node 35c3d503-b879-4bb6-b107-eacb44c33c86" } 2020-09-14 00:07:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-14 00:07:12 | [Mutex] waiting for: [received:nodes:7ec5d849-b4f0-4fa7-8702-07c93ebf2ce7:localhost] 2020-09-14 00:07:12 | [Mutex] received everything. 2020-09-14 00:07:12 | [Mutex] isItemNotified: received:node:7ec5d849-b4f0-4fa7-8702-07c93ebf2ce7:localhost:node-35c3d503-b879-4bb6-b107-eacb44c33c86:Node 35c3d503-b879-4bb6-b107-eacb44c33c86 :: true |
createSubnodes | 1.025s |
2020-09-14 00:07:12 |
2020-09-14 00:07:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:12 | ------------------------------------ 2020-09-14 00:07:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b0861e72-f788-4677-acd8-7e65cdd11cdd", "pubsub#title": "Node b0861e72-f788-4677-acd8-7e65cdd11cdd" } 2020-09-14 00:07:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-14 00:07:13 | [Mutex] waiting for: [received:nodes:55e97f0f-9a44-448c-a0d7-d341bef559d5:localhost] 2020-09-14 00:07:13 | [Mutex] waiting for: [received:nodes:55e97f0f-9a44-448c-a0d7-d341bef559d5:localhost] 2020-09-14 00:07:13 | [Mutex] waiting for: [received:nodes:55e97f0f-9a44-448c-a0d7-d341bef559d5:localhost] 2020-09-14 00:07:13 | [Mutex] waiting for: [received:nodes:55e97f0f-9a44-448c-a0d7-d341bef559d5:localhost] 2020-09-14 00:07:13 | [Mutex] received everything. 2020-09-14 00:07:13 | [Mutex] isItemNotified: received:node:55e97f0f-9a44-448c-a0d7-d341bef559d5:localhost:node-b0861e72-f788-4677-acd8-7e65cdd11cdd:Node b0861e72-f788-4677-acd8-7e65cdd11cdd :: true |
deleteNodes | 1.023s |
2020-09-14 00:07:17 |
2020-09-14 00:07:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:17 | ------------------------------------ 2020-09-14 00:07:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b0861e72-f788-4677-acd8-7e65cdd11cdd" } 2020-09-14 00:07:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-14 00:07:18 | [Mutex] waiting for: [received:nodes:455d8fdb-563f-4762-8745-c964910961df:localhost] 2020-09-14 00:07:19 | [Mutex] waiting for: [received:nodes:455d8fdb-563f-4762-8745-c964910961df:localhost] 2020-09-14 00:07:19 | [Mutex] received everything. 2020-09-14 00:07:19 | [Mutex] isItemNotified: received:node:455d8fdb-563f-4762-8745-c964910961df:localhost:node-b0861e72-f788-4677-acd8-7e65cdd11cdd:Node b0861e72-f788-4677-acd8-7e65cdd11cdd :: false |
deleteSubnodes | 1.030s |
2020-09-14 00:07:16 |
2020-09-14 00:07:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:16 | ------------------------------------ 2020-09-14 00:07:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86" } 2020-09-14 00:07:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-14 00:07:17 | [Mutex] waiting for: [received:nodes:ce87db36-a91d-4966-9f11-4994d2419f91:localhost] 2020-09-14 00:07:17 | [Mutex] received everything. 2020-09-14 00:07:17 | [Mutex] isItemNotified: received:node:ce87db36-a91d-4966-9f11-4994d2419f91:localhost:node-35c3d503-b879-4bb6-b107-eacb44c33c86:Node 35c3d503-b879-4bb6-b107-eacb44c33c86 :: false 2020-09-14 00:07:17 | [Mutex] waiting for: [received:nodes:29fe2977-f6c9-4f51-ab98-f9475bc1dd16:localhost] 2020-09-14 00:07:17 | [Mutex] received everything. 2020-09-14 00:07:17 | [Mutex] isItemNotified: received:node:29fe2977-f6c9-4f51-ab98-f9475bc1dd16:localhost:node-35c3d503-b879-4bb6-b107-eacb44c33c86:Node 35c3d503-b879-4bb6-b107-eacb44c33c86 :: false |
publishItemsToNodes | 0.041s |
2020-09-14 00:07:15 |
2020-09-14 00:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:15 | ------------------------------------ 2020-09-14 00:07:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "entry": "<test>item-778cf51e-5bca-4409-8841-088a3a09a61f</test>", "item-id": "item-778cf51e-5bca-4409-8841-088a3a09a61f" } 2020-09-14 00:07:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-778cf51e-5bca-4409-8841-088a3a09a61f" } 2020-09-14 00:07:15 | [Mutex] waiting for: [published:item:notifieditem-778cf51e-5bca-4409-8841-088a3a09a61f:admin@test-domain.com] 2020-09-14 00:07:15 | [Mutex] received everything. 2020-09-14 00:07:15 | [Mutex] isItemNotified: published:item:notifieditem-778cf51e-5bca-4409-8841-088a3a09a61f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-09-14 00:07:15 |
2020-09-14 00:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:15 | ------------------------------------ 2020-09-14 00:07:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "item-id": "item-778cf51e-5bca-4409-8841-088a3a09a61f" } 2020-09-14 00:07:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-778cf51e-5bca-4409-8841-088a3a09a61f" } 2020-09-14 00:07:15 | [Mutex] received everything. 2020-09-14 00:07:15 | [Mutex] isItemNotified: retracted:item:notifieditem-778cf51e-5bca-4409-8841-088a3a09a61f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2020-09-14 00:07:15 |
2020-09-14 00:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:15 | ------------------------------------ 2020-09-14 00:07:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "item-id": "item-778cf51e-5bca-4409-8841-088a3a09a61f" } 2020-09-14 00:07:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "item-id": "item-778cf51e-5bca-4409-8841-088a3a09a61f", "item": [ "<item id=\"item-778cf51e-5bca-4409-8841-088a3a09a61f\"><test>item-778cf51e-5bca-4409-8841-088a3a09a61f</test></item>" ] } 2020-09-14 00:07:15 | [Mutex] notify: [retrieved:item:item-778cf51e-5bca-4409-8841-088a3a09a61f:payload-matches:true:localhost] 2020-09-14 00:07:15 | [Mutex] received everything. 2020-09-14 00:07:15 | [Mutex] isItemNotified: retrieved:item:item-778cf51e-5bca-4409-8841-088a3a09a61f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-14 00:07:15 |
2020-09-14 00:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:15 | ------------------------------------ 2020-09-14 00:07:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-14 00:07:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "node-b0861e72-f788-4677-acd8-7e65cdd11cdd", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-14 00:07:15 |
2020-09-14 00:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:15 | ------------------------------------ 2020-09-14 00:07:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-35c3d503-b879-4bb6-b107-eacb44c33c86)" } 2020-09-14 00:07:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-09-14 00:07:14 |
2020-09-14 00:07:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:14 | ------------------------------------ 2020-09-14 00:07:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "jids": [ "admin@test-domain.com" ] } 2020-09-14 00:07:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2020-09-14 00:07:15 |
2020-09-14 00:07:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-14 00:07:15 | ------------------------------------ 2020-09-14 00:07:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-35c3d503-b879-4bb6-b107-eacb44c33c86", "jids": [ "admin@test-domain.com" ] } 2020-09-14 00:07:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |