Test duration : 8.798s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2022-07-01 23:02:34 |
2022-07-01 23:02:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:34 | ------------------------------------ 2022-07-01 23:02:34 | [Mutex] waiting for: [configured:node:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:node-d9cf4bf6-d712-40ec-8924-825e98cf2695] 2022-07-01 23:02:34 | [Mutex] received everything. 2022-07-01 23:02:34 | [Mutex] isItemNotified: configured:node:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:node-d9cf4bf6-d712-40ec-8924-825e98cf2695 :: true 2022-07-01 23:02:35 | [Mutex] waiting for: [received:nodes:5b163ba5-7a8c-4bb4-9262-1d9d38df586b:localhost] 2022-07-01 23:02:35 | [Mutex] received everything. 2022-07-01 23:02:35 | [Mutex] isItemNotified: received:node:5b163ba5-7a8c-4bb4-9262-1d9d38df586b:localhost:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:Node 3e960efe-1513-4f6b-b2af-fa10782edfc0 :: true 2022-07-01 23:02:35 | [Mutex] waiting for: [received:nodes:d507e956-548d-4a8c-bacd-61353eb9ba25:localhost] 2022-07-01 23:02:35 | [Mutex] received everything. 2022-07-01 23:02:35 | [Mutex] isItemNotified: received:node:d507e956-548d-4a8c-bacd-61353eb9ba25:localhost:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:Node 3e960efe-1513-4f6b-b2af-fa10782edfc0 :: false |
createNodes | 1.741s |
2022-07-01 23:02:31 |
2022-07-01 23:02:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:31 | ------------------------------------ 2022-07-01 23:02:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "pubsub#title": "Node 3e960efe-1513-4f6b-b2af-fa10782edfc0" } 2022-07-01 23:02:32 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 23:02:33 | [Mutex] waiting for: [received:nodes:c1bb51e5-c7c6-43fe-9839-b7ee1ecc3b7b:localhost] 2022-07-01 23:02:33 | [Mutex] waiting for: [received:nodes:c1bb51e5-c7c6-43fe-9839-b7ee1ecc3b7b:localhost] 2022-07-01 23:02:33 | [Mutex] received everything. 2022-07-01 23:02:33 | [Mutex] isItemNotified: received:node:c1bb51e5-c7c6-43fe-9839-b7ee1ecc3b7b:localhost:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:Node 3e960efe-1513-4f6b-b2af-fa10782edfc0 :: true |
createSubnodes | 1.021s |
2022-07-01 23:02:33 |
2022-07-01 23:02:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:33 | ------------------------------------ 2022-07-01 23:02:33 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d9cf4bf6-d712-40ec-8924-825e98cf2695", "pubsub#title": "Node d9cf4bf6-d712-40ec-8924-825e98cf2695" } 2022-07-01 23:02:33 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 23:02:34 | [Mutex] waiting for: [received:nodes:cba8c6f4-bddc-4f7b-8251-8bda2d43b4f0:localhost] 2022-07-01 23:02:34 | [Mutex] received everything. 2022-07-01 23:02:34 | [Mutex] isItemNotified: received:node:cba8c6f4-bddc-4f7b-8251-8bda2d43b4f0:localhost:node-d9cf4bf6-d712-40ec-8924-825e98cf2695:Node d9cf4bf6-d712-40ec-8924-825e98cf2695 :: true |
deleteNodes | 1.036s |
2022-07-01 23:02:38 |
2022-07-01 23:02:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:38 | ------------------------------------ 2022-07-01 23:02:38 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d9cf4bf6-d712-40ec-8924-825e98cf2695" } 2022-07-01 23:02:38 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 23:02:39 | [Mutex] waiting for: [received:nodes:ce30470c-4622-41de-bb6f-b834d3163ba3:localhost] 2022-07-01 23:02:39 | [Mutex] received everything. 2022-07-01 23:02:39 | [Mutex] isItemNotified: received:node:ce30470c-4622-41de-bb6f-b834d3163ba3:localhost:node-d9cf4bf6-d712-40ec-8924-825e98cf2695:Node d9cf4bf6-d712-40ec-8924-825e98cf2695 :: false |
deleteSubnodes | 1.023s |
2022-07-01 23:02:37 |
2022-07-01 23:02:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:37 | ------------------------------------ 2022-07-01 23:02:37 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0" } 2022-07-01 23:02:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-01 23:02:38 | [Mutex] waiting for: [received:nodes:8f450961-3b13-466f-87b0-7311e635ec0f:localhost] 2022-07-01 23:02:38 | [Mutex] waiting for: [received:nodes:8f450961-3b13-466f-87b0-7311e635ec0f:localhost] 2022-07-01 23:02:38 | [Mutex] received everything. 2022-07-01 23:02:38 | [Mutex] isItemNotified: received:node:8f450961-3b13-466f-87b0-7311e635ec0f:localhost:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:Node 3e960efe-1513-4f6b-b2af-fa10782edfc0 :: false 2022-07-01 23:02:38 | [Mutex] waiting for: [received:nodes:d0d46800-7890-4e13-8b57-9204152d24a8:localhost] 2022-07-01 23:02:38 | [Mutex] received everything. 2022-07-01 23:02:38 | [Mutex] isItemNotified: received:node:d0d46800-7890-4e13-8b57-9204152d24a8:localhost:node-3e960efe-1513-4f6b-b2af-fa10782edfc0:Node 3e960efe-1513-4f6b-b2af-fa10782edfc0 :: false |
publishItemsToNodes | 0.137s |
2022-07-01 23:02:36 |
2022-07-01 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:36 | ------------------------------------ 2022-07-01 23:02:36 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "entry": "<test>item-52335159-b4fc-470d-a7f6-13e6401b77cd</test>", "item-id": "item-52335159-b4fc-470d-a7f6-13e6401b77cd" } 2022-07-01 23:02:36 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-52335159-b4fc-470d-a7f6-13e6401b77cd" } 2022-07-01 23:02:36 | [Mutex] waiting for: [published:item:notifieditem-52335159-b4fc-470d-a7f6-13e6401b77cd:admin@test-domain.com] 2022-07-01 23:02:36 | [Mutex] received everything. 2022-07-01 23:02:36 | [Mutex] isItemNotified: published:item:notifieditem-52335159-b4fc-470d-a7f6-13e6401b77cd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-07-01 23:02:36 |
2022-07-01 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:36 | ------------------------------------ 2022-07-01 23:02:36 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "item-id": "item-52335159-b4fc-470d-a7f6-13e6401b77cd" } 2022-07-01 23:02:36 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-52335159-b4fc-470d-a7f6-13e6401b77cd" } 2022-07-01 23:02:36 | [Mutex] received everything. 2022-07-01 23:02:36 | [Mutex] isItemNotified: retracted:item:notifieditem-52335159-b4fc-470d-a7f6-13e6401b77cd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.012s |
2022-07-01 23:02:36 |
2022-07-01 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:36 | ------------------------------------ 2022-07-01 23:02:36 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "item-id": "item-52335159-b4fc-470d-a7f6-13e6401b77cd" } 2022-07-01 23:02:36 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "item-id": "item-52335159-b4fc-470d-a7f6-13e6401b77cd", "item": [ "<item id=\"item-52335159-b4fc-470d-a7f6-13e6401b77cd\"><test>item-52335159-b4fc-470d-a7f6-13e6401b77cd</test></item>" ] } 2022-07-01 23:02:36 | [Mutex] notify: [retrieved:item:item-52335159-b4fc-470d-a7f6-13e6401b77cd:payload-matches:true:localhost] 2022-07-01 23:02:36 | [Mutex] received everything. 2022-07-01 23:02:36 | [Mutex] isItemNotified: retrieved:item:item-52335159-b4fc-470d-a7f6-13e6401b77cd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-07-01 23:02:36 |
2022-07-01 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:36 | ------------------------------------ 2022-07-01 23:02:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-01 23:02:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "test", "node-d9cf4bf6-d712-40ec-8924-825e98cf2695" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-01 23:02:36 |
2022-07-01 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:36 | ------------------------------------ 2022-07-01 23:02:36 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3e960efe-1513-4f6b-b2af-fa10782edfc0)" } 2022-07-01 23:02:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-07-01 23:02:35 |
2022-07-01 23:02:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:35 | ------------------------------------ 2022-07-01 23:02:35 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "jids": [ "admin@test-domain.com" ] } 2022-07-01 23:02:35 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-07-01 23:02:36 |
2022-07-01 23:02:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-01 23:02:36 | ------------------------------------ 2022-07-01 23:02:36 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3e960efe-1513-4f6b-b2af-fa10782edfc0", "jids": [ "admin@test-domain.com" ] } 2022-07-01 23:02:36 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |