Test duration : 8.807s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2022-06-30 22:32:40 |
2022-06-30 22:32:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:40 | ------------------------------------ 2022-06-30 22:32:40 | [Mutex] waiting for: [configured:node:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:node-d8ab9678-4e4a-4e04-be45-6dff61e1e140] 2022-06-30 22:32:41 | [Mutex] received everything. 2022-06-30 22:32:41 | [Mutex] isItemNotified: configured:node:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:node-d8ab9678-4e4a-4e04-be45-6dff61e1e140 :: true 2022-06-30 22:32:42 | [Mutex] waiting for: [received:nodes:ed1c1ec5-35c1-4c25-a1cb-b84b5dc738ad:localhost] 2022-06-30 22:32:42 | [Mutex] received everything. 2022-06-30 22:32:42 | [Mutex] isItemNotified: received:node:ed1c1ec5-35c1-4c25-a1cb-b84b5dc738ad:localhost:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:Node 8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81 :: true 2022-06-30 22:32:42 | [Mutex] waiting for: [received:nodes:81eafb52-2219-4266-93a7-0237c08890a5:localhost] 2022-06-30 22:32:42 | [Mutex] received everything. 2022-06-30 22:32:42 | [Mutex] isItemNotified: received:node:81eafb52-2219-4266-93a7-0237c08890a5:localhost:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:Node 8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81 :: false |
createNodes | 1.681s |
2022-06-30 22:32:38 |
2022-06-30 22:32:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:38 | ------------------------------------ 2022-06-30 22:32:38 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "pubsub#title": "Node 8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81" } 2022-06-30 22:32:38 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-30 22:32:39 | [Mutex] waiting for: [received:nodes:26a6f7ba-408d-453b-8ff0-0c23fe4cdf8e:localhost] 2022-06-30 22:32:39 | [Mutex] received everything. 2022-06-30 22:32:39 | [Mutex] isItemNotified: received:node:26a6f7ba-408d-453b-8ff0-0c23fe4cdf8e:localhost:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:Node 8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81 :: true |
createSubnodes | 1.024s |
2022-06-30 22:32:39 |
2022-06-30 22:32:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:39 | ------------------------------------ 2022-06-30 22:32:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d8ab9678-4e4a-4e04-be45-6dff61e1e140", "pubsub#title": "Node d8ab9678-4e4a-4e04-be45-6dff61e1e140" } 2022-06-30 22:32:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-30 22:32:40 | [Mutex] waiting for: [received:nodes:c60ad6bb-1152-4171-bad8-542e472f7b80:localhost] 2022-06-30 22:32:40 | [Mutex] received everything. 2022-06-30 22:32:40 | [Mutex] isItemNotified: received:node:c60ad6bb-1152-4171-bad8-542e472f7b80:localhost:node-d8ab9678-4e4a-4e04-be45-6dff61e1e140:Node d8ab9678-4e4a-4e04-be45-6dff61e1e140 :: true |
deleteNodes | 1.020s |
2022-06-30 22:32:45 |
2022-06-30 22:32:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:45 | ------------------------------------ 2022-06-30 22:32:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d8ab9678-4e4a-4e04-be45-6dff61e1e140" } 2022-06-30 22:32:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-30 22:32:46 | [Mutex] waiting for: [received:nodes:9b5fac38-a091-4cf6-ac01-9ebaf72d44b1:localhost] 2022-06-30 22:32:46 | [Mutex] received everything. 2022-06-30 22:32:46 | [Mutex] isItemNotified: received:node:9b5fac38-a091-4cf6-ac01-9ebaf72d44b1:localhost:node-d8ab9678-4e4a-4e04-be45-6dff61e1e140:Node d8ab9678-4e4a-4e04-be45-6dff61e1e140 :: false |
deleteSubnodes | 1.028s |
2022-06-30 22:32:44 |
2022-06-30 22:32:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:44 | ------------------------------------ 2022-06-30 22:32:44 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81" } 2022-06-30 22:32:44 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-30 22:32:45 | [Mutex] waiting for: [received:nodes:bad7935d-085d-4a50-ac4e-24145029a0f1:localhost] 2022-06-30 22:32:45 | [Mutex] received everything. 2022-06-30 22:32:45 | [Mutex] isItemNotified: received:node:bad7935d-085d-4a50-ac4e-24145029a0f1:localhost:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:Node 8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81 :: false 2022-06-30 22:32:45 | [Mutex] waiting for: [received:nodes:939b67d2-1aca-44ab-854b-fc4bb8f15163:localhost] 2022-06-30 22:32:45 | [Mutex] received everything. 2022-06-30 22:32:45 | [Mutex] isItemNotified: received:node:939b67d2-1aca-44ab-854b-fc4bb8f15163:localhost:node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81:Node 8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81 :: false |
publishItemsToNodes | 0.065s |
2022-06-30 22:32:43 |
2022-06-30 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:43 | ------------------------------------ 2022-06-30 22:32:43 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "entry": "<test>item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8</test>", "item-id": "item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8" } 2022-06-30 22:32:43 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8" } 2022-06-30 22:32:43 | [Mutex] waiting for: [published:item:notifieditem-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8:admin@test-domain.com] 2022-06-30 22:32:43 | [Mutex] received everything. 2022-06-30 22:32:43 | [Mutex] isItemNotified: published:item:notifieditem-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-06-30 22:32:43 |
2022-06-30 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:43 | ------------------------------------ 2022-06-30 22:32:43 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "item-id": "item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8" } 2022-06-30 22:32:43 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8" } 2022-06-30 22:32:43 | [Mutex] received everything. 2022-06-30 22:32:43 | [Mutex] isItemNotified: retracted:item:notifieditem-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.043s |
2022-06-30 22:32:43 |
2022-06-30 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:43 | ------------------------------------ 2022-06-30 22:32:43 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "item-id": "item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8" } 2022-06-30 22:32:43 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "item-id": "item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8", "item": [ "<item id=\"item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8\"><test>item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8</test></item>" ] } 2022-06-30 22:32:43 | [Mutex] notify: [retrieved:item:item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8:payload-matches:true:localhost] 2022-06-30 22:32:43 | [Mutex] received everything. 2022-06-30 22:32:43 | [Mutex] isItemNotified: retrieved:item:item-556ecd4d-e634-4cba-a7c8-2d5fc0e765c8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2022-06-30 22:32:43 |
2022-06-30 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:43 | ------------------------------------ 2022-06-30 22:32:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-30 22:32:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "node-d8ab9678-4e4a-4e04-be45-6dff61e1e140" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2022-06-30 22:32:43 |
2022-06-30 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:43 | ------------------------------------ 2022-06-30 22:32:43 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81)" } 2022-06-30 22:32:43 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-06-30 22:32:42 |
2022-06-30 22:32:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:42 | ------------------------------------ 2022-06-30 22:32:42 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "jids": [ "admin@test-domain.com" ] } 2022-06-30 22:32:42 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2022-06-30 22:32:43 |
2022-06-30 22:32:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-30 22:32:43 | ------------------------------------ 2022-06-30 22:32:43 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8f53cdd3-34c7-46a3-bd0a-ad30cf3f2b81", "jids": [ "admin@test-domain.com" ] } 2022-06-30 22:32:43 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |