Test duration : 8.729s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.108s |
2022-06-29 22:47:19 |
2022-06-29 22:47:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:19 | ------------------------------------ 2022-06-29 22:47:19 | [Mutex] waiting for: [configured:node:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:node-0d1a51c8-a518-42f0-a57c-eed666de7da0] 2022-06-29 22:47:19 | [Mutex] received everything. 2022-06-29 22:47:19 | [Mutex] isItemNotified: configured:node:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:node-0d1a51c8-a518-42f0-a57c-eed666de7da0 :: true 2022-06-29 22:47:20 | [Mutex] waiting for: [received:nodes:5adf771b-909f-4f1b-88da-4c1b8a8b71f6:localhost] 2022-06-29 22:47:20 | [Mutex] received everything. 2022-06-29 22:47:20 | [Mutex] isItemNotified: received:node:5adf771b-909f-4f1b-88da-4c1b8a8b71f6:localhost:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:Node 69db6fa2-6f63-41bf-bb08-ede3a6f5a74d :: true 2022-06-29 22:47:20 | [Mutex] waiting for: [received:nodes:36a3283c-c2f5-4885-a806-d762aeef540a:localhost] 2022-06-29 22:47:20 | [Mutex] received everything. 2022-06-29 22:47:20 | [Mutex] isItemNotified: received:node:36a3283c-c2f5-4885-a806-d762aeef540a:localhost:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:Node 69db6fa2-6f63-41bf-bb08-ede3a6f5a74d :: false |
createNodes | 1.595s |
2022-06-29 22:47:16 |
2022-06-29 22:47:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:16 | ------------------------------------ 2022-06-29 22:47:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "pubsub#title": "Node 69db6fa2-6f63-41bf-bb08-ede3a6f5a74d" } 2022-06-29 22:47:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:47:18 | [Mutex] waiting for: [received:nodes:652b492a-bc26-487c-8c5c-2cbd3e8bdd83:localhost] 2022-06-29 22:47:18 | [Mutex] received everything. 2022-06-29 22:47:18 | [Mutex] isItemNotified: received:node:652b492a-bc26-487c-8c5c-2cbd3e8bdd83:localhost:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:Node 69db6fa2-6f63-41bf-bb08-ede3a6f5a74d :: true |
createSubnodes | 1.028s |
2022-06-29 22:47:18 |
2022-06-29 22:47:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:18 | ------------------------------------ 2022-06-29 22:47:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0d1a51c8-a518-42f0-a57c-eed666de7da0", "pubsub#title": "Node 0d1a51c8-a518-42f0-a57c-eed666de7da0" } 2022-06-29 22:47:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:47:19 | [Mutex] waiting for: [received:nodes:aabdd3a9-6700-494b-bcab-b17b2334ffea:localhost] 2022-06-29 22:47:19 | [Mutex] waiting for: [received:nodes:aabdd3a9-6700-494b-bcab-b17b2334ffea:localhost] 2022-06-29 22:47:19 | [Mutex] waiting for: [received:nodes:aabdd3a9-6700-494b-bcab-b17b2334ffea:localhost] 2022-06-29 22:47:19 | [Mutex] waiting for: [received:nodes:aabdd3a9-6700-494b-bcab-b17b2334ffea:localhost] 2022-06-29 22:47:19 | [Mutex] received everything. 2022-06-29 22:47:19 | [Mutex] isItemNotified: received:node:aabdd3a9-6700-494b-bcab-b17b2334ffea:localhost:node-0d1a51c8-a518-42f0-a57c-eed666de7da0:Node 0d1a51c8-a518-42f0-a57c-eed666de7da0 :: true |
deleteNodes | 1.032s |
2022-06-29 22:47:23 |
2022-06-29 22:47:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:23 | ------------------------------------ 2022-06-29 22:47:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0d1a51c8-a518-42f0-a57c-eed666de7da0" } 2022-06-29 22:47:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:47:24 | [Mutex] waiting for: [received:nodes:f88d0641-db95-4c72-84f5-dd1ac3012ad1:localhost] 2022-06-29 22:47:24 | [Mutex] waiting for: [received:nodes:f88d0641-db95-4c72-84f5-dd1ac3012ad1:localhost] 2022-06-29 22:47:24 | [Mutex] waiting for: [received:nodes:f88d0641-db95-4c72-84f5-dd1ac3012ad1:localhost] 2022-06-29 22:47:24 | [Mutex] received everything. 2022-06-29 22:47:24 | [Mutex] isItemNotified: received:node:f88d0641-db95-4c72-84f5-dd1ac3012ad1:localhost:node-0d1a51c8-a518-42f0-a57c-eed666de7da0:Node 0d1a51c8-a518-42f0-a57c-eed666de7da0 :: false |
deleteSubnodes | 1.027s |
2022-06-29 22:47:22 |
2022-06-29 22:47:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:22 | ------------------------------------ 2022-06-29 22:47:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d" } 2022-06-29 22:47:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-29 22:47:23 | [Mutex] waiting for: [received:nodes:39d74bd3-4485-4a0e-9bcb-e2d659b72d64:localhost] 2022-06-29 22:47:23 | [Mutex] waiting for: [received:nodes:39d74bd3-4485-4a0e-9bcb-e2d659b72d64:localhost] 2022-06-29 22:47:23 | [Mutex] received everything. 2022-06-29 22:47:23 | [Mutex] isItemNotified: received:node:39d74bd3-4485-4a0e-9bcb-e2d659b72d64:localhost:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:Node 69db6fa2-6f63-41bf-bb08-ede3a6f5a74d :: false 2022-06-29 22:47:23 | [Mutex] waiting for: [received:nodes:f9ddd44a-50e4-4e83-a8ad-7ee1dcb5463d:localhost] 2022-06-29 22:47:23 | [Mutex] received everything. 2022-06-29 22:47:23 | [Mutex] isItemNotified: received:node:f9ddd44a-50e4-4e83-a8ad-7ee1dcb5463d:localhost:node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d:Node 69db6fa2-6f63-41bf-bb08-ede3a6f5a74d :: false |
publishItemsToNodes | 0.043s |
2022-06-29 22:47:21 |
2022-06-29 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:21 | ------------------------------------ 2022-06-29 22:47:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "entry": "<test>item-452a7079-df04-4f5c-880f-256325e67806</test>", "item-id": "item-452a7079-df04-4f5c-880f-256325e67806" } 2022-06-29 22:47:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-452a7079-df04-4f5c-880f-256325e67806" } 2022-06-29 22:47:21 | [Mutex] received everything. 2022-06-29 22:47:21 | [Mutex] isItemNotified: published:item:notifieditem-452a7079-df04-4f5c-880f-256325e67806:admin@test-domain.com :: true |
retractItemsFromNodes | 0.095s |
2022-06-29 22:47:21 |
2022-06-29 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:21 | ------------------------------------ 2022-06-29 22:47:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "item-id": "item-452a7079-df04-4f5c-880f-256325e67806" } 2022-06-29 22:47:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-452a7079-df04-4f5c-880f-256325e67806" } 2022-06-29 22:47:21 | [Mutex] received everything. 2022-06-29 22:47:21 | [Mutex] isItemNotified: retracted:item:notifieditem-452a7079-df04-4f5c-880f-256325e67806:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2022-06-29 22:47:21 |
2022-06-29 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:21 | ------------------------------------ 2022-06-29 22:47:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "item-id": "item-452a7079-df04-4f5c-880f-256325e67806" } 2022-06-29 22:47:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "item-id": "item-452a7079-df04-4f5c-880f-256325e67806", "item": [ "<item id=\"item-452a7079-df04-4f5c-880f-256325e67806\"><test>item-452a7079-df04-4f5c-880f-256325e67806</test></item>" ] } 2022-06-29 22:47:21 | [Mutex] notify: [retrieved:item:item-452a7079-df04-4f5c-880f-256325e67806:payload-matches:true:localhost] 2022-06-29 22:47:21 | [Mutex] received everything. 2022-06-29 22:47:21 | [Mutex] isItemNotified: retrieved:item:item-452a7079-df04-4f5c-880f-256325e67806:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-06-29 22:47:21 |
2022-06-29 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:21 | ------------------------------------ 2022-06-29 22:47:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-29 22:47:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "node-0d1a51c8-a518-42f0-a57c-eed666de7da0" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-29 22:47:21 |
2022-06-29 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:21 | ------------------------------------ 2022-06-29 22:47:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d)" } 2022-06-29 22:47:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2022-06-29 22:47:20 |
2022-06-29 22:47:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:20 | ------------------------------------ 2022-06-29 22:47:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "jids": [ "admin@test-domain.com" ] } 2022-06-29 22:47:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-06-29 22:47:21 |
2022-06-29 22:47:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-29 22:47:21 | ------------------------------------ 2022-06-29 22:47:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-69db6fa2-6f63-41bf-bb08-ede3a6f5a74d", "jids": [ "admin@test-domain.com" ] } 2022-06-29 22:47:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |