Test duration : 8.744s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-12-18 22:00:47 |
2022-12-18 22:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:47 | ------------------------------------ 2022-12-18 22:00:47 | [Mutex] waiting for: [configured:node:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:node-1b50917e-0a57-4648-939a-7d2593d9ebc3] 2022-12-18 22:00:47 | [Mutex] received everything. 2022-12-18 22:00:47 | [Mutex] isItemNotified: configured:node:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:node-1b50917e-0a57-4648-939a-7d2593d9ebc3 :: true 2022-12-18 22:00:48 | [Mutex] waiting for: [received:nodes:a0f78170-bb68-47dc-9317-2bce2ba3c381:localhost] 2022-12-18 22:00:48 | [Mutex] received everything. 2022-12-18 22:00:48 | [Mutex] isItemNotified: received:node:a0f78170-bb68-47dc-9317-2bce2ba3c381:localhost:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:Node 9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df :: true 2022-12-18 22:00:48 | [Mutex] waiting for: [received:nodes:8796059f-08a2-471a-a330-eedeaebba23e:localhost] 2022-12-18 22:00:48 | [Mutex] waiting for: [received:nodes:8796059f-08a2-471a-a330-eedeaebba23e:localhost] 2022-12-18 22:00:48 | [Mutex] received everything. 2022-12-18 22:00:48 | [Mutex] isItemNotified: received:node:8796059f-08a2-471a-a330-eedeaebba23e:localhost:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:Node 9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df :: false |
createNodes | 1.728s |
2022-12-18 22:00:44 |
2022-12-18 22:00:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:44 | ------------------------------------ 2022-12-18 22:00:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "pubsub#title": "Node 9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df" } 2022-12-18 22:00:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 22:00:46 | [Mutex] waiting for: [received:nodes:5285f8ea-1643-45dc-9397-3ffb07d95bb5:localhost] 2022-12-18 22:00:46 | [Mutex] received everything. 2022-12-18 22:00:46 | [Mutex] isItemNotified: received:node:5285f8ea-1643-45dc-9397-3ffb07d95bb5:localhost:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:Node 9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df :: true |
createSubnodes | 1.024s |
2022-12-18 22:00:46 |
2022-12-18 22:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:46 | ------------------------------------ 2022-12-18 22:00:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-1b50917e-0a57-4648-939a-7d2593d9ebc3", "pubsub#title": "Node 1b50917e-0a57-4648-939a-7d2593d9ebc3" } 2022-12-18 22:00:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 22:00:47 | [Mutex] waiting for: [received:nodes:1c5dceaa-ecbd-4d2c-8add-a42c84e4d65b:localhost] 2022-12-18 22:00:47 | [Mutex] waiting for: [received:nodes:1c5dceaa-ecbd-4d2c-8add-a42c84e4d65b:localhost] 2022-12-18 22:00:47 | [Mutex] waiting for: [received:nodes:1c5dceaa-ecbd-4d2c-8add-a42c84e4d65b:localhost] 2022-12-18 22:00:47 | [Mutex] waiting for: [received:nodes:1c5dceaa-ecbd-4d2c-8add-a42c84e4d65b:localhost] 2022-12-18 22:00:47 | [Mutex] waiting for: [received:nodes:1c5dceaa-ecbd-4d2c-8add-a42c84e4d65b:localhost] 2022-12-18 22:00:47 | [Mutex] received everything. 2022-12-18 22:00:47 | [Mutex] isItemNotified: received:node:1c5dceaa-ecbd-4d2c-8add-a42c84e4d65b:localhost:node-1b50917e-0a57-4648-939a-7d2593d9ebc3:Node 1b50917e-0a57-4648-939a-7d2593d9ebc3 :: true |
deleteNodes | 1.027s |
2022-12-18 22:00:51 |
2022-12-18 22:00:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:51 | ------------------------------------ 2022-12-18 22:00:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1b50917e-0a57-4648-939a-7d2593d9ebc3" } 2022-12-18 22:00:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 22:00:52 | [Mutex] waiting for: [received:nodes:4c48feb6-ac87-4075-9bd9-941945e000cb:localhost] 2022-12-18 22:00:52 | [Mutex] waiting for: [received:nodes:4c48feb6-ac87-4075-9bd9-941945e000cb:localhost] 2022-12-18 22:00:52 | [Mutex] waiting for: [received:nodes:4c48feb6-ac87-4075-9bd9-941945e000cb:localhost] 2022-12-18 22:00:52 | [Mutex] received everything. 2022-12-18 22:00:52 | [Mutex] isItemNotified: received:node:4c48feb6-ac87-4075-9bd9-941945e000cb:localhost:node-1b50917e-0a57-4648-939a-7d2593d9ebc3:Node 1b50917e-0a57-4648-939a-7d2593d9ebc3 :: false |
deleteSubnodes | 1.044s |
2022-12-18 22:00:50 |
2022-12-18 22:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:50 | ------------------------------------ 2022-12-18 22:00:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df" } 2022-12-18 22:00:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-12-18 22:00:51 | [Mutex] waiting for: [received:nodes:988bc4f3-f620-4e51-8295-09e0fef4b049:localhost] 2022-12-18 22:00:51 | [Mutex] waiting for: [received:nodes:988bc4f3-f620-4e51-8295-09e0fef4b049:localhost] 2022-12-18 22:00:51 | [Mutex] waiting for: [received:nodes:988bc4f3-f620-4e51-8295-09e0fef4b049:localhost] 2022-12-18 22:00:51 | [Mutex] waiting for: [received:nodes:988bc4f3-f620-4e51-8295-09e0fef4b049:localhost] 2022-12-18 22:00:51 | [Mutex] received everything. 2022-12-18 22:00:51 | [Mutex] isItemNotified: received:node:988bc4f3-f620-4e51-8295-09e0fef4b049:localhost:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:Node 9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df :: false 2022-12-18 22:00:51 | [Mutex] waiting for: [received:nodes:5abf567c-15de-4920-84b0-8941d35ffd3b:localhost] 2022-12-18 22:00:51 | [Mutex] received everything. 2022-12-18 22:00:51 | [Mutex] isItemNotified: received:node:5abf567c-15de-4920-84b0-8941d35ffd3b:localhost:node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df:Node 9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df :: false |
publishItemsToNodes | 0.047s |
2022-12-18 22:00:49 |
2022-12-18 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:49 | ------------------------------------ 2022-12-18 22:00:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "entry": "<test>item-c87d947f-9c2a-40a9-8709-2c26b3f777f8</test>", "item-id": "item-c87d947f-9c2a-40a9-8709-2c26b3f777f8" } 2022-12-18 22:00:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c87d947f-9c2a-40a9-8709-2c26b3f777f8" } 2022-12-18 22:00:49 | [Mutex] waiting for: [published:item:notifieditem-c87d947f-9c2a-40a9-8709-2c26b3f777f8:admin@test-domain.com] 2022-12-18 22:00:49 | [Mutex] received everything. 2022-12-18 22:00:49 | [Mutex] isItemNotified: published:item:notifieditem-c87d947f-9c2a-40a9-8709-2c26b3f777f8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-12-18 22:00:49 |
2022-12-18 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:49 | ------------------------------------ 2022-12-18 22:00:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "item-id": "item-c87d947f-9c2a-40a9-8709-2c26b3f777f8" } 2022-12-18 22:00:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c87d947f-9c2a-40a9-8709-2c26b3f777f8" } 2022-12-18 22:00:49 | [Mutex] received everything. 2022-12-18 22:00:49 | [Mutex] isItemNotified: retracted:item:notifieditem-c87d947f-9c2a-40a9-8709-2c26b3f777f8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2022-12-18 22:00:49 |
2022-12-18 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:49 | ------------------------------------ 2022-12-18 22:00:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "item-id": "item-c87d947f-9c2a-40a9-8709-2c26b3f777f8" } 2022-12-18 22:00:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "item-id": "item-c87d947f-9c2a-40a9-8709-2c26b3f777f8", "item": [ "<item id=\"item-c87d947f-9c2a-40a9-8709-2c26b3f777f8\"><test>item-c87d947f-9c2a-40a9-8709-2c26b3f777f8</test></item>" ] } 2022-12-18 22:00:49 | [Mutex] notify: [retrieved:item:item-c87d947f-9c2a-40a9-8709-2c26b3f777f8:payload-matches:true:localhost] 2022-12-18 22:00:49 | [Mutex] received everything. 2022-12-18 22:00:49 | [Mutex] isItemNotified: retrieved:item:item-c87d947f-9c2a-40a9-8709-2c26b3f777f8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-12-18 22:00:49 |
2022-12-18 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:49 | ------------------------------------ 2022-12-18 22:00:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-12-18 22:00:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "node-1b50917e-0a57-4648-939a-7d2593d9ebc3" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-12-18 22:00:49 |
2022-12-18 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:49 | ------------------------------------ 2022-12-18 22:00:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df)" } 2022-12-18 22:00:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-12-18 22:00:48 |
2022-12-18 22:00:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:48 | ------------------------------------ 2022-12-18 22:00:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "jids": [ "admin@test-domain.com" ] } 2022-12-18 22:00:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-12-18 22:00:49 |
2022-12-18 22:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-12-18 22:00:49 | ------------------------------------ 2022-12-18 22:00:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9c0c4ce6-321f-4a45-8c1a-fe30ee6e76df", "jids": [ "admin@test-domain.com" ] } 2022-12-18 22:00:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |