Test duration: 8.769s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2019-11-21 04:55:10 |
2019-11-21 04:55:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:10 | ------------------------------------ 2019-11-21 04:55:10 | [Mutex] waiting for: [configured:node:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe] 2019-11-21 04:55:10 | [Mutex] received everything. 2019-11-21 04:55:10 | [Mutex] isItemNotified: configured:node:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe :: true 2019-11-21 04:55:11 | [Mutex] waiting for: [received:nodes:c5de30e8-8622-4491-84ee-ecbf87b78504:localhost] 2019-11-21 04:55:11 | [Mutex] received everything. 2019-11-21 04:55:11 | [Mutex] isItemNotified: received:node:c5de30e8-8622-4491-84ee-ecbf87b78504:localhost:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:Node c6f9ca46-af4b-40e7-b7a5-534a10f45944 :: true 2019-11-21 04:55:11 | [Mutex] waiting for: [received:nodes:c8c54062-ca20-4da8-bd77-57e1c05dce80:localhost] 2019-11-21 04:55:11 | [Mutex] received everything. 2019-11-21 04:55:11 | [Mutex] isItemNotified: received:node:c8c54062-ca20-4da8-bd77-57e1c05dce80:localhost:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:Node c6f9ca46-af4b-40e7-b7a5-534a10f45944 :: false |
createNodes | 1.612s |
2019-11-21 04:55:08 |
2019-11-21 04:55:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:08 | ------------------------------------ 2019-11-21 04:55:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "pubsub#title": "Node c6f9ca46-af4b-40e7-b7a5-534a10f45944" } 2019-11-21 04:55:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-21 04:55:09 | [Mutex] waiting for: [received:nodes:788f3c8d-1808-4fa4-a2b7-958da642ed14:localhost] 2019-11-21 04:55:09 | [Mutex] waiting for: [received:nodes:788f3c8d-1808-4fa4-a2b7-958da642ed14:localhost] 2019-11-21 04:55:09 | [Mutex] received everything. 2019-11-21 04:55:09 | [Mutex] isItemNotified: received:node:788f3c8d-1808-4fa4-a2b7-958da642ed14:localhost:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:Node c6f9ca46-af4b-40e7-b7a5-534a10f45944 :: true |
createSubnodes | 1.025s |
2019-11-21 04:55:09 |
2019-11-21 04:55:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:09 | ------------------------------------ 2019-11-21 04:55:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe", "pubsub#title": "Node ed640baa-5ea0-4cc5-b5b4-648304f30bfe" } 2019-11-21 04:55:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-21 04:55:10 | [Mutex] waiting for: [received:nodes:4cc2f248-f081-4d86-b89c-54e5fa3593fe:localhost] 2019-11-21 04:55:10 | [Mutex] waiting for: [received:nodes:4cc2f248-f081-4d86-b89c-54e5fa3593fe:localhost] 2019-11-21 04:55:10 | [Mutex] waiting for: [received:nodes:4cc2f248-f081-4d86-b89c-54e5fa3593fe:localhost] 2019-11-21 04:55:10 | [Mutex] received everything. 2019-11-21 04:55:10 | [Mutex] isItemNotified: received:node:4cc2f248-f081-4d86-b89c-54e5fa3593fe:localhost:node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe:Node ed640baa-5ea0-4cc5-b5b4-648304f30bfe :: true |
deleteNodes | 1.023s |
2019-11-21 04:55:15 |
2019-11-21 04:55:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:15 | ------------------------------------ 2019-11-21 04:55:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe" } 2019-11-21 04:55:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-21 04:55:16 | [Mutex] waiting for: [received:nodes:e8500c6a-216b-4ad1-9592-d89b83d1a56b:localhost] 2019-11-21 04:55:16 | [Mutex] received everything. 2019-11-21 04:55:16 | [Mutex] isItemNotified: received:node:e8500c6a-216b-4ad1-9592-d89b83d1a56b:localhost:node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe:Node ed640baa-5ea0-4cc5-b5b4-648304f30bfe :: false |
deleteSubnodes | 1.025s |
2019-11-21 04:55:14 |
2019-11-21 04:55:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:14 | ------------------------------------ 2019-11-21 04:55:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944" } 2019-11-21 04:55:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-21 04:55:15 | [Mutex] waiting for: [received:nodes:37dfceb8-00c8-423e-bdec-703d7fcfbfbf:localhost] 2019-11-21 04:55:15 | [Mutex] waiting for: [received:nodes:37dfceb8-00c8-423e-bdec-703d7fcfbfbf:localhost] 2019-11-21 04:55:15 | [Mutex] received everything. 2019-11-21 04:55:15 | [Mutex] isItemNotified: received:node:37dfceb8-00c8-423e-bdec-703d7fcfbfbf:localhost:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:Node c6f9ca46-af4b-40e7-b7a5-534a10f45944 :: false 2019-11-21 04:55:15 | [Mutex] waiting for: [received:nodes:3658617d-2649-4727-b0fb-a2c5e5dc0258:localhost] 2019-11-21 04:55:15 | [Mutex] received everything. 2019-11-21 04:55:15 | [Mutex] isItemNotified: received:node:3658617d-2649-4727-b0fb-a2c5e5dc0258:localhost:node-c6f9ca46-af4b-40e7-b7a5-534a10f45944:Node c6f9ca46-af4b-40e7-b7a5-534a10f45944 :: false |
publishItemsToNodes | 0.037s |
2019-11-21 04:55:12 |
2019-11-21 04:55:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:12 | ------------------------------------ 2019-11-21 04:55:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "entry": "<test>item-edfc2554-ee2c-472d-acbf-386cb1b935fe</test>", "item-id": "item-edfc2554-ee2c-472d-acbf-386cb1b935fe" } 2019-11-21 04:55:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-edfc2554-ee2c-472d-acbf-386cb1b935fe" } 2019-11-21 04:55:12 | [Mutex] waiting for: [published:item:notifieditem-edfc2554-ee2c-472d-acbf-386cb1b935fe:admin@localhost] 2019-11-21 04:55:13 | [Mutex] received everything. 2019-11-21 04:55:13 | [Mutex] isItemNotified: published:item:notifieditem-edfc2554-ee2c-472d-acbf-386cb1b935fe:admin@localhost :: true |
retractItemsFromNodes | 0.060s |
2019-11-21 04:55:13 |
2019-11-21 04:55:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:13 | ------------------------------------ 2019-11-21 04:55:13 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "item-id": "item-edfc2554-ee2c-472d-acbf-386cb1b935fe" } 2019-11-21 04:55:13 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-edfc2554-ee2c-472d-acbf-386cb1b935fe" } 2019-11-21 04:55:13 | [Mutex] received everything. 2019-11-21 04:55:13 | [Mutex] isItemNotified: retracted:item:notifieditem-edfc2554-ee2c-472d-acbf-386cb1b935fe:admin@localhost :: true |
retrieveItemsFromNodes | 0.065s |
2019-11-21 04:55:13 |
2019-11-21 04:55:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:13 | ------------------------------------ 2019-11-21 04:55:13 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "item-id": "item-edfc2554-ee2c-472d-acbf-386cb1b935fe" } 2019-11-21 04:55:13 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "item-id": "item-edfc2554-ee2c-472d-acbf-386cb1b935fe", "item": [ "<item id=\"item-edfc2554-ee2c-472d-acbf-386cb1b935fe\"><test>item-edfc2554-ee2c-472d-acbf-386cb1b935fe</test></item>" ] } 2019-11-21 04:55:13 | [Mutex] notify: [retrieved:item:item-edfc2554-ee2c-472d-acbf-386cb1b935fe:payload-matches:true:localhost] 2019-11-21 04:55:13 | [Mutex] received everything. 2019-11-21 04:55:13 | [Mutex] isItemNotified: retrieved:item:item-edfc2554-ee2c-472d-acbf-386cb1b935fe:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-11-21 04:55:13 |
2019-11-21 04:55:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:13 | ------------------------------------ 2019-11-21 04:55:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-21 04:55:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "node-ed640baa-5ea0-4cc5-b5b4-648304f30bfe" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-21 04:55:13 |
2019-11-21 04:55:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:13 | ------------------------------------ 2019-11-21 04:55:13 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-c6f9ca46-af4b-40e7-b7a5-534a10f45944)" } 2019-11-21 04:55:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.021s |
2019-11-21 04:55:11 |
2019-11-21 04:55:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:11 | ------------------------------------ 2019-11-21 04:55:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "jids": [ "admin@localhost" ] } 2019-11-21 04:55:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2019-11-21 04:55:13 |
2019-11-21 04:55:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-21 04:55:13 | ------------------------------------ 2019-11-21 04:55:13 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-c6f9ca46-af4b-40e7-b7a5-534a10f45944", "jids": [ "admin@localhost" ] } 2019-11-21 04:55:13 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |