Test duration : 8.656s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2022-07-26 22:32:44 |
2022-07-26 22:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:44 | ------------------------------------ 2022-07-26 22:32:44 | [Mutex] waiting for: [configured:node:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a] 2022-07-26 22:32:44 | [Mutex] received everything. 2022-07-26 22:32:44 | [Mutex] isItemNotified: configured:node:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a :: true 2022-07-26 22:32:45 | [Mutex] waiting for: [received:nodes:4f47ad79-5cf5-443b-8949-fb364d34cf0e:localhost] 2022-07-26 22:32:45 | [Mutex] received everything. 2022-07-26 22:32:45 | [Mutex] isItemNotified: received:node:4f47ad79-5cf5-443b-8949-fb364d34cf0e:localhost:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:Node 9b1e1699-e4b9-46a3-938c-537a892bbc09 :: true 2022-07-26 22:32:45 | [Mutex] waiting for: [received:nodes:5a355330-4672-4cc2-bf6b-50c0e617c91b:localhost] 2022-07-26 22:32:45 | [Mutex] received everything. 2022-07-26 22:32:45 | [Mutex] isItemNotified: received:node:5a355330-4672-4cc2-bf6b-50c0e617c91b:localhost:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:Node 9b1e1699-e4b9-46a3-938c-537a892bbc09 :: false |
createNodes | 1.616s |
2022-07-26 22:32:41 |
2022-07-26 22:32:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:41 | ------------------------------------ 2022-07-26 22:32:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "pubsub#title": "Node 9b1e1699-e4b9-46a3-938c-537a892bbc09" } 2022-07-26 22:32:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 22:32:43 | [Mutex] waiting for: [received:nodes:7cddf679-e869-4039-8e54-7125767e0426:localhost] 2022-07-26 22:32:43 | [Mutex] waiting for: [received:nodes:7cddf679-e869-4039-8e54-7125767e0426:localhost] 2022-07-26 22:32:43 | [Mutex] received everything. 2022-07-26 22:32:43 | [Mutex] isItemNotified: received:node:7cddf679-e869-4039-8e54-7125767e0426:localhost:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:Node 9b1e1699-e4b9-46a3-938c-537a892bbc09 :: true |
createSubnodes | 1.021s |
2022-07-26 22:32:43 |
2022-07-26 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:43 | ------------------------------------ 2022-07-26 22:32:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a", "pubsub#title": "Node ed5e643e-85fe-40b3-8f16-758fd1af1f0a" } 2022-07-26 22:32:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 22:32:44 | [Mutex] waiting for: [received:nodes:e774139f-09c0-4d4a-a550-bf6ca3ebbdae:localhost] 2022-07-26 22:32:44 | [Mutex] received everything. 2022-07-26 22:32:44 | [Mutex] isItemNotified: received:node:e774139f-09c0-4d4a-a550-bf6ca3ebbdae:localhost:node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a:Node ed5e643e-85fe-40b3-8f16-758fd1af1f0a :: true |
deleteNodes | 1.021s |
2022-07-26 22:32:49 |
2022-07-26 22:32:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:49 | ------------------------------------ 2022-07-26 22:32:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a" } 2022-07-26 22:32:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 22:32:50 | [Mutex] waiting for: [received:nodes:6c5ea81f-9d2d-4c3f-8c08-409d57cd48ed:localhost] 2022-07-26 22:32:50 | [Mutex] waiting for: [received:nodes:6c5ea81f-9d2d-4c3f-8c08-409d57cd48ed:localhost] 2022-07-26 22:32:50 | [Mutex] received everything. 2022-07-26 22:32:50 | [Mutex] isItemNotified: received:node:6c5ea81f-9d2d-4c3f-8c08-409d57cd48ed:localhost:node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a:Node ed5e643e-85fe-40b3-8f16-758fd1af1f0a :: false |
deleteSubnodes | 1.026s |
2022-07-26 22:32:47 |
2022-07-26 22:32:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:47 | ------------------------------------ 2022-07-26 22:32:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09" } 2022-07-26 22:32:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-26 22:32:49 | [Mutex] waiting for: [received:nodes:774dd196-b9d7-4c08-b377-f88a87712ef0:localhost] 2022-07-26 22:32:49 | [Mutex] received everything. 2022-07-26 22:32:49 | [Mutex] isItemNotified: received:node:774dd196-b9d7-4c08-b377-f88a87712ef0:localhost:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:Node 9b1e1699-e4b9-46a3-938c-537a892bbc09 :: false 2022-07-26 22:32:49 | [Mutex] waiting for: [received:nodes:76572644-e8d7-4e63-9d60-b108ccd6f744:localhost] 2022-07-26 22:32:49 | [Mutex] received everything. 2022-07-26 22:32:49 | [Mutex] isItemNotified: received:node:76572644-e8d7-4e63-9d60-b108ccd6f744:localhost:node-9b1e1699-e4b9-46a3-938c-537a892bbc09:Node 9b1e1699-e4b9-46a3-938c-537a892bbc09 :: false |
publishItemsToNodes | 0.040s |
2022-07-26 22:32:46 |
2022-07-26 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:46 | ------------------------------------ 2022-07-26 22:32:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "entry": "<test>item-d36bb939-b56f-49d0-8dc7-3b98b6387c53</test>", "item-id": "item-d36bb939-b56f-49d0-8dc7-3b98b6387c53" } 2022-07-26 22:32:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d36bb939-b56f-49d0-8dc7-3b98b6387c53" } 2022-07-26 22:32:46 | [Mutex] waiting for: [published:item:notifieditem-d36bb939-b56f-49d0-8dc7-3b98b6387c53:admin@test-domain.com] 2022-07-26 22:32:46 | [Mutex] received everything. 2022-07-26 22:32:46 | [Mutex] isItemNotified: published:item:notifieditem-d36bb939-b56f-49d0-8dc7-3b98b6387c53:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-07-26 22:32:46 |
2022-07-26 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:46 | ------------------------------------ 2022-07-26 22:32:46 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "item-id": "item-d36bb939-b56f-49d0-8dc7-3b98b6387c53" } 2022-07-26 22:32:46 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d36bb939-b56f-49d0-8dc7-3b98b6387c53" } 2022-07-26 22:32:46 | [Mutex] received everything. 2022-07-26 22:32:46 | [Mutex] isItemNotified: retracted:item:notifieditem-d36bb939-b56f-49d0-8dc7-3b98b6387c53:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2022-07-26 22:32:46 |
2022-07-26 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:46 | ------------------------------------ 2022-07-26 22:32:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "item-id": "item-d36bb939-b56f-49d0-8dc7-3b98b6387c53" } 2022-07-26 22:32:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "item-id": "item-d36bb939-b56f-49d0-8dc7-3b98b6387c53", "item": [ "<item id=\"item-d36bb939-b56f-49d0-8dc7-3b98b6387c53\"><test>item-d36bb939-b56f-49d0-8dc7-3b98b6387c53</test></item>" ] } 2022-07-26 22:32:46 | [Mutex] notify: [retrieved:item:item-d36bb939-b56f-49d0-8dc7-3b98b6387c53:payload-matches:true:localhost] 2022-07-26 22:32:46 | [Mutex] received everything. 2022-07-26 22:32:46 | [Mutex] isItemNotified: retrieved:item:item-d36bb939-b56f-49d0-8dc7-3b98b6387c53:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-07-26 22:32:46 |
2022-07-26 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:46 | ------------------------------------ 2022-07-26 22:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-26 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "node-ed5e643e-85fe-40b3-8f16-758fd1af1f0a" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-07-26 22:32:46 |
2022-07-26 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:46 | ------------------------------------ 2022-07-26 22:32:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9b1e1699-e4b9-46a3-938c-537a892bbc09)" } 2022-07-26 22:32:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-07-26 22:32:45 |
2022-07-26 22:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:45 | ------------------------------------ 2022-07-26 22:32:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "jids": [ "admin@test-domain.com" ] } 2022-07-26 22:32:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.088s |
2022-07-26 22:32:46 |
2022-07-26 22:32:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-26 22:32:46 | ------------------------------------ 2022-07-26 22:32:46 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9b1e1699-e4b9-46a3-938c-537a892bbc09", "jids": [ "admin@test-domain.com" ] } 2022-07-26 22:32:46 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |