Test duration : 9.218s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.127s |
2020-10-08 22:29:37 |
2020-10-08 22:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:37 | ------------------------------------ 2020-10-08 22:29:37 | [Mutex] waiting for: [configured:node:node-6137c618-8ab8-4710-b579-c29bba54804b:node-4545321b-1f52-4c9b-aca6-1b17928c4e7b] 2020-10-08 22:29:37 | [Mutex] received everything. 2020-10-08 22:29:37 | [Mutex] isItemNotified: configured:node:node-6137c618-8ab8-4710-b579-c29bba54804b:node-4545321b-1f52-4c9b-aca6-1b17928c4e7b :: true 2020-10-08 22:29:38 | [Mutex] waiting for: [received:nodes:6d0e97ca-8b8c-4fff-a1b9-9eb85a9d0730:localhost] 2020-10-08 22:29:38 | [Mutex] received everything. 2020-10-08 22:29:38 | [Mutex] isItemNotified: received:node:6d0e97ca-8b8c-4fff-a1b9-9eb85a9d0730:localhost:node-6137c618-8ab8-4710-b579-c29bba54804b:Node 6137c618-8ab8-4710-b579-c29bba54804b :: true 2020-10-08 22:29:38 | [Mutex] waiting for: [received:nodes:b0f14d04-c740-4e41-837d-6846d54d4ed1:localhost] 2020-10-08 22:29:38 | [Mutex] waiting for: [received:nodes:b0f14d04-c740-4e41-837d-6846d54d4ed1:localhost] 2020-10-08 22:29:38 | [Mutex] received everything. 2020-10-08 22:29:38 | [Mutex] isItemNotified: received:node:b0f14d04-c740-4e41-837d-6846d54d4ed1:localhost:node-6137c618-8ab8-4710-b579-c29bba54804b:Node 6137c618-8ab8-4710-b579-c29bba54804b :: false |
createNodes | 1.631s |
2020-10-08 22:29:35 |
2020-10-08 22:29:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:35 | ------------------------------------ 2020-10-08 22:29:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "pubsub#title": "Node 6137c618-8ab8-4710-b579-c29bba54804b" } 2020-10-08 22:29:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:29:36 | [Mutex] waiting for: [received:nodes:058c8c62-c6f3-4d8b-90dd-8ff7162f8cd5:localhost] 2020-10-08 22:29:36 | [Mutex] waiting for: [received:nodes:058c8c62-c6f3-4d8b-90dd-8ff7162f8cd5:localhost] 2020-10-08 22:29:36 | [Mutex] received everything. 2020-10-08 22:29:36 | [Mutex] isItemNotified: received:node:058c8c62-c6f3-4d8b-90dd-8ff7162f8cd5:localhost:node-6137c618-8ab8-4710-b579-c29bba54804b:Node 6137c618-8ab8-4710-b579-c29bba54804b :: true |
createSubnodes | 1.027s |
2020-10-08 22:29:36 |
2020-10-08 22:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:36 | ------------------------------------ 2020-10-08 22:29:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4545321b-1f52-4c9b-aca6-1b17928c4e7b", "pubsub#title": "Node 4545321b-1f52-4c9b-aca6-1b17928c4e7b" } 2020-10-08 22:29:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:29:37 | [Mutex] waiting for: [received:nodes:0a93a334-ac28-41a8-8bb1-e3dadd1e7324:localhost] 2020-10-08 22:29:37 | [Mutex] received everything. 2020-10-08 22:29:37 | [Mutex] isItemNotified: received:node:0a93a334-ac28-41a8-8bb1-e3dadd1e7324:localhost:node-4545321b-1f52-4c9b-aca6-1b17928c4e7b:Node 4545321b-1f52-4c9b-aca6-1b17928c4e7b :: true |
deleteNodes | 1.022s |
2020-10-08 22:29:42 |
2020-10-08 22:29:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:42 | ------------------------------------ 2020-10-08 22:29:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4545321b-1f52-4c9b-aca6-1b17928c4e7b" } 2020-10-08 22:29:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:29:43 | [Mutex] waiting for: [received:nodes:a6d954f5-9464-4aba-9a46-7e4f8b8b74e6:localhost] 2020-10-08 22:29:43 | [Mutex] received everything. 2020-10-08 22:29:43 | [Mutex] isItemNotified: received:node:a6d954f5-9464-4aba-9a46-7e4f8b8b74e6:localhost:node-4545321b-1f52-4c9b-aca6-1b17928c4e7b:Node 4545321b-1f52-4c9b-aca6-1b17928c4e7b :: false |
deleteSubnodes | 1.032s |
2020-10-08 22:29:41 |
2020-10-08 22:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:41 | ------------------------------------ 2020-10-08 22:29:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6137c618-8ab8-4710-b579-c29bba54804b" } 2020-10-08 22:29:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-08 22:29:42 | [Mutex] waiting for: [received:nodes:1029f4cb-5fd7-48d5-9eab-640d029eb0b4:localhost] 2020-10-08 22:29:42 | [Mutex] received everything. 2020-10-08 22:29:42 | [Mutex] isItemNotified: received:node:1029f4cb-5fd7-48d5-9eab-640d029eb0b4:localhost:node-6137c618-8ab8-4710-b579-c29bba54804b:Node 6137c618-8ab8-4710-b579-c29bba54804b :: false 2020-10-08 22:29:42 | [Mutex] waiting for: [received:nodes:e510f4aa-559e-4c01-b0ed-18bcf606c5b4:localhost] 2020-10-08 22:29:42 | [Mutex] received everything. 2020-10-08 22:29:42 | [Mutex] isItemNotified: received:node:e510f4aa-559e-4c01-b0ed-18bcf606c5b4:localhost:node-6137c618-8ab8-4710-b579-c29bba54804b:Node 6137c618-8ab8-4710-b579-c29bba54804b :: false |
publishItemsToNodes | 0.055s |
2020-10-08 22:29:39 |
2020-10-08 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:39 | ------------------------------------ 2020-10-08 22:29:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "entry": "<test>item-ef3bef89-cbee-4201-ac98-e260b71304be</test>", "item-id": "item-ef3bef89-cbee-4201-ac98-e260b71304be" } 2020-10-08 22:29:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ef3bef89-cbee-4201-ac98-e260b71304be" } 2020-10-08 22:29:39 | [Mutex] received everything. 2020-10-08 22:29:39 | [Mutex] isItemNotified: published:item:notifieditem-ef3bef89-cbee-4201-ac98-e260b71304be:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2020-10-08 22:29:40 |
2020-10-08 22:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:40 | ------------------------------------ 2020-10-08 22:29:40 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "item-id": "item-ef3bef89-cbee-4201-ac98-e260b71304be" } 2020-10-08 22:29:40 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ef3bef89-cbee-4201-ac98-e260b71304be" } 2020-10-08 22:29:40 | [Mutex] received everything. 2020-10-08 22:29:40 | [Mutex] isItemNotified: retracted:item:notifieditem-ef3bef89-cbee-4201-ac98-e260b71304be:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2020-10-08 22:29:39 |
2020-10-08 22:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:39 | ------------------------------------ 2020-10-08 22:29:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "item-id": "item-ef3bef89-cbee-4201-ac98-e260b71304be" } 2020-10-08 22:29:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "item-id": "item-ef3bef89-cbee-4201-ac98-e260b71304be", "item": [ "<item id=\"item-ef3bef89-cbee-4201-ac98-e260b71304be\"><test>item-ef3bef89-cbee-4201-ac98-e260b71304be</test></item>" ] } 2020-10-08 22:29:40 | [Mutex] notify: [retrieved:item:item-ef3bef89-cbee-4201-ac98-e260b71304be:payload-matches:true:localhost] 2020-10-08 22:29:40 | [Mutex] received everything. 2020-10-08 22:29:40 | [Mutex] isItemNotified: retrieved:item:item-ef3bef89-cbee-4201-ac98-e260b71304be:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-10-08 22:29:40 |
2020-10-08 22:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:40 | ------------------------------------ 2020-10-08 22:29:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-08 22:29:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4545321b-1f52-4c9b-aca6-1b17928c4e7b", "node-6137c618-8ab8-4710-b579-c29bba54804b" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-08 22:29:40 |
2020-10-08 22:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:40 | ------------------------------------ 2020-10-08 22:29:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6137c618-8ab8-4710-b579-c29bba54804b)" } 2020-10-08 22:29:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-10-08 22:29:38 |
2020-10-08 22:29:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:38 | ------------------------------------ 2020-10-08 22:29:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "jids": [ "admin@test-domain.com" ] } 2020-10-08 22:29:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-10-08 22:29:40 |
2020-10-08 22:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-08 22:29:40 | ------------------------------------ 2020-10-08 22:29:40 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6137c618-8ab8-4710-b579-c29bba54804b", "jids": [ "admin@test-domain.com" ] } 2020-10-08 22:29:40 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |