Test duration : 8.863s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2021-10-03 22:34:26 |
2021-10-03 22:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:26 | ------------------------------------ 2021-10-03 22:34:26 | [Mutex] waiting for: [configured:node:node-afe47dac-5407-4764-8e65-987fa15373b5:node-2344bc0c-1860-498d-87c5-6f30773234bd] 2021-10-03 22:34:26 | [Mutex] received everything. 2021-10-03 22:34:26 | [Mutex] isItemNotified: configured:node:node-afe47dac-5407-4764-8e65-987fa15373b5:node-2344bc0c-1860-498d-87c5-6f30773234bd :: true 2021-10-03 22:34:27 | [Mutex] waiting for: [received:nodes:e58ede7a-229e-4616-8df0-fdef37f50a53:localhost] 2021-10-03 22:34:27 | [Mutex] waiting for: [received:nodes:e58ede7a-229e-4616-8df0-fdef37f50a53:localhost] 2021-10-03 22:34:27 | [Mutex] received everything. 2021-10-03 22:34:27 | [Mutex] isItemNotified: received:node:e58ede7a-229e-4616-8df0-fdef37f50a53:localhost:node-afe47dac-5407-4764-8e65-987fa15373b5:Node afe47dac-5407-4764-8e65-987fa15373b5 :: true 2021-10-03 22:34:27 | [Mutex] waiting for: [received:nodes:c0f0bfc4-c6ff-45da-8094-0a68c6d2c012:localhost] 2021-10-03 22:34:27 | [Mutex] waiting for: [received:nodes:c0f0bfc4-c6ff-45da-8094-0a68c6d2c012:localhost] 2021-10-03 22:34:27 | [Mutex] received everything. 2021-10-03 22:34:27 | [Mutex] isItemNotified: received:node:c0f0bfc4-c6ff-45da-8094-0a68c6d2c012:localhost:node-afe47dac-5407-4764-8e65-987fa15373b5:Node afe47dac-5407-4764-8e65-987fa15373b5 :: false |
createNodes | 1.667s |
2021-10-03 22:34:23 |
2021-10-03 22:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:23 | ------------------------------------ 2021-10-03 22:34:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "pubsub#title": "Node afe47dac-5407-4764-8e65-987fa15373b5" } 2021-10-03 22:34:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 22:34:25 | [Mutex] waiting for: [received:nodes:b8b74841-2854-4ad1-b708-54cc20a66338:localhost] 2021-10-03 22:34:25 | [Mutex] received everything. 2021-10-03 22:34:25 | [Mutex] isItemNotified: received:node:b8b74841-2854-4ad1-b708-54cc20a66338:localhost:node-afe47dac-5407-4764-8e65-987fa15373b5:Node afe47dac-5407-4764-8e65-987fa15373b5 :: true |
createSubnodes | 1.033s |
2021-10-03 22:34:25 |
2021-10-03 22:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:25 | ------------------------------------ 2021-10-03 22:34:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2344bc0c-1860-498d-87c5-6f30773234bd", "pubsub#title": "Node 2344bc0c-1860-498d-87c5-6f30773234bd" } 2021-10-03 22:34:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 22:34:26 | [Mutex] waiting for: [received:nodes:4f71d21b-3f26-446c-b33e-5a75cf79717a:localhost] 2021-10-03 22:34:26 | [Mutex] received everything. 2021-10-03 22:34:26 | [Mutex] isItemNotified: received:node:4f71d21b-3f26-446c-b33e-5a75cf79717a:localhost:node-2344bc0c-1860-498d-87c5-6f30773234bd:Node 2344bc0c-1860-498d-87c5-6f30773234bd :: true |
deleteNodes | 1.019s |
2021-10-03 22:34:30 |
2021-10-03 22:34:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:30 | ------------------------------------ 2021-10-03 22:34:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2344bc0c-1860-498d-87c5-6f30773234bd" } 2021-10-03 22:34:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 22:34:31 | [Mutex] waiting for: [received:nodes:e5212e0c-2cbc-4555-a407-eb6eca84318f:localhost] 2021-10-03 22:34:31 | [Mutex] received everything. 2021-10-03 22:34:31 | [Mutex] isItemNotified: received:node:e5212e0c-2cbc-4555-a407-eb6eca84318f:localhost:node-2344bc0c-1860-498d-87c5-6f30773234bd:Node 2344bc0c-1860-498d-87c5-6f30773234bd :: false |
deleteSubnodes | 1.025s |
2021-10-03 22:34:29 |
2021-10-03 22:34:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:29 | ------------------------------------ 2021-10-03 22:34:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-afe47dac-5407-4764-8e65-987fa15373b5" } 2021-10-03 22:34:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-03 22:34:30 | [Mutex] waiting for: [received:nodes:b478fa60-971e-4376-bcc6-4e8d34c3dfd0:localhost] 2021-10-03 22:34:30 | [Mutex] waiting for: [received:nodes:b478fa60-971e-4376-bcc6-4e8d34c3dfd0:localhost] 2021-10-03 22:34:30 | [Mutex] received everything. 2021-10-03 22:34:30 | [Mutex] isItemNotified: received:node:b478fa60-971e-4376-bcc6-4e8d34c3dfd0:localhost:node-afe47dac-5407-4764-8e65-987fa15373b5:Node afe47dac-5407-4764-8e65-987fa15373b5 :: false 2021-10-03 22:34:30 | [Mutex] waiting for: [received:nodes:947dfd40-21c5-41f3-acee-d4d0e120c5b6:localhost] 2021-10-03 22:34:30 | [Mutex] received everything. 2021-10-03 22:34:30 | [Mutex] isItemNotified: received:node:947dfd40-21c5-41f3-acee-d4d0e120c5b6:localhost:node-afe47dac-5407-4764-8e65-987fa15373b5:Node afe47dac-5407-4764-8e65-987fa15373b5 :: false |
publishItemsToNodes | 0.045s |
2021-10-03 22:34:28 |
2021-10-03 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:28 | ------------------------------------ 2021-10-03 22:34:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "entry": "<test>item-afc48625-e356-4d0f-b147-f470464f8998</test>", "item-id": "item-afc48625-e356-4d0f-b147-f470464f8998" } 2021-10-03 22:34:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-afc48625-e356-4d0f-b147-f470464f8998" } 2021-10-03 22:34:28 | [Mutex] waiting for: [published:item:notifieditem-afc48625-e356-4d0f-b147-f470464f8998:admin@test-domain.com] 2021-10-03 22:34:28 | [Mutex] received everything. 2021-10-03 22:34:28 | [Mutex] isItemNotified: published:item:notifieditem-afc48625-e356-4d0f-b147-f470464f8998:admin@test-domain.com :: true |
retractItemsFromNodes | 0.101s |
2021-10-03 22:34:28 |
2021-10-03 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:28 | ------------------------------------ 2021-10-03 22:34:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "item-id": "item-afc48625-e356-4d0f-b147-f470464f8998" } 2021-10-03 22:34:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-afc48625-e356-4d0f-b147-f470464f8998" } 2021-10-03 22:34:28 | [Mutex] waiting for: [retracted:item:notifieditem-afc48625-e356-4d0f-b147-f470464f8998:admin@test-domain.com] 2021-10-03 22:34:28 | [Mutex] received everything. 2021-10-03 22:34:28 | [Mutex] isItemNotified: retracted:item:notifieditem-afc48625-e356-4d0f-b147-f470464f8998:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.068s |
2021-10-03 22:34:28 |
2021-10-03 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:28 | ------------------------------------ 2021-10-03 22:34:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "item-id": "item-afc48625-e356-4d0f-b147-f470464f8998" } 2021-10-03 22:34:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "item-id": "item-afc48625-e356-4d0f-b147-f470464f8998", "item": [ "<item id=\"item-afc48625-e356-4d0f-b147-f470464f8998\"><test>item-afc48625-e356-4d0f-b147-f470464f8998</test></item>" ] } 2021-10-03 22:34:28 | [Mutex] notify: [retrieved:item:item-afc48625-e356-4d0f-b147-f470464f8998:payload-matches:true:localhost] 2021-10-03 22:34:28 | [Mutex] received everything. 2021-10-03 22:34:28 | [Mutex] isItemNotified: retrieved:item:item-afc48625-e356-4d0f-b147-f470464f8998:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2021-10-03 22:34:28 |
2021-10-03 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:28 | ------------------------------------ 2021-10-03 22:34:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-03 22:34:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-2344bc0c-1860-498d-87c5-6f30773234bd", "test", "node-afe47dac-5407-4764-8e65-987fa15373b5" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-10-03 22:34:28 |
2021-10-03 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:28 | ------------------------------------ 2021-10-03 22:34:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-afe47dac-5407-4764-8e65-987fa15373b5)" } 2021-10-03 22:34:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-10-03 22:34:27 |
2021-10-03 22:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:27 | ------------------------------------ 2021-10-03 22:34:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "jids": [ "admin@test-domain.com" ] } 2021-10-03 22:34:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.045s |
2021-10-03 22:34:28 |
2021-10-03 22:34:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-03 22:34:28 | ------------------------------------ 2021-10-03 22:34:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-afe47dac-5407-4764-8e65-987fa15373b5", "jids": [ "admin@test-domain.com" ] } 2021-10-03 22:34:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |