Test duration : 8.634s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.149s |
2023-06-04 23:00:24 |
2023-06-04 23:00:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:24 | ------------------------------------ 2023-06-04 23:00:24 | [Mutex] waiting for: [configured:node:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:node-7e9d702d-78ff-410a-a442-f19f49031548] 2023-06-04 23:00:24 | [Mutex] received everything. 2023-06-04 23:00:24 | [Mutex] isItemNotified: configured:node:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:node-7e9d702d-78ff-410a-a442-f19f49031548 :: true 2023-06-04 23:00:25 | [Mutex] waiting for: [received:nodes:b9ac8ecc-c2be-451a-afd3-c9f71527c543:localhost] 2023-06-04 23:00:25 | [Mutex] received everything. 2023-06-04 23:00:25 | [Mutex] isItemNotified: received:node:b9ac8ecc-c2be-451a-afd3-c9f71527c543:localhost:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:Node 6711b6d9-0d5d-48eb-986e-ff1f4daba87c :: true 2023-06-04 23:00:25 | [Mutex] waiting for: [received:nodes:7b7cd364-501b-4b43-9897-0d81b3f2368b:localhost] 2023-06-04 23:00:25 | [Mutex] received everything. 2023-06-04 23:00:25 | [Mutex] isItemNotified: received:node:7b7cd364-501b-4b43-9897-0d81b3f2368b:localhost:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:Node 6711b6d9-0d5d-48eb-986e-ff1f4daba87c :: false |
createNodes | 1.596s |
2023-06-04 23:00:21 |
2023-06-04 23:00:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:21 | ------------------------------------ 2023-06-04 23:00:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "pubsub#title": "Node 6711b6d9-0d5d-48eb-986e-ff1f4daba87c" } 2023-06-04 23:00:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 23:00:23 | [Mutex] waiting for: [received:nodes:e9aa1b47-da29-4477-91ac-4b8af8351f10:localhost] 2023-06-04 23:00:23 | [Mutex] waiting for: [received:nodes:e9aa1b47-da29-4477-91ac-4b8af8351f10:localhost] 2023-06-04 23:00:23 | [Mutex] waiting for: [received:nodes:e9aa1b47-da29-4477-91ac-4b8af8351f10:localhost] 2023-06-04 23:00:23 | [Mutex] received everything. 2023-06-04 23:00:23 | [Mutex] isItemNotified: received:node:e9aa1b47-da29-4477-91ac-4b8af8351f10:localhost:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:Node 6711b6d9-0d5d-48eb-986e-ff1f4daba87c :: true |
createSubnodes | 1.022s |
2023-06-04 23:00:23 |
2023-06-04 23:00:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:23 | ------------------------------------ 2023-06-04 23:00:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7e9d702d-78ff-410a-a442-f19f49031548", "pubsub#title": "Node 7e9d702d-78ff-410a-a442-f19f49031548" } 2023-06-04 23:00:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 23:00:24 | [Mutex] waiting for: [received:nodes:ced9d508-2e22-490c-b564-487760a76dd1:localhost] 2023-06-04 23:00:24 | [Mutex] waiting for: [received:nodes:ced9d508-2e22-490c-b564-487760a76dd1:localhost] 2023-06-04 23:00:24 | [Mutex] waiting for: [received:nodes:ced9d508-2e22-490c-b564-487760a76dd1:localhost] 2023-06-04 23:00:24 | [Mutex] waiting for: [received:nodes:ced9d508-2e22-490c-b564-487760a76dd1:localhost] 2023-06-04 23:00:24 | [Mutex] received everything. 2023-06-04 23:00:24 | [Mutex] isItemNotified: received:node:ced9d508-2e22-490c-b564-487760a76dd1:localhost:node-7e9d702d-78ff-410a-a442-f19f49031548:Node 7e9d702d-78ff-410a-a442-f19f49031548 :: true |
deleteNodes | 1.021s |
2023-06-04 23:00:28 |
2023-06-04 23:00:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:28 | ------------------------------------ 2023-06-04 23:00:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7e9d702d-78ff-410a-a442-f19f49031548" } 2023-06-04 23:00:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 23:00:29 | [Mutex] waiting for: [received:nodes:74d6a85d-f359-43a8-9d1b-8d7fe5d30bab:localhost] 2023-06-04 23:00:29 | [Mutex] waiting for: [received:nodes:74d6a85d-f359-43a8-9d1b-8d7fe5d30bab:localhost] 2023-06-04 23:00:29 | [Mutex] received everything. 2023-06-04 23:00:29 | [Mutex] isItemNotified: received:node:74d6a85d-f359-43a8-9d1b-8d7fe5d30bab:localhost:node-7e9d702d-78ff-410a-a442-f19f49031548:Node 7e9d702d-78ff-410a-a442-f19f49031548 :: false |
deleteSubnodes | 1.024s |
2023-06-04 23:00:27 |
2023-06-04 23:00:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:27 | ------------------------------------ 2023-06-04 23:00:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c" } 2023-06-04 23:00:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-06-04 23:00:28 | [Mutex] waiting for: [received:nodes:9c937178-b6bc-4241-902b-01c5f7cb9e12:localhost] 2023-06-04 23:00:28 | [Mutex] waiting for: [received:nodes:9c937178-b6bc-4241-902b-01c5f7cb9e12:localhost] 2023-06-04 23:00:28 | [Mutex] waiting for: [received:nodes:9c937178-b6bc-4241-902b-01c5f7cb9e12:localhost] 2023-06-04 23:00:28 | [Mutex] waiting for: [received:nodes:9c937178-b6bc-4241-902b-01c5f7cb9e12:localhost] 2023-06-04 23:00:28 | [Mutex] received everything. 2023-06-04 23:00:28 | [Mutex] isItemNotified: received:node:9c937178-b6bc-4241-902b-01c5f7cb9e12:localhost:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:Node 6711b6d9-0d5d-48eb-986e-ff1f4daba87c :: false 2023-06-04 23:00:28 | [Mutex] waiting for: [received:nodes:44f65ce7-10b3-48e1-bcb2-8eba86339d18:localhost] 2023-06-04 23:00:28 | [Mutex] received everything. 2023-06-04 23:00:28 | [Mutex] isItemNotified: received:node:44f65ce7-10b3-48e1-bcb2-8eba86339d18:localhost:node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c:Node 6711b6d9-0d5d-48eb-986e-ff1f4daba87c :: false |
publishItemsToNodes | 0.047s |
2023-06-04 23:00:26 |
2023-06-04 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:26 | ------------------------------------ 2023-06-04 23:00:26 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "entry": "<test>item-2fba64ac-3e98-461d-a411-3e62e06235e1</test>", "item-id": "item-2fba64ac-3e98-461d-a411-3e62e06235e1" } 2023-06-04 23:00:26 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2fba64ac-3e98-461d-a411-3e62e06235e1" } 2023-06-04 23:00:26 | [Mutex] waiting for: [published:item:notifieditem-2fba64ac-3e98-461d-a411-3e62e06235e1:admin@test-domain.com] 2023-06-04 23:00:26 | [Mutex] received everything. 2023-06-04 23:00:26 | [Mutex] isItemNotified: published:item:notifieditem-2fba64ac-3e98-461d-a411-3e62e06235e1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.054s |
2023-06-04 23:00:26 |
2023-06-04 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:26 | ------------------------------------ 2023-06-04 23:00:26 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "item-id": "item-2fba64ac-3e98-461d-a411-3e62e06235e1" } 2023-06-04 23:00:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-2fba64ac-3e98-461d-a411-3e62e06235e1" } 2023-06-04 23:00:26 | [Mutex] received everything. 2023-06-04 23:00:26 | [Mutex] isItemNotified: retracted:item:notifieditem-2fba64ac-3e98-461d-a411-3e62e06235e1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.084s |
2023-06-04 23:00:26 |
2023-06-04 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:26 | ------------------------------------ 2023-06-04 23:00:26 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "item-id": "item-2fba64ac-3e98-461d-a411-3e62e06235e1" } 2023-06-04 23:00:26 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "item-id": "item-2fba64ac-3e98-461d-a411-3e62e06235e1", "item": [ "<item id=\"item-2fba64ac-3e98-461d-a411-3e62e06235e1\"><test>item-2fba64ac-3e98-461d-a411-3e62e06235e1</test></item>" ] } 2023-06-04 23:00:26 | [Mutex] notify: [retrieved:item:item-2fba64ac-3e98-461d-a411-3e62e06235e1:payload-matches:true:localhost] 2023-06-04 23:00:26 | [Mutex] received everything. 2023-06-04 23:00:26 | [Mutex] isItemNotified: retrieved:item:item-2fba64ac-3e98-461d-a411-3e62e06235e1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-06-04 23:00:26 |
2023-06-04 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:26 | ------------------------------------ 2023-06-04 23:00:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-06-04 23:00:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-7e9d702d-78ff-410a-a442-f19f49031548", "test", "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2023-06-04 23:00:26 |
2023-06-04 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:26 | ------------------------------------ 2023-06-04 23:00:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c)" } 2023-06-04 23:00:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2023-06-04 23:00:25 |
2023-06-04 23:00:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:25 | ------------------------------------ 2023-06-04 23:00:25 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "jids": [ "admin@test-domain.com" ] } 2023-06-04 23:00:25 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2023-06-04 23:00:26 |
2023-06-04 23:00:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-06-04 23:00:26 | ------------------------------------ 2023-06-04 23:00:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6711b6d9-0d5d-48eb-986e-ff1f4daba87c", "jids": [ "admin@test-domain.com" ] } 2023-06-04 23:00:26 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |