Test duration : 8.753s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.109s |
2022-08-22 23:06:03 |
2022-08-22 23:06:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:03 | ------------------------------------ 2022-08-22 23:06:03 | [Mutex] waiting for: [configured:node:node-39badb74-1079-4dc3-ae43-967c46a72f9c:node-9dfdbe6d-f535-40ad-8113-8658a2c6089b] 2022-08-22 23:06:03 | [Mutex] received everything. 2022-08-22 23:06:03 | [Mutex] isItemNotified: configured:node:node-39badb74-1079-4dc3-ae43-967c46a72f9c:node-9dfdbe6d-f535-40ad-8113-8658a2c6089b :: true 2022-08-22 23:06:04 | [Mutex] waiting for: [received:nodes:0f777a8a-ebd0-4e8c-a9d8-4296cfb527be:localhost] 2022-08-22 23:06:04 | [Mutex] received everything. 2022-08-22 23:06:04 | [Mutex] isItemNotified: received:node:0f777a8a-ebd0-4e8c-a9d8-4296cfb527be:localhost:node-39badb74-1079-4dc3-ae43-967c46a72f9c:Node 39badb74-1079-4dc3-ae43-967c46a72f9c :: true 2022-08-22 23:06:04 | [Mutex] waiting for: [received:nodes:52c9bc2e-5378-406b-ad1d-d17b73762224:localhost] 2022-08-22 23:06:04 | [Mutex] waiting for: [received:nodes:52c9bc2e-5378-406b-ad1d-d17b73762224:localhost] 2022-08-22 23:06:04 | [Mutex] received everything. 2022-08-22 23:06:04 | [Mutex] isItemNotified: received:node:52c9bc2e-5378-406b-ad1d-d17b73762224:localhost:node-39badb74-1079-4dc3-ae43-967c46a72f9c:Node 39badb74-1079-4dc3-ae43-967c46a72f9c :: false |
createNodes | 1.566s |
2022-08-22 23:06:01 |
2022-08-22 23:06:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:01 | ------------------------------------ 2022-08-22 23:06:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "pubsub#title": "Node 39badb74-1079-4dc3-ae43-967c46a72f9c" } 2022-08-22 23:06:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-22 23:06:02 | [Mutex] waiting for: [received:nodes:2bba0640-820c-49f3-b4b3-b67b644901ed:localhost] 2022-08-22 23:06:02 | [Mutex] received everything. 2022-08-22 23:06:02 | [Mutex] isItemNotified: received:node:2bba0640-820c-49f3-b4b3-b67b644901ed:localhost:node-39badb74-1079-4dc3-ae43-967c46a72f9c:Node 39badb74-1079-4dc3-ae43-967c46a72f9c :: true |
createSubnodes | 1.018s |
2022-08-22 23:06:02 |
2022-08-22 23:06:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:02 | ------------------------------------ 2022-08-22 23:06:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9dfdbe6d-f535-40ad-8113-8658a2c6089b", "pubsub#title": "Node 9dfdbe6d-f535-40ad-8113-8658a2c6089b" } 2022-08-22 23:06:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-22 23:06:03 | [Mutex] waiting for: [received:nodes:688fb7c3-41ba-47f1-b256-e8852dc01f3d:localhost] 2022-08-22 23:06:03 | [Mutex] waiting for: [received:nodes:688fb7c3-41ba-47f1-b256-e8852dc01f3d:localhost] 2022-08-22 23:06:03 | [Mutex] received everything. 2022-08-22 23:06:03 | [Mutex] isItemNotified: received:node:688fb7c3-41ba-47f1-b256-e8852dc01f3d:localhost:node-9dfdbe6d-f535-40ad-8113-8658a2c6089b:Node 9dfdbe6d-f535-40ad-8113-8658a2c6089b :: true |
deleteNodes | 1.018s |
2022-08-22 23:06:08 |
2022-08-22 23:06:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:08 | ------------------------------------ 2022-08-22 23:06:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9dfdbe6d-f535-40ad-8113-8658a2c6089b" } 2022-08-22 23:06:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-22 23:06:09 | [Mutex] waiting for: [received:nodes:dd141e9d-a204-420a-b20e-3493a5b3bcb1:localhost] 2022-08-22 23:06:09 | [Mutex] received everything. 2022-08-22 23:06:09 | [Mutex] isItemNotified: received:node:dd141e9d-a204-420a-b20e-3493a5b3bcb1:localhost:node-9dfdbe6d-f535-40ad-8113-8658a2c6089b:Node 9dfdbe6d-f535-40ad-8113-8658a2c6089b :: false |
deleteSubnodes | 1.030s |
2022-08-22 23:06:07 |
2022-08-22 23:06:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:07 | ------------------------------------ 2022-08-22 23:06:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c" } 2022-08-22 23:06:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-22 23:06:08 | [Mutex] waiting for: [received:nodes:2c8f0977-2855-454a-8d70-58b62865cc02:localhost] 2022-08-22 23:06:08 | [Mutex] received everything. 2022-08-22 23:06:08 | [Mutex] isItemNotified: received:node:2c8f0977-2855-454a-8d70-58b62865cc02:localhost:node-39badb74-1079-4dc3-ae43-967c46a72f9c:Node 39badb74-1079-4dc3-ae43-967c46a72f9c :: false 2022-08-22 23:06:08 | [Mutex] waiting for: [received:nodes:7c480efc-d4e2-4a32-b609-6489c575c4d1:localhost] 2022-08-22 23:06:08 | [Mutex] received everything. 2022-08-22 23:06:08 | [Mutex] isItemNotified: received:node:7c480efc-d4e2-4a32-b609-6489c575c4d1:localhost:node-39badb74-1079-4dc3-ae43-967c46a72f9c:Node 39badb74-1079-4dc3-ae43-967c46a72f9c :: false |
publishItemsToNodes | 0.048s |
2022-08-22 23:06:05 |
2022-08-22 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:05 | ------------------------------------ 2022-08-22 23:06:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "entry": "<test>item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7</test>", "item-id": "item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7" } 2022-08-22 23:06:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7" } 2022-08-22 23:06:05 | [Mutex] waiting for: [published:item:notifieditem-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7:admin@test-domain.com] 2022-08-22 23:06:05 | [Mutex] received everything. 2022-08-22 23:06:05 | [Mutex] isItemNotified: published:item:notifieditem-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7:admin@test-domain.com :: true |
retractItemsFromNodes | 0.077s |
2022-08-22 23:06:06 |
2022-08-22 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:06 | ------------------------------------ 2022-08-22 23:06:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "item-id": "item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7" } 2022-08-22 23:06:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7" } 2022-08-22 23:06:06 | [Mutex] waiting for: [retracted:item:notifieditem-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7:admin@test-domain.com] 2022-08-22 23:06:06 | [Mutex] received everything. 2022-08-22 23:06:06 | [Mutex] isItemNotified: retracted:item:notifieditem-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2022-08-22 23:06:05 |
2022-08-22 23:06:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:05 | ------------------------------------ 2022-08-22 23:06:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "item-id": "item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7" } 2022-08-22 23:06:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "item-id": "item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7", "item": [ "<item id=\"item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7\"><test>item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7</test></item>" ] } 2022-08-22 23:06:06 | [Mutex] notify: [retrieved:item:item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7:payload-matches:true:localhost] 2022-08-22 23:06:06 | [Mutex] received everything. 2022-08-22 23:06:06 | [Mutex] isItemNotified: retrieved:item:item-bc4a453a-69e6-45d0-b0b1-46b88ffa14c7:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.045s |
2022-08-22 23:06:06 |
2022-08-22 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:06 | ------------------------------------ 2022-08-22 23:06:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-22 23:06:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9dfdbe6d-f535-40ad-8113-8658a2c6089b", "test", "node-39badb74-1079-4dc3-ae43-967c46a72f9c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-08-22 23:06:06 |
2022-08-22 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:06 | ------------------------------------ 2022-08-22 23:06:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-39badb74-1079-4dc3-ae43-967c46a72f9c)" } 2022-08-22 23:06:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-22 23:06:04 |
2022-08-22 23:06:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:04 | ------------------------------------ 2022-08-22 23:06:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "jids": [ "admin@test-domain.com" ] } 2022-08-22 23:06:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.048s |
2022-08-22 23:06:06 |
2022-08-22 23:06:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-22 23:06:06 | ------------------------------------ 2022-08-22 23:06:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-39badb74-1079-4dc3-ae43-967c46a72f9c", "jids": [ "admin@test-domain.com" ] } 2022-08-22 23:06:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |