Test duration : 8.712s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-07-01 22:33:12 |
2022-07-01 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:12 | ------------------------------------ 2022-07-01 22:33:12 | [Mutex] waiting for: [configured:node:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:node-6235b64b-c88a-486a-8c49-b03f7c24b758] 2022-07-01 22:33:12 | [Mutex] received everything. 2022-07-01 22:33:12 | [Mutex] isItemNotified: configured:node:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:node-6235b64b-c88a-486a-8c49-b03f7c24b758 :: true 2022-07-01 22:33:13 | [Mutex] waiting for: [received:nodes:a823b5c7-13ff-4a86-9e11-e48497f0ce00:localhost] 2022-07-01 22:33:13 | [Mutex] received everything. 2022-07-01 22:33:13 | [Mutex] isItemNotified: received:node:a823b5c7-13ff-4a86-9e11-e48497f0ce00:localhost:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:Node 42605a6a-bfe9-4a64-a77f-bf048bb03e5a :: true 2022-07-01 22:33:13 | [Mutex] waiting for: [received:nodes:41381833-bfa7-45be-9195-79ddd428ea2d:localhost] 2022-07-01 22:33:13 | [Mutex] waiting for: [received:nodes:41381833-bfa7-45be-9195-79ddd428ea2d:localhost] 2022-07-01 22:33:13 | [Mutex] received everything. 2022-07-01 22:33:13 | [Mutex] isItemNotified: received:node:41381833-bfa7-45be-9195-79ddd428ea2d:localhost:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:Node 42605a6a-bfe9-4a64-a77f-bf048bb03e5a :: false |
createNodes | 1.633s |
2022-07-01 22:33:09 |
2022-07-01 22:33:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:09 | ------------------------------------ 2022-07-01 22:33:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "pubsub#title": "Node 42605a6a-bfe9-4a64-a77f-bf048bb03e5a" } 2022-07-01 22:33:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 22:33:11 | [Mutex] waiting for: [received:nodes:e3e45007-de4f-456a-8788-01a63a54498f:localhost] 2022-07-01 22:33:11 | [Mutex] received everything. 2022-07-01 22:33:11 | [Mutex] isItemNotified: received:node:e3e45007-de4f-456a-8788-01a63a54498f:localhost:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:Node 42605a6a-bfe9-4a64-a77f-bf048bb03e5a :: true |
createSubnodes | 1.022s |
2022-07-01 22:33:11 |
2022-07-01 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:11 | ------------------------------------ 2022-07-01 22:33:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6235b64b-c88a-486a-8c49-b03f7c24b758", "pubsub#title": "Node 6235b64b-c88a-486a-8c49-b03f7c24b758" } 2022-07-01 22:33:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 22:33:12 | [Mutex] waiting for: [received:nodes:dd046b88-6e95-45e5-8d1b-a33617966bb1:localhost] 2022-07-01 22:33:12 | [Mutex] waiting for: [received:nodes:dd046b88-6e95-45e5-8d1b-a33617966bb1:localhost] 2022-07-01 22:33:12 | [Mutex] received everything. 2022-07-01 22:33:12 | [Mutex] isItemNotified: received:node:dd046b88-6e95-45e5-8d1b-a33617966bb1:localhost:node-6235b64b-c88a-486a-8c49-b03f7c24b758:Node 6235b64b-c88a-486a-8c49-b03f7c24b758 :: true |
deleteNodes | 1.018s |
2022-07-01 22:33:16 |
2022-07-01 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:16 | ------------------------------------ 2022-07-01 22:33:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6235b64b-c88a-486a-8c49-b03f7c24b758" } 2022-07-01 22:33:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 22:33:17 | [Mutex] waiting for: [received:nodes:28544e31-e721-4320-8692-1f1ecd4cf873:localhost] 2022-07-01 22:33:17 | [Mutex] waiting for: [received:nodes:28544e31-e721-4320-8692-1f1ecd4cf873:localhost] 2022-07-01 22:33:17 | [Mutex] received everything. 2022-07-01 22:33:17 | [Mutex] isItemNotified: received:node:28544e31-e721-4320-8692-1f1ecd4cf873:localhost:node-6235b64b-c88a-486a-8c49-b03f7c24b758:Node 6235b64b-c88a-486a-8c49-b03f7c24b758 :: false |
deleteSubnodes | 1.028s |
2022-07-01 22:33:15 |
2022-07-01 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:15 | ------------------------------------ 2022-07-01 22:33:15 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a" } 2022-07-01 22:33:15 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 22:33:16 | [Mutex] waiting for: [received:nodes:c571f963-8727-4005-8e50-0e0d2b2dc35c:localhost] 2022-07-01 22:33:16 | [Mutex] waiting for: [received:nodes:c571f963-8727-4005-8e50-0e0d2b2dc35c:localhost] 2022-07-01 22:33:16 | [Mutex] received everything. 2022-07-01 22:33:16 | [Mutex] isItemNotified: received:node:c571f963-8727-4005-8e50-0e0d2b2dc35c:localhost:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:Node 42605a6a-bfe9-4a64-a77f-bf048bb03e5a :: false 2022-07-01 22:33:16 | [Mutex] waiting for: [received:nodes:04e38c42-28be-4859-9087-f2ceca470f23:localhost] 2022-07-01 22:33:16 | [Mutex] received everything. 2022-07-01 22:33:16 | [Mutex] isItemNotified: received:node:04e38c42-28be-4859-9087-f2ceca470f23:localhost:node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a:Node 42605a6a-bfe9-4a64-a77f-bf048bb03e5a :: false |
publishItemsToNodes | 0.044s |
2022-07-01 22:33:14 |
2022-07-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:14 | ------------------------------------ 2022-07-01 22:33:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "entry": "<test>item-3ba88d58-dc91-4654-91fa-c15a522aa8ec</test>", "item-id": "item-3ba88d58-dc91-4654-91fa-c15a522aa8ec" } 2022-07-01 22:33:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ba88d58-dc91-4654-91fa-c15a522aa8ec" } 2022-07-01 22:33:14 | [Mutex] waiting for: [published:item:notifieditem-3ba88d58-dc91-4654-91fa-c15a522aa8ec:admin@test-domain.com] 2022-07-01 22:33:14 | [Mutex] received everything. 2022-07-01 22:33:14 | [Mutex] isItemNotified: published:item:notifieditem-3ba88d58-dc91-4654-91fa-c15a522aa8ec:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-07-01 22:33:14 |
2022-07-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:14 | ------------------------------------ 2022-07-01 22:33:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "item-id": "item-3ba88d58-dc91-4654-91fa-c15a522aa8ec" } 2022-07-01 22:33:14 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3ba88d58-dc91-4654-91fa-c15a522aa8ec" } 2022-07-01 22:33:14 | [Mutex] received everything. 2022-07-01 22:33:14 | [Mutex] isItemNotified: retracted:item:notifieditem-3ba88d58-dc91-4654-91fa-c15a522aa8ec:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-07-01 22:33:14 |
2022-07-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:14 | ------------------------------------ 2022-07-01 22:33:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "item-id": "item-3ba88d58-dc91-4654-91fa-c15a522aa8ec" } 2022-07-01 22:33:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "item-id": "item-3ba88d58-dc91-4654-91fa-c15a522aa8ec", "item": [ "<item id=\"item-3ba88d58-dc91-4654-91fa-c15a522aa8ec\"><test>item-3ba88d58-dc91-4654-91fa-c15a522aa8ec</test></item>" ] } 2022-07-01 22:33:14 | [Mutex] notify: [retrieved:item:item-3ba88d58-dc91-4654-91fa-c15a522aa8ec:payload-matches:true:localhost] 2022-07-01 22:33:14 | [Mutex] received everything. 2022-07-01 22:33:14 | [Mutex] isItemNotified: retrieved:item:item-3ba88d58-dc91-4654-91fa-c15a522aa8ec:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2022-07-01 22:33:14 |
2022-07-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:14 | ------------------------------------ 2022-07-01 22:33:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-01 22:33:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "node-6235b64b-c88a-486a-8c49-b03f7c24b758" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-07-01 22:33:14 |
2022-07-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:14 | ------------------------------------ 2022-07-01 22:33:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a)" } 2022-07-01 22:33:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-07-01 22:33:13 |
2022-07-01 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:13 | ------------------------------------ 2022-07-01 22:33:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "jids": [ "admin@test-domain.com" ] } 2022-07-01 22:33:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.054s |
2022-07-01 22:33:14 |
2022-07-01 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 22:33:14 | ------------------------------------ 2022-07-01 22:33:14 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-42605a6a-bfe9-4a64-a77f-bf048bb03e5a", "jids": [ "admin@test-domain.com" ] } 2022-07-01 22:33:14 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |