Test duration : 9.263s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.182s |
2021-04-06 22:37:09 |
2021-04-06 22:37:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:09 | ------------------------------------ 2021-04-06 22:37:09 | [Mutex] waiting for: [configured:node:node-598122d1-a669-4740-8636-ef377655b10a:node-a38885ec-2da4-46d9-9433-2ca5d4177307] 2021-04-06 22:37:09 | [Mutex] received everything. 2021-04-06 22:37:09 | [Mutex] isItemNotified: configured:node:node-598122d1-a669-4740-8636-ef377655b10a:node-a38885ec-2da4-46d9-9433-2ca5d4177307 :: true 2021-04-06 22:37:10 | [Mutex] waiting for: [received:nodes:69292d18-37e9-4a1f-a502-e9341c7168f6:localhost] 2021-04-06 22:37:10 | [Mutex] received everything. 2021-04-06 22:37:10 | [Mutex] isItemNotified: received:node:69292d18-37e9-4a1f-a502-e9341c7168f6:localhost:node-598122d1-a669-4740-8636-ef377655b10a:Node 598122d1-a669-4740-8636-ef377655b10a :: true 2021-04-06 22:37:10 | [Mutex] waiting for: [received:nodes:a253e222-00b6-48c5-bab9-23835ab0b723:localhost] 2021-04-06 22:37:10 | [Mutex] received everything. 2021-04-06 22:37:10 | [Mutex] isItemNotified: received:node:a253e222-00b6-48c5-bab9-23835ab0b723:localhost:node-598122d1-a669-4740-8636-ef377655b10a:Node 598122d1-a669-4740-8636-ef377655b10a :: false |
createNodes | 1.693s |
2021-04-06 22:37:06 |
2021-04-06 22:37:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:06 | ------------------------------------ 2021-04-06 22:37:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-598122d1-a669-4740-8636-ef377655b10a", "pubsub#title": "Node 598122d1-a669-4740-8636-ef377655b10a" } 2021-04-06 22:37:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-06 22:37:08 | [Mutex] waiting for: [received:nodes:7c65edb3-2be0-4753-b808-07e8699ce0ca:localhost] 2021-04-06 22:37:08 | [Mutex] received everything. 2021-04-06 22:37:08 | [Mutex] isItemNotified: received:node:7c65edb3-2be0-4753-b808-07e8699ce0ca:localhost:node-598122d1-a669-4740-8636-ef377655b10a:Node 598122d1-a669-4740-8636-ef377655b10a :: true |
createSubnodes | 1.037s |
2021-04-06 22:37:08 |
2021-04-06 22:37:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:08 | ------------------------------------ 2021-04-06 22:37:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a38885ec-2da4-46d9-9433-2ca5d4177307", "pubsub#title": "Node a38885ec-2da4-46d9-9433-2ca5d4177307" } 2021-04-06 22:37:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-06 22:37:09 | [Mutex] waiting for: [received:nodes:0c6f3e01-9119-49e0-9cbf-ad6ffe7a6613:localhost] 2021-04-06 22:37:09 | [Mutex] received everything. 2021-04-06 22:37:09 | [Mutex] isItemNotified: received:node:0c6f3e01-9119-49e0-9cbf-ad6ffe7a6613:localhost:node-a38885ec-2da4-46d9-9433-2ca5d4177307:Node a38885ec-2da4-46d9-9433-2ca5d4177307 :: true |
deleteNodes | 1.032s |
2021-04-06 22:37:14 |
2021-04-06 22:37:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:14 | ------------------------------------ 2021-04-06 22:37:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a38885ec-2da4-46d9-9433-2ca5d4177307" } 2021-04-06 22:37:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-06 22:37:15 | [Mutex] waiting for: [received:nodes:3cd7b598-4cd1-4ec4-ae31-86583042a5b8:localhost] 2021-04-06 22:37:15 | [Mutex] received everything. 2021-04-06 22:37:15 | [Mutex] isItemNotified: received:node:3cd7b598-4cd1-4ec4-ae31-86583042a5b8:localhost:node-a38885ec-2da4-46d9-9433-2ca5d4177307:Node a38885ec-2da4-46d9-9433-2ca5d4177307 :: false |
deleteSubnodes | 1.038s |
2021-04-06 22:37:13 |
2021-04-06 22:37:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:13 | ------------------------------------ 2021-04-06 22:37:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-598122d1-a669-4740-8636-ef377655b10a" } 2021-04-06 22:37:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-04-06 22:37:14 | [Mutex] waiting for: [received:nodes:6733b0f4-39e1-448f-95c9-bfd2cabcbcdc:localhost] 2021-04-06 22:37:14 | [Mutex] received everything. 2021-04-06 22:37:14 | [Mutex] isItemNotified: received:node:6733b0f4-39e1-448f-95c9-bfd2cabcbcdc:localhost:node-598122d1-a669-4740-8636-ef377655b10a:Node 598122d1-a669-4740-8636-ef377655b10a :: false 2021-04-06 22:37:14 | [Mutex] waiting for: [received:nodes:0e28c1af-2142-4bb5-8512-84b0a996cb8b:localhost] 2021-04-06 22:37:14 | [Mutex] received everything. 2021-04-06 22:37:14 | [Mutex] isItemNotified: received:node:0e28c1af-2142-4bb5-8512-84b0a996cb8b:localhost:node-598122d1-a669-4740-8636-ef377655b10a:Node 598122d1-a669-4740-8636-ef377655b10a :: false |
publishItemsToNodes | 0.060s |
2021-04-06 22:37:11 |
2021-04-06 22:37:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:11 | ------------------------------------ 2021-04-06 22:37:11 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-598122d1-a669-4740-8636-ef377655b10a", "entry": "<test>item-094abe88-06e5-488b-b5cd-13730407d24c</test>", "item-id": "item-094abe88-06e5-488b-b5cd-13730407d24c" } 2021-04-06 22:37:11 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-094abe88-06e5-488b-b5cd-13730407d24c" } 2021-04-06 22:37:11 | [Mutex] waiting for: [published:item:notifieditem-094abe88-06e5-488b-b5cd-13730407d24c:admin@test-domain.com] 2021-04-06 22:37:11 | [Mutex] received everything. 2021-04-06 22:37:11 | [Mutex] isItemNotified: published:item:notifieditem-094abe88-06e5-488b-b5cd-13730407d24c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.110s |
2021-04-06 22:37:12 |
2021-04-06 22:37:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:12 | ------------------------------------ 2021-04-06 22:37:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-598122d1-a669-4740-8636-ef377655b10a", "item-id": "item-094abe88-06e5-488b-b5cd-13730407d24c" } 2021-04-06 22:37:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-094abe88-06e5-488b-b5cd-13730407d24c" } 2021-04-06 22:37:12 | [Mutex] waiting for: [retracted:item:notifieditem-094abe88-06e5-488b-b5cd-13730407d24c:admin@test-domain.com] 2021-04-06 22:37:12 | [Mutex] received everything. 2021-04-06 22:37:12 | [Mutex] isItemNotified: retracted:item:notifieditem-094abe88-06e5-488b-b5cd-13730407d24c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.060s |
2021-04-06 22:37:11 |
2021-04-06 22:37:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:11 | ------------------------------------ 2021-04-06 22:37:11 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-598122d1-a669-4740-8636-ef377655b10a", "item-id": "item-094abe88-06e5-488b-b5cd-13730407d24c" } 2021-04-06 22:37:11 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-598122d1-a669-4740-8636-ef377655b10a", "item-id": "item-094abe88-06e5-488b-b5cd-13730407d24c", "item": [ "<item id=\"item-094abe88-06e5-488b-b5cd-13730407d24c\"><test>item-094abe88-06e5-488b-b5cd-13730407d24c</test></item>" ] } 2021-04-06 22:37:11 | [Mutex] notify: [retrieved:item:item-094abe88-06e5-488b-b5cd-13730407d24c:payload-matches:true:localhost] 2021-04-06 22:37:11 | [Mutex] received everything. 2021-04-06 22:37:11 | [Mutex] isItemNotified: retrieved:item:item-094abe88-06e5-488b-b5cd-13730407d24c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2021-04-06 22:37:11 |
2021-04-06 22:37:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:11 | ------------------------------------ 2021-04-06 22:37:11 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-04-06 22:37:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a38885ec-2da4-46d9-9433-2ca5d4177307", "node-598122d1-a669-4740-8636-ef377655b10a" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-04-06 22:37:12 |
2021-04-06 22:37:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:12 | ------------------------------------ 2021-04-06 22:37:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-598122d1-a669-4740-8636-ef377655b10a)" } 2021-04-06 22:37:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2021-04-06 22:37:10 |
2021-04-06 22:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:10 | ------------------------------------ 2021-04-06 22:37:10 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-598122d1-a669-4740-8636-ef377655b10a", "jids": [ "admin@test-domain.com" ] } 2021-04-06 22:37:10 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2021-04-06 22:37:12 |
2021-04-06 22:37:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-04-06 22:37:12 | ------------------------------------ 2021-04-06 22:37:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-598122d1-a669-4740-8636-ef377655b10a", "jids": [ "admin@test-domain.com" ] } 2021-04-06 22:37:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |