Test duration: 9.008s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2019-11-27 21:36:19 |
2019-11-27 21:36:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:19 | ------------------------------------ 2019-11-27 21:36:19 | [Mutex] waiting for: [configured:node:node-462426d7-e3de-418e-b0a1-c96e7b702761:node-98498dce-075a-4c85-a95b-ec95c0a28e2e] 2019-11-27 21:36:19 | [Mutex] received everything. 2019-11-27 21:36:19 | [Mutex] isItemNotified: configured:node:node-462426d7-e3de-418e-b0a1-c96e7b702761:node-98498dce-075a-4c85-a95b-ec95c0a28e2e :: true 2019-11-27 21:36:20 | [Mutex] waiting for: [received:nodes:c3bd3f4c-0259-4454-af05-32776337ef02:localhost] 2019-11-27 21:36:20 | [Mutex] received everything. 2019-11-27 21:36:20 | [Mutex] isItemNotified: received:node:c3bd3f4c-0259-4454-af05-32776337ef02:localhost:node-462426d7-e3de-418e-b0a1-c96e7b702761:Node 462426d7-e3de-418e-b0a1-c96e7b702761 :: true 2019-11-27 21:36:20 | [Mutex] waiting for: [received:nodes:07feaab9-7a30-49fc-bc1d-c3768e747732:localhost] 2019-11-27 21:36:20 | [Mutex] received everything. 2019-11-27 21:36:20 | [Mutex] isItemNotified: received:node:07feaab9-7a30-49fc-bc1d-c3768e747732:localhost:node-462426d7-e3de-418e-b0a1-c96e7b702761:Node 462426d7-e3de-418e-b0a1-c96e7b702761 :: false |
createNodes | 1.796s |
2019-11-27 21:36:16 |
2019-11-27 21:36:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:16 | ------------------------------------ 2019-11-27 21:36:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "pubsub#title": "Node 462426d7-e3de-418e-b0a1-c96e7b702761" } 2019-11-27 21:36:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:36:18 | [Mutex] waiting for: [received:nodes:3b6df9f5-a449-40b2-b91f-927596f57d91:localhost] 2019-11-27 21:36:18 | [Mutex] waiting for: [received:nodes:3b6df9f5-a449-40b2-b91f-927596f57d91:localhost] 2019-11-27 21:36:18 | [Mutex] received everything. 2019-11-27 21:36:18 | [Mutex] isItemNotified: received:node:3b6df9f5-a449-40b2-b91f-927596f57d91:localhost:node-462426d7-e3de-418e-b0a1-c96e7b702761:Node 462426d7-e3de-418e-b0a1-c96e7b702761 :: true |
createSubnodes | 1.020s |
2019-11-27 21:36:18 |
2019-11-27 21:36:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:18 | ------------------------------------ 2019-11-27 21:36:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-98498dce-075a-4c85-a95b-ec95c0a28e2e", "pubsub#title": "Node 98498dce-075a-4c85-a95b-ec95c0a28e2e" } 2019-11-27 21:36:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:36:19 | [Mutex] waiting for: [received:nodes:df0b299c-9957-42a1-9756-f9ff5a9901d6:localhost] 2019-11-27 21:36:19 | [Mutex] received everything. 2019-11-27 21:36:19 | [Mutex] isItemNotified: received:node:df0b299c-9957-42a1-9756-f9ff5a9901d6:localhost:node-98498dce-075a-4c85-a95b-ec95c0a28e2e:Node 98498dce-075a-4c85-a95b-ec95c0a28e2e :: true |
deleteNodes | 1.019s |
2019-11-27 21:36:23 |
2019-11-27 21:36:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:23 | ------------------------------------ 2019-11-27 21:36:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-98498dce-075a-4c85-a95b-ec95c0a28e2e" } 2019-11-27 21:36:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:36:24 | [Mutex] waiting for: [received:nodes:13a1c587-c209-40af-90ee-829b07149d07:localhost] 2019-11-27 21:36:24 | [Mutex] received everything. 2019-11-27 21:36:24 | [Mutex] isItemNotified: received:node:13a1c587-c209-40af-90ee-829b07149d07:localhost:node-98498dce-075a-4c85-a95b-ec95c0a28e2e:Node 98498dce-075a-4c85-a95b-ec95c0a28e2e :: false |
deleteSubnodes | 1.030s |
2019-11-27 21:36:22 |
2019-11-27 21:36:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:22 | ------------------------------------ 2019-11-27 21:36:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761" } 2019-11-27 21:36:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 21:36:23 | [Mutex] waiting for: [received:nodes:620be408-42af-41ac-9c21-c248d36ad76c:localhost] 2019-11-27 21:36:23 | [Mutex] received everything. 2019-11-27 21:36:23 | [Mutex] isItemNotified: received:node:620be408-42af-41ac-9c21-c248d36ad76c:localhost:node-462426d7-e3de-418e-b0a1-c96e7b702761:Node 462426d7-e3de-418e-b0a1-c96e7b702761 :: false 2019-11-27 21:36:23 | [Mutex] waiting for: [received:nodes:e03ac418-8a5d-418a-bd84-2496541686fc:localhost] 2019-11-27 21:36:23 | [Mutex] received everything. 2019-11-27 21:36:23 | [Mutex] isItemNotified: received:node:e03ac418-8a5d-418a-bd84-2496541686fc:localhost:node-462426d7-e3de-418e-b0a1-c96e7b702761:Node 462426d7-e3de-418e-b0a1-c96e7b702761 :: false |
publishItemsToNodes | 0.042s |
2019-11-27 21:36:21 |
2019-11-27 21:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:21 | ------------------------------------ 2019-11-27 21:36:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "entry": "<test>item-9256df58-ba9f-4844-b46e-aaabd0474998</test>", "item-id": "item-9256df58-ba9f-4844-b46e-aaabd0474998" } 2019-11-27 21:36:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9256df58-ba9f-4844-b46e-aaabd0474998" } 2019-11-27 21:36:21 | [Mutex] waiting for: [published:item:notifieditem-9256df58-ba9f-4844-b46e-aaabd0474998:admin@localhost] 2019-11-27 21:36:21 | [Mutex] received everything. 2019-11-27 21:36:21 | [Mutex] isItemNotified: published:item:notifieditem-9256df58-ba9f-4844-b46e-aaabd0474998:admin@localhost :: true |
retractItemsFromNodes | 0.059s |
2019-11-27 21:36:21 |
2019-11-27 21:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:21 | ------------------------------------ 2019-11-27 21:36:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "item-id": "item-9256df58-ba9f-4844-b46e-aaabd0474998" } 2019-11-27 21:36:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-9256df58-ba9f-4844-b46e-aaabd0474998" } 2019-11-27 21:36:21 | [Mutex] received everything. 2019-11-27 21:36:21 | [Mutex] isItemNotified: retracted:item:notifieditem-9256df58-ba9f-4844-b46e-aaabd0474998:admin@localhost :: true |
retrieveItemsFromNodes | 0.067s |
2019-11-27 21:36:21 |
2019-11-27 21:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:21 | ------------------------------------ 2019-11-27 21:36:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "item-id": "item-9256df58-ba9f-4844-b46e-aaabd0474998" } 2019-11-27 21:36:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "item-id": "item-9256df58-ba9f-4844-b46e-aaabd0474998", "item": [ "<item id=\"item-9256df58-ba9f-4844-b46e-aaabd0474998\"><test>item-9256df58-ba9f-4844-b46e-aaabd0474998</test></item>" ] } 2019-11-27 21:36:21 | [Mutex] notify: [retrieved:item:item-9256df58-ba9f-4844-b46e-aaabd0474998:payload-matches:true:localhost] 2019-11-27 21:36:21 | [Mutex] received everything. 2019-11-27 21:36:21 | [Mutex] isItemNotified: retrieved:item:item-9256df58-ba9f-4844-b46e-aaabd0474998:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2019-11-27 21:36:21 |
2019-11-27 21:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:21 | ------------------------------------ 2019-11-27 21:36:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-27 21:36:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-98498dce-075a-4c85-a95b-ec95c0a28e2e", "node-462426d7-e3de-418e-b0a1-c96e7b702761" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2019-11-27 21:36:21 |
2019-11-27 21:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:21 | ------------------------------------ 2019-11-27 21:36:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-462426d7-e3de-418e-b0a1-c96e7b702761)" } 2019-11-27 21:36:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2019-11-27 21:36:20 |
2019-11-27 21:36:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:20 | ------------------------------------ 2019-11-27 21:36:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "jids": [ "admin@localhost" ] } 2019-11-27 21:36:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.060s |
2019-11-27 21:36:21 |
2019-11-27 21:36:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 21:36:21 | ------------------------------------ 2019-11-27 21:36:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-462426d7-e3de-418e-b0a1-c96e7b702761", "jids": [ "admin@localhost" ] } 2019-11-27 21:36:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |