Test duration : 8.578s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.094s |
2023-10-26 00:28:51 |
2023-10-26 00:28:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:51 | ------------------------------------ 2023-10-26 00:28:51 | [Mutex] waiting for: [configured:node:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c] 2023-10-26 00:28:51 | [Mutex] received everything. 2023-10-26 00:28:51 | [Mutex] isItemNotified: configured:node:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c :: true 2023-10-26 00:28:52 | [Mutex] waiting for: [received:nodes:47cc9b2e-8c6a-455f-8bcc-364a5c439fc5:localhost] 2023-10-26 00:28:52 | [Mutex] received everything. 2023-10-26 00:28:52 | [Mutex] isItemNotified: received:node:47cc9b2e-8c6a-455f-8bcc-364a5c439fc5:localhost:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:Node da8441d2-fc0a-45ad-b8a1-a7c6a34a507e :: true 2023-10-26 00:28:52 | [Mutex] waiting for: [received:nodes:5f3c3819-f21b-4a20-9c5d-35a37e95a2b3:localhost] 2023-10-26 00:28:52 | [Mutex] waiting for: [received:nodes:5f3c3819-f21b-4a20-9c5d-35a37e95a2b3:localhost] 2023-10-26 00:28:52 | [Mutex] waiting for: [received:nodes:5f3c3819-f21b-4a20-9c5d-35a37e95a2b3:localhost] 2023-10-26 00:28:52 | [Mutex] received everything. 2023-10-26 00:28:52 | [Mutex] isItemNotified: received:node:5f3c3819-f21b-4a20-9c5d-35a37e95a2b3:localhost:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:Node da8441d2-fc0a-45ad-b8a1-a7c6a34a507e :: false |
createNodes | 1.608s |
2023-10-26 00:28:49 |
2023-10-26 00:28:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:49 | ------------------------------------ 2023-10-26 00:28:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "pubsub#title": "Node da8441d2-fc0a-45ad-b8a1-a7c6a34a507e" } 2023-10-26 00:28:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-26 00:28:50 | [Mutex] waiting for: [received:nodes:1081269c-8f9d-478e-9717-8e19e79f5875:localhost] 2023-10-26 00:28:50 | [Mutex] waiting for: [received:nodes:1081269c-8f9d-478e-9717-8e19e79f5875:localhost] 2023-10-26 00:28:50 | [Mutex] waiting for: [received:nodes:1081269c-8f9d-478e-9717-8e19e79f5875:localhost] 2023-10-26 00:28:50 | [Mutex] received everything. 2023-10-26 00:28:50 | [Mutex] isItemNotified: received:node:1081269c-8f9d-478e-9717-8e19e79f5875:localhost:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:Node da8441d2-fc0a-45ad-b8a1-a7c6a34a507e :: true |
createSubnodes | 1.021s |
2023-10-26 00:28:50 |
2023-10-26 00:28:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:50 | ------------------------------------ 2023-10-26 00:28:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c", "pubsub#title": "Node f92c8842-91ae-4ab6-9daa-d70e96b8b79c" } 2023-10-26 00:28:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-26 00:28:51 | [Mutex] waiting for: [received:nodes:6e3234b2-59f9-4e09-ab16-e463a978e894:localhost] 2023-10-26 00:28:51 | [Mutex] waiting for: [received:nodes:6e3234b2-59f9-4e09-ab16-e463a978e894:localhost] 2023-10-26 00:28:51 | [Mutex] waiting for: [received:nodes:6e3234b2-59f9-4e09-ab16-e463a978e894:localhost] 2023-10-26 00:28:51 | [Mutex] waiting for: [received:nodes:6e3234b2-59f9-4e09-ab16-e463a978e894:localhost] 2023-10-26 00:28:51 | [Mutex] received everything. 2023-10-26 00:28:51 | [Mutex] isItemNotified: received:node:6e3234b2-59f9-4e09-ab16-e463a978e894:localhost:node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c:Node f92c8842-91ae-4ab6-9daa-d70e96b8b79c :: true |
deleteNodes | 1.065s |
2023-10-26 00:28:56 |
2023-10-26 00:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:56 | ------------------------------------ 2023-10-26 00:28:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c" } 2023-10-26 00:28:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-26 00:28:57 | [Mutex] waiting for: [received:nodes:65d5f22c-16ec-491f-97cb-5aea32d1323f:localhost] 2023-10-26 00:28:57 | [Mutex] waiting for: [received:nodes:65d5f22c-16ec-491f-97cb-5aea32d1323f:localhost] 2023-10-26 00:28:57 | [Mutex] received everything. 2023-10-26 00:28:57 | [Mutex] isItemNotified: received:node:65d5f22c-16ec-491f-97cb-5aea32d1323f:localhost:node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c:Node f92c8842-91ae-4ab6-9daa-d70e96b8b79c :: false |
deleteSubnodes | 1.029s |
2023-10-26 00:28:55 |
2023-10-26 00:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:55 | ------------------------------------ 2023-10-26 00:28:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e" } 2023-10-26 00:28:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-10-26 00:28:56 | [Mutex] waiting for: [received:nodes:b3b629c3-a757-4391-a958-f02d2cc660f0:localhost] 2023-10-26 00:28:56 | [Mutex] waiting for: [received:nodes:b3b629c3-a757-4391-a958-f02d2cc660f0:localhost] 2023-10-26 00:28:56 | [Mutex] waiting for: [received:nodes:b3b629c3-a757-4391-a958-f02d2cc660f0:localhost] 2023-10-26 00:28:56 | [Mutex] received everything. 2023-10-26 00:28:56 | [Mutex] isItemNotified: received:node:b3b629c3-a757-4391-a958-f02d2cc660f0:localhost:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:Node da8441d2-fc0a-45ad-b8a1-a7c6a34a507e :: false 2023-10-26 00:28:56 | [Mutex] waiting for: [received:nodes:d80830f5-04c8-48d3-b9d1-466b735aa92c:localhost] 2023-10-26 00:28:56 | [Mutex] received everything. 2023-10-26 00:28:56 | [Mutex] isItemNotified: received:node:d80830f5-04c8-48d3-b9d1-466b735aa92c:localhost:node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e:Node da8441d2-fc0a-45ad-b8a1-a7c6a34a507e :: false |
publishItemsToNodes | 0.046s |
2023-10-26 00:28:53 |
2023-10-26 00:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:53 | ------------------------------------ 2023-10-26 00:28:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "entry": "<test>item-a1132d07-0db8-49c7-be13-a48866cf513c</test>", "item-id": "item-a1132d07-0db8-49c7-be13-a48866cf513c" } 2023-10-26 00:28:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a1132d07-0db8-49c7-be13-a48866cf513c" } 2023-10-26 00:28:53 | [Mutex] waiting for: [published:item:notifieditem-a1132d07-0db8-49c7-be13-a48866cf513c:admin@test-domain.com] 2023-10-26 00:28:53 | [Mutex] received everything. 2023-10-26 00:28:53 | [Mutex] isItemNotified: published:item:notifieditem-a1132d07-0db8-49c7-be13-a48866cf513c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2023-10-26 00:28:53 |
2023-10-26 00:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:53 | ------------------------------------ 2023-10-26 00:28:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "item-id": "item-a1132d07-0db8-49c7-be13-a48866cf513c" } 2023-10-26 00:28:54 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a1132d07-0db8-49c7-be13-a48866cf513c" } 2023-10-26 00:28:54 | [Mutex] received everything. 2023-10-26 00:28:54 | [Mutex] isItemNotified: retracted:item:notifieditem-a1132d07-0db8-49c7-be13-a48866cf513c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.038s |
2023-10-26 00:28:53 |
2023-10-26 00:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:53 | ------------------------------------ 2023-10-26 00:28:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "item-id": "item-a1132d07-0db8-49c7-be13-a48866cf513c" } 2023-10-26 00:28:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "item-id": "item-a1132d07-0db8-49c7-be13-a48866cf513c", "item": [ "<item id=\"item-a1132d07-0db8-49c7-be13-a48866cf513c\"><test>item-a1132d07-0db8-49c7-be13-a48866cf513c</test></item>" ] } 2023-10-26 00:28:53 | [Mutex] notify: [retrieved:item:item-a1132d07-0db8-49c7-be13-a48866cf513c:payload-matches:true:localhost] 2023-10-26 00:28:53 | [Mutex] received everything. 2023-10-26 00:28:53 | [Mutex] isItemNotified: retrieved:item:item-a1132d07-0db8-49c7-be13-a48866cf513c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2023-10-26 00:28:53 |
2023-10-26 00:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:53 | ------------------------------------ 2023-10-26 00:28:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-10-26 00:28:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f92c8842-91ae-4ab6-9daa-d70e96b8b79c", "test", "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-10-26 00:28:53 |
2023-10-26 00:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:53 | ------------------------------------ 2023-10-26 00:28:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e)" } 2023-10-26 00:28:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2023-10-26 00:28:52 |
2023-10-26 00:28:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:52 | ------------------------------------ 2023-10-26 00:28:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "jids": [ "admin@test-domain.com" ] } 2023-10-26 00:28:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2023-10-26 00:28:54 |
2023-10-26 00:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-10-26 00:28:54 | ------------------------------------ 2023-10-26 00:28:54 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-da8441d2-fc0a-45ad-b8a1-a7c6a34a507e", "jids": [ "admin@test-domain.com" ] } 2023-10-26 00:28:54 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |