Test duration : 9.169s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2020-09-25 22:30:34 |
2020-09-25 22:30:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:34 | ------------------------------------ 2020-09-25 22:30:34 | [Mutex] waiting for: [configured:node:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:node-b48180c1-7aee-4473-81c9-bab6fec3a419] 2020-09-25 22:30:34 | [Mutex] received everything. 2020-09-25 22:30:34 | [Mutex] isItemNotified: configured:node:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:node-b48180c1-7aee-4473-81c9-bab6fec3a419 :: true 2020-09-25 22:30:35 | [Mutex] waiting for: [received:nodes:b489e1d8-4653-41f0-b97c-d048669bb061:localhost] 2020-09-25 22:30:35 | [Mutex] received everything. 2020-09-25 22:30:35 | [Mutex] isItemNotified: received:node:b489e1d8-4653-41f0-b97c-d048669bb061:localhost:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:Node 9d278c18-56c4-484c-b94b-6ebdbdc2413d :: true 2020-09-25 22:30:35 | [Mutex] waiting for: [received:nodes:7eb89727-db1b-478d-8915-930fda9227fc:localhost] 2020-09-25 22:30:35 | [Mutex] waiting for: [received:nodes:7eb89727-db1b-478d-8915-930fda9227fc:localhost] 2020-09-25 22:30:35 | [Mutex] waiting for: [received:nodes:7eb89727-db1b-478d-8915-930fda9227fc:localhost] 2020-09-25 22:30:35 | [Mutex] received everything. 2020-09-25 22:30:35 | [Mutex] isItemNotified: received:node:7eb89727-db1b-478d-8915-930fda9227fc:localhost:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:Node 9d278c18-56c4-484c-b94b-6ebdbdc2413d :: false |
createNodes | 1.845s |
2020-09-25 22:30:31 |
2020-09-25 22:30:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:31 | ------------------------------------ 2020-09-25 22:30:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "pubsub#title": "Node 9d278c18-56c4-484c-b94b-6ebdbdc2413d" } 2020-09-25 22:30:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:30:32 | [Mutex] waiting for: [received:nodes:ab58e665-e8da-4863-b5cc-282a0baf0c2f:localhost] 2020-09-25 22:30:32 | [Mutex] waiting for: [received:nodes:ab58e665-e8da-4863-b5cc-282a0baf0c2f:localhost] 2020-09-25 22:30:32 | [Mutex] waiting for: [received:nodes:ab58e665-e8da-4863-b5cc-282a0baf0c2f:localhost] 2020-09-25 22:30:32 | [Mutex] received everything. 2020-09-25 22:30:32 | [Mutex] isItemNotified: received:node:ab58e665-e8da-4863-b5cc-282a0baf0c2f:localhost:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:Node 9d278c18-56c4-484c-b94b-6ebdbdc2413d :: true |
createSubnodes | 1.026s |
2020-09-25 22:30:32 |
2020-09-25 22:30:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:32 | ------------------------------------ 2020-09-25 22:30:32 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b48180c1-7aee-4473-81c9-bab6fec3a419", "pubsub#title": "Node b48180c1-7aee-4473-81c9-bab6fec3a419" } 2020-09-25 22:30:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:30:34 | [Mutex] waiting for: [received:nodes:7a80ae9e-6640-4f90-91b8-2a1ea80a7c6e:localhost] 2020-09-25 22:30:34 | [Mutex] waiting for: [received:nodes:7a80ae9e-6640-4f90-91b8-2a1ea80a7c6e:localhost] 2020-09-25 22:30:34 | [Mutex] received everything. 2020-09-25 22:30:34 | [Mutex] isItemNotified: received:node:7a80ae9e-6640-4f90-91b8-2a1ea80a7c6e:localhost:node-b48180c1-7aee-4473-81c9-bab6fec3a419:Node b48180c1-7aee-4473-81c9-bab6fec3a419 :: true |
deleteNodes | 1.016s |
2020-09-25 22:30:38 |
2020-09-25 22:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:38 | ------------------------------------ 2020-09-25 22:30:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b48180c1-7aee-4473-81c9-bab6fec3a419" } 2020-09-25 22:30:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:30:39 | [Mutex] waiting for: [received:nodes:56d40d84-10da-46dc-b9e2-765f6612209b:localhost] 2020-09-25 22:30:39 | [Mutex] received everything. 2020-09-25 22:30:39 | [Mutex] isItemNotified: received:node:56d40d84-10da-46dc-b9e2-765f6612209b:localhost:node-b48180c1-7aee-4473-81c9-bab6fec3a419:Node b48180c1-7aee-4473-81c9-bab6fec3a419 :: false |
deleteSubnodes | 1.044s |
2020-09-25 22:30:37 |
2020-09-25 22:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:37 | ------------------------------------ 2020-09-25 22:30:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d" } 2020-09-25 22:30:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-25 22:30:38 | [Mutex] waiting for: [received:nodes:7980b3cb-c175-4ca3-862d-558d24202e2d:localhost] 2020-09-25 22:30:38 | [Mutex] received everything. 2020-09-25 22:30:38 | [Mutex] isItemNotified: received:node:7980b3cb-c175-4ca3-862d-558d24202e2d:localhost:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:Node 9d278c18-56c4-484c-b94b-6ebdbdc2413d :: false 2020-09-25 22:30:38 | [Mutex] waiting for: [received:nodes:94b81726-3f59-4b60-8232-0c7d09e7326c:localhost] 2020-09-25 22:30:38 | [Mutex] received everything. 2020-09-25 22:30:38 | [Mutex] isItemNotified: received:node:94b81726-3f59-4b60-8232-0c7d09e7326c:localhost:node-9d278c18-56c4-484c-b94b-6ebdbdc2413d:Node 9d278c18-56c4-484c-b94b-6ebdbdc2413d :: false |
publishItemsToNodes | 0.044s |
2020-09-25 22:30:36 |
2020-09-25 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:36 | ------------------------------------ 2020-09-25 22:30:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "entry": "<test>item-9c745ede-d55a-4dc3-b17e-3019c427f9f9</test>", "item-id": "item-9c745ede-d55a-4dc3-b17e-3019c427f9f9" } 2020-09-25 22:30:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9c745ede-d55a-4dc3-b17e-3019c427f9f9" } 2020-09-25 22:30:36 | [Mutex] waiting for: [published:item:notifieditem-9c745ede-d55a-4dc3-b17e-3019c427f9f9:admin@test-domain.com] 2020-09-25 22:30:36 | [Mutex] received everything. 2020-09-25 22:30:36 | [Mutex] isItemNotified: published:item:notifieditem-9c745ede-d55a-4dc3-b17e-3019c427f9f9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-09-25 22:30:36 |
2020-09-25 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:36 | ------------------------------------ 2020-09-25 22:30:36 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "item-id": "item-9c745ede-d55a-4dc3-b17e-3019c427f9f9" } 2020-09-25 22:30:36 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9c745ede-d55a-4dc3-b17e-3019c427f9f9" } 2020-09-25 22:30:36 | [Mutex] received everything. 2020-09-25 22:30:36 | [Mutex] isItemNotified: retracted:item:notifieditem-9c745ede-d55a-4dc3-b17e-3019c427f9f9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.080s |
2020-09-25 22:30:36 |
2020-09-25 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:36 | ------------------------------------ 2020-09-25 22:30:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "item-id": "item-9c745ede-d55a-4dc3-b17e-3019c427f9f9" } 2020-09-25 22:30:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "item-id": "item-9c745ede-d55a-4dc3-b17e-3019c427f9f9", "item": [ "<item id=\"item-9c745ede-d55a-4dc3-b17e-3019c427f9f9\"><test>item-9c745ede-d55a-4dc3-b17e-3019c427f9f9</test></item>" ] } 2020-09-25 22:30:36 | [Mutex] notify: [retrieved:item:item-9c745ede-d55a-4dc3-b17e-3019c427f9f9:payload-matches:true:localhost] 2020-09-25 22:30:36 | [Mutex] received everything. 2020-09-25 22:30:36 | [Mutex] isItemNotified: retrieved:item:item-9c745ede-d55a-4dc3-b17e-3019c427f9f9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-25 22:30:36 |
2020-09-25 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:36 | ------------------------------------ 2020-09-25 22:30:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-25 22:30:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "node-b48180c1-7aee-4473-81c9-bab6fec3a419" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-25 22:30:36 |
2020-09-25 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:36 | ------------------------------------ 2020-09-25 22:30:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9d278c18-56c4-484c-b94b-6ebdbdc2413d)" } 2020-09-25 22:30:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-09-25 22:30:35 |
2020-09-25 22:30:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:35 | ------------------------------------ 2020-09-25 22:30:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "jids": [ "admin@test-domain.com" ] } 2020-09-25 22:30:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-09-25 22:30:36 |
2020-09-25 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-25 22:30:36 | ------------------------------------ 2020-09-25 22:30:36 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9d278c18-56c4-484c-b94b-6ebdbdc2413d", "jids": [ "admin@test-domain.com" ] } 2020-09-25 22:30:36 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |