Test duration : 8.510s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.075s |
2023-07-07 23:01:04 |
2023-07-07 23:01:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:04 | ------------------------------------ 2023-07-07 23:01:04 | [Mutex] waiting for: [configured:node:node-7479a32f-bf49-4737-8aee-8e4248828227:node-8b53a067-1671-4be5-a4cd-b479caf03d2e] 2023-07-07 23:01:04 | [Mutex] received everything. 2023-07-07 23:01:04 | [Mutex] isItemNotified: configured:node:node-7479a32f-bf49-4737-8aee-8e4248828227:node-8b53a067-1671-4be5-a4cd-b479caf03d2e :: true 2023-07-07 23:01:05 | [Mutex] waiting for: [received:nodes:9264bb84-b8e8-4565-8464-75700d19a8ae:localhost] 2023-07-07 23:01:05 | [Mutex] received everything. 2023-07-07 23:01:05 | [Mutex] isItemNotified: received:node:9264bb84-b8e8-4565-8464-75700d19a8ae:localhost:node-7479a32f-bf49-4737-8aee-8e4248828227:Node 7479a32f-bf49-4737-8aee-8e4248828227 :: true 2023-07-07 23:01:05 | [Mutex] waiting for: [received:nodes:8386f587-7024-4e4f-9517-90e8cb368d09:localhost] 2023-07-07 23:01:05 | [Mutex] waiting for: [received:nodes:8386f587-7024-4e4f-9517-90e8cb368d09:localhost] 2023-07-07 23:01:05 | [Mutex] waiting for: [received:nodes:8386f587-7024-4e4f-9517-90e8cb368d09:localhost] 2023-07-07 23:01:05 | [Mutex] received everything. 2023-07-07 23:01:05 | [Mutex] isItemNotified: received:node:8386f587-7024-4e4f-9517-90e8cb368d09:localhost:node-7479a32f-bf49-4737-8aee-8e4248828227:Node 7479a32f-bf49-4737-8aee-8e4248828227 :: false |
createNodes | 1.558s |
2023-07-07 23:01:02 |
2023-07-07 23:01:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:02 | ------------------------------------ 2023-07-07 23:01:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "pubsub#title": "Node 7479a32f-bf49-4737-8aee-8e4248828227" } 2023-07-07 23:01:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 23:01:03 | [Mutex] waiting for: [received:nodes:c5c65e3b-32f9-493f-ad6e-c02d8c5b8aa0:localhost] 2023-07-07 23:01:03 | [Mutex] waiting for: [received:nodes:c5c65e3b-32f9-493f-ad6e-c02d8c5b8aa0:localhost] 2023-07-07 23:01:03 | [Mutex] waiting for: [received:nodes:c5c65e3b-32f9-493f-ad6e-c02d8c5b8aa0:localhost] 2023-07-07 23:01:03 | [Mutex] received everything. 2023-07-07 23:01:03 | [Mutex] isItemNotified: received:node:c5c65e3b-32f9-493f-ad6e-c02d8c5b8aa0:localhost:node-7479a32f-bf49-4737-8aee-8e4248828227:Node 7479a32f-bf49-4737-8aee-8e4248828227 :: true |
createSubnodes | 1.020s |
2023-07-07 23:01:03 |
2023-07-07 23:01:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:03 | ------------------------------------ 2023-07-07 23:01:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8b53a067-1671-4be5-a4cd-b479caf03d2e", "pubsub#title": "Node 8b53a067-1671-4be5-a4cd-b479caf03d2e" } 2023-07-07 23:01:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 23:01:04 | [Mutex] waiting for: [received:nodes:29172590-0eb1-4494-8229-25938d2bf0dd:localhost] 2023-07-07 23:01:04 | [Mutex] received everything. 2023-07-07 23:01:04 | [Mutex] isItemNotified: received:node:29172590-0eb1-4494-8229-25938d2bf0dd:localhost:node-8b53a067-1671-4be5-a4cd-b479caf03d2e:Node 8b53a067-1671-4be5-a4cd-b479caf03d2e :: true |
deleteNodes | 1.017s |
2023-07-07 23:01:09 |
2023-07-07 23:01:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:09 | ------------------------------------ 2023-07-07 23:01:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8b53a067-1671-4be5-a4cd-b479caf03d2e" } 2023-07-07 23:01:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 23:01:10 | [Mutex] waiting for: [received:nodes:a68de2ad-2760-40dd-8f22-b186a55b1e72:localhost] 2023-07-07 23:01:10 | [Mutex] waiting for: [received:nodes:a68de2ad-2760-40dd-8f22-b186a55b1e72:localhost] 2023-07-07 23:01:10 | [Mutex] waiting for: [received:nodes:a68de2ad-2760-40dd-8f22-b186a55b1e72:localhost] 2023-07-07 23:01:10 | [Mutex] received everything. 2023-07-07 23:01:10 | [Mutex] isItemNotified: received:node:a68de2ad-2760-40dd-8f22-b186a55b1e72:localhost:node-8b53a067-1671-4be5-a4cd-b479caf03d2e:Node 8b53a067-1671-4be5-a4cd-b479caf03d2e :: false |
deleteSubnodes | 1.023s |
2023-07-07 23:01:08 |
2023-07-07 23:01:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:08 | ------------------------------------ 2023-07-07 23:01:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7479a32f-bf49-4737-8aee-8e4248828227" } 2023-07-07 23:01:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-07-07 23:01:09 | [Mutex] waiting for: [received:nodes:f1f122f8-95be-4669-a54c-59785afe3484:localhost] 2023-07-07 23:01:09 | [Mutex] waiting for: [received:nodes:f1f122f8-95be-4669-a54c-59785afe3484:localhost] 2023-07-07 23:01:09 | [Mutex] waiting for: [received:nodes:f1f122f8-95be-4669-a54c-59785afe3484:localhost] 2023-07-07 23:01:09 | [Mutex] waiting for: [received:nodes:f1f122f8-95be-4669-a54c-59785afe3484:localhost] 2023-07-07 23:01:09 | [Mutex] received everything. 2023-07-07 23:01:09 | [Mutex] isItemNotified: received:node:f1f122f8-95be-4669-a54c-59785afe3484:localhost:node-7479a32f-bf49-4737-8aee-8e4248828227:Node 7479a32f-bf49-4737-8aee-8e4248828227 :: false 2023-07-07 23:01:09 | [Mutex] waiting for: [received:nodes:334c9dc9-78a2-4e4d-95d6-d4475d684c18:localhost] 2023-07-07 23:01:09 | [Mutex] received everything. 2023-07-07 23:01:09 | [Mutex] isItemNotified: received:node:334c9dc9-78a2-4e4d-95d6-d4475d684c18:localhost:node-7479a32f-bf49-4737-8aee-8e4248828227:Node 7479a32f-bf49-4737-8aee-8e4248828227 :: false |
publishItemsToNodes | 0.079s |
2023-07-07 23:01:06 |
2023-07-07 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:06 | ------------------------------------ 2023-07-07 23:01:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "entry": "<test>item-c8919253-77db-412b-8907-8441587cfb20</test>", "item-id": "item-c8919253-77db-412b-8907-8441587cfb20" } 2023-07-07 23:01:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c8919253-77db-412b-8907-8441587cfb20" } 2023-07-07 23:01:06 | [Mutex] waiting for: [published:item:notifieditem-c8919253-77db-412b-8907-8441587cfb20:admin@test-domain.com] 2023-07-07 23:01:06 | [Mutex] received everything. 2023-07-07 23:01:06 | [Mutex] isItemNotified: published:item:notifieditem-c8919253-77db-412b-8907-8441587cfb20:admin@test-domain.com :: true |
retractItemsFromNodes | 0.084s |
2023-07-07 23:01:07 |
2023-07-07 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:07 | ------------------------------------ 2023-07-07 23:01:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "item-id": "item-c8919253-77db-412b-8907-8441587cfb20" } 2023-07-07 23:01:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c8919253-77db-412b-8907-8441587cfb20" } 2023-07-07 23:01:07 | [Mutex] received everything. 2023-07-07 23:01:07 | [Mutex] isItemNotified: retracted:item:notifieditem-c8919253-77db-412b-8907-8441587cfb20:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2023-07-07 23:01:06 |
2023-07-07 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:06 | ------------------------------------ 2023-07-07 23:01:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "item-id": "item-c8919253-77db-412b-8907-8441587cfb20" } 2023-07-07 23:01:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "item-id": "item-c8919253-77db-412b-8907-8441587cfb20", "item": [ "<item id=\"item-c8919253-77db-412b-8907-8441587cfb20\"><test>item-c8919253-77db-412b-8907-8441587cfb20</test></item>" ] } 2023-07-07 23:01:06 | [Mutex] notify: [retrieved:item:item-c8919253-77db-412b-8907-8441587cfb20:payload-matches:true:localhost] 2023-07-07 23:01:06 | [Mutex] received everything. 2023-07-07 23:01:06 | [Mutex] isItemNotified: retrieved:item:item-c8919253-77db-412b-8907-8441587cfb20:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2023-07-07 23:01:06 |
2023-07-07 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:06 | ------------------------------------ 2023-07-07 23:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-07-07 23:01:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-8b53a067-1671-4be5-a4cd-b479caf03d2e", "node-7479a32f-bf49-4737-8aee-8e4248828227" ] } |
retrieveUserSubscriptionsWithRegex | 0.049s |
2023-07-07 23:01:06 |
2023-07-07 23:01:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:06 | ------------------------------------ 2023-07-07 23:01:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7479a32f-bf49-4737-8aee-8e4248828227)" } 2023-07-07 23:01:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2023-07-07 23:01:05 |
2023-07-07 23:01:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:05 | ------------------------------------ 2023-07-07 23:01:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "jids": [ "admin@test-domain.com" ] } 2023-07-07 23:01:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.047s |
2023-07-07 23:01:07 |
2023-07-07 23:01:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-07-07 23:01:07 | ------------------------------------ 2023-07-07 23:01:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7479a32f-bf49-4737-8aee-8e4248828227", "jids": [ "admin@test-domain.com" ] } 2023-07-07 23:01:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |