Test duration : 9.112s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.098s |
2020-11-18 21:27:11 |
2020-11-18 21:27:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:11 | ------------------------------------ 2020-11-18 21:27:11 | [Mutex] waiting for: [configured:node:node-ed6bd25e-adf7-4930-9e19-a024556191b1:node-1818b109-443d-427e-bf8b-fff1ca9e4712] 2020-11-18 21:27:11 | [Mutex] received everything. 2020-11-18 21:27:11 | [Mutex] isItemNotified: configured:node:node-ed6bd25e-adf7-4930-9e19-a024556191b1:node-1818b109-443d-427e-bf8b-fff1ca9e4712 :: true 2020-11-18 21:27:13 | [Mutex] waiting for: [received:nodes:2ab4ad0c-d467-47e6-8559-8ce8edbb4b19:localhost] 2020-11-18 21:27:13 | [Mutex] waiting for: [received:nodes:2ab4ad0c-d467-47e6-8559-8ce8edbb4b19:localhost] 2020-11-18 21:27:13 | [Mutex] received everything. 2020-11-18 21:27:13 | [Mutex] isItemNotified: received:node:2ab4ad0c-d467-47e6-8559-8ce8edbb4b19:localhost:node-ed6bd25e-adf7-4930-9e19-a024556191b1:Node ed6bd25e-adf7-4930-9e19-a024556191b1 :: true 2020-11-18 21:27:13 | [Mutex] waiting for: [received:nodes:50ff2a3f-82fa-46f4-a431-1e57e2911f5c:localhost] 2020-11-18 21:27:13 | [Mutex] received everything. 2020-11-18 21:27:13 | [Mutex] isItemNotified: received:node:50ff2a3f-82fa-46f4-a431-1e57e2911f5c:localhost:node-ed6bd25e-adf7-4930-9e19-a024556191b1:Node ed6bd25e-adf7-4930-9e19-a024556191b1 :: false |
createNodes | 1.662s |
2020-11-18 21:27:09 |
2020-11-18 21:27:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:09 | ------------------------------------ 2020-11-18 21:27:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "pubsub#title": "Node ed6bd25e-adf7-4930-9e19-a024556191b1" } 2020-11-18 21:27:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:27:10 | [Mutex] waiting for: [received:nodes:4ddbae7c-b66f-4a17-bd33-671238385f93:localhost] 2020-11-18 21:27:10 | [Mutex] received everything. 2020-11-18 21:27:10 | [Mutex] isItemNotified: received:node:4ddbae7c-b66f-4a17-bd33-671238385f93:localhost:node-ed6bd25e-adf7-4930-9e19-a024556191b1:Node ed6bd25e-adf7-4930-9e19-a024556191b1 :: true |
createSubnodes | 1.034s |
2020-11-18 21:27:10 |
2020-11-18 21:27:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:10 | ------------------------------------ 2020-11-18 21:27:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1818b109-443d-427e-bf8b-fff1ca9e4712", "pubsub#title": "Node 1818b109-443d-427e-bf8b-fff1ca9e4712" } 2020-11-18 21:27:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:27:11 | [Mutex] waiting for: [received:nodes:02783425-51fd-4c08-bff8-901acfe58638:localhost] 2020-11-18 21:27:11 | [Mutex] waiting for: [received:nodes:02783425-51fd-4c08-bff8-901acfe58638:localhost] 2020-11-18 21:27:11 | [Mutex] waiting for: [received:nodes:02783425-51fd-4c08-bff8-901acfe58638:localhost] 2020-11-18 21:27:11 | [Mutex] received everything. 2020-11-18 21:27:11 | [Mutex] isItemNotified: received:node:02783425-51fd-4c08-bff8-901acfe58638:localhost:node-1818b109-443d-427e-bf8b-fff1ca9e4712:Node 1818b109-443d-427e-bf8b-fff1ca9e4712 :: true |
deleteNodes | 1.028s |
2020-11-18 21:27:16 |
2020-11-18 21:27:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:16 | ------------------------------------ 2020-11-18 21:27:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1818b109-443d-427e-bf8b-fff1ca9e4712" } 2020-11-18 21:27:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:27:17 | [Mutex] waiting for: [received:nodes:fe724c50-4b3f-428f-9ce5-fdea140c1a2a:localhost] 2020-11-18 21:27:17 | [Mutex] waiting for: [received:nodes:fe724c50-4b3f-428f-9ce5-fdea140c1a2a:localhost] 2020-11-18 21:27:17 | [Mutex] waiting for: [received:nodes:fe724c50-4b3f-428f-9ce5-fdea140c1a2a:localhost] 2020-11-18 21:27:17 | [Mutex] received everything. 2020-11-18 21:27:17 | [Mutex] isItemNotified: received:node:fe724c50-4b3f-428f-9ce5-fdea140c1a2a:localhost:node-1818b109-443d-427e-bf8b-fff1ca9e4712:Node 1818b109-443d-427e-bf8b-fff1ca9e4712 :: false |
deleteSubnodes | 1.050s |
2020-11-18 21:27:15 |
2020-11-18 21:27:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:15 | ------------------------------------ 2020-11-18 21:27:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1" } 2020-11-18 21:27:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:27:16 | [Mutex] waiting for: [received:nodes:d014c675-08b1-4a3f-895e-0a4c4a830356:localhost] 2020-11-18 21:27:16 | [Mutex] waiting for: [received:nodes:d014c675-08b1-4a3f-895e-0a4c4a830356:localhost] 2020-11-18 21:27:16 | [Mutex] received everything. 2020-11-18 21:27:16 | [Mutex] isItemNotified: received:node:d014c675-08b1-4a3f-895e-0a4c4a830356:localhost:node-ed6bd25e-adf7-4930-9e19-a024556191b1:Node ed6bd25e-adf7-4930-9e19-a024556191b1 :: false 2020-11-18 21:27:16 | [Mutex] waiting for: [received:nodes:77a3ffd6-911c-4f11-a9b2-72e9abb3545f:localhost] 2020-11-18 21:27:16 | [Mutex] received everything. 2020-11-18 21:27:16 | [Mutex] isItemNotified: received:node:77a3ffd6-911c-4f11-a9b2-72e9abb3545f:localhost:node-ed6bd25e-adf7-4930-9e19-a024556191b1:Node ed6bd25e-adf7-4930-9e19-a024556191b1 :: false |
publishItemsToNodes | 0.065s |
2020-11-18 21:27:14 |
2020-11-18 21:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:14 | ------------------------------------ 2020-11-18 21:27:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "entry": "<test>item-40d5ace7-4c62-480a-9a2c-92b18c186618</test>", "item-id": "item-40d5ace7-4c62-480a-9a2c-92b18c186618" } 2020-11-18 21:27:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40d5ace7-4c62-480a-9a2c-92b18c186618" } 2020-11-18 21:27:14 | [Mutex] waiting for: [published:item:notifieditem-40d5ace7-4c62-480a-9a2c-92b18c186618:admin@test-domain.com] 2020-11-18 21:27:14 | [Mutex] received everything. 2020-11-18 21:27:14 | [Mutex] isItemNotified: published:item:notifieditem-40d5ace7-4c62-480a-9a2c-92b18c186618:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-11-18 21:27:14 |
2020-11-18 21:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:14 | ------------------------------------ 2020-11-18 21:27:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "item-id": "item-40d5ace7-4c62-480a-9a2c-92b18c186618" } 2020-11-18 21:27:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-40d5ace7-4c62-480a-9a2c-92b18c186618" } 2020-11-18 21:27:14 | [Mutex] received everything. 2020-11-18 21:27:14 | [Mutex] isItemNotified: retracted:item:notifieditem-40d5ace7-4c62-480a-9a2c-92b18c186618:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.024s |
2020-11-18 21:27:14 |
2020-11-18 21:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:14 | ------------------------------------ 2020-11-18 21:27:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "item-id": "item-40d5ace7-4c62-480a-9a2c-92b18c186618" } 2020-11-18 21:27:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "item-id": "item-40d5ace7-4c62-480a-9a2c-92b18c186618", "item": [ "<item id=\"item-40d5ace7-4c62-480a-9a2c-92b18c186618\"><test>item-40d5ace7-4c62-480a-9a2c-92b18c186618</test></item>" ] } 2020-11-18 21:27:14 | [Mutex] notify: [retrieved:item:item-40d5ace7-4c62-480a-9a2c-92b18c186618:payload-matches:true:localhost] 2020-11-18 21:27:14 | [Mutex] received everything. 2020-11-18 21:27:14 | [Mutex] isItemNotified: retrieved:item:item-40d5ace7-4c62-480a-9a2c-92b18c186618:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2020-11-18 21:27:14 |
2020-11-18 21:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:14 | ------------------------------------ 2020-11-18 21:27:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-18 21:27:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "node-1818b109-443d-427e-bf8b-fff1ca9e4712" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-18 21:27:14 |
2020-11-18 21:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:14 | ------------------------------------ 2020-11-18 21:27:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ed6bd25e-adf7-4930-9e19-a024556191b1)" } 2020-11-18 21:27:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2020-11-18 21:27:13 |
2020-11-18 21:27:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:13 | ------------------------------------ 2020-11-18 21:27:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "jids": [ "admin@test-domain.com" ] } 2020-11-18 21:27:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-11-18 21:27:14 |
2020-11-18 21:27:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:27:14 | ------------------------------------ 2020-11-18 21:27:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ed6bd25e-adf7-4930-9e19-a024556191b1", "jids": [ "admin@test-domain.com" ] } 2020-11-18 21:27:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |