Test duration : 8.807s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.134s |
2022-05-02 23:20:27 |
2022-05-02 23:20:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:27 | ------------------------------------ 2022-05-02 23:20:27 | [Mutex] waiting for: [configured:node:node-455c9c25-1593-460b-94cb-03b66c5ae046:node-15c4779d-33a0-4c08-8db5-ab4818c5f566] 2022-05-02 23:20:28 | [Mutex] received everything. 2022-05-02 23:20:28 | [Mutex] isItemNotified: configured:node:node-455c9c25-1593-460b-94cb-03b66c5ae046:node-15c4779d-33a0-4c08-8db5-ab4818c5f566 :: true 2022-05-02 23:20:29 | [Mutex] waiting for: [received:nodes:4f6c61eb-a5cb-45dd-a10e-978acd30582c:localhost] 2022-05-02 23:20:29 | [Mutex] received everything. 2022-05-02 23:20:29 | [Mutex] isItemNotified: received:node:4f6c61eb-a5cb-45dd-a10e-978acd30582c:localhost:node-455c9c25-1593-460b-94cb-03b66c5ae046:Node 455c9c25-1593-460b-94cb-03b66c5ae046 :: true 2022-05-02 23:20:29 | [Mutex] waiting for: [received:nodes:87e86e9b-ac5c-4894-bf28-4b974d2059c8:localhost] 2022-05-02 23:20:29 | [Mutex] waiting for: [received:nodes:87e86e9b-ac5c-4894-bf28-4b974d2059c8:localhost] 2022-05-02 23:20:29 | [Mutex] received everything. 2022-05-02 23:20:29 | [Mutex] isItemNotified: received:node:87e86e9b-ac5c-4894-bf28-4b974d2059c8:localhost:node-455c9c25-1593-460b-94cb-03b66c5ae046:Node 455c9c25-1593-460b-94cb-03b66c5ae046 :: false |
createNodes | 1.683s |
2022-05-02 23:20:25 |
2022-05-02 23:20:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:25 | ------------------------------------ 2022-05-02 23:20:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "pubsub#title": "Node 455c9c25-1593-460b-94cb-03b66c5ae046" } 2022-05-02 23:20:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 23:20:26 | [Mutex] waiting for: [received:nodes:e22072e3-f6cd-41f3-9e5b-e10024863ac1:localhost] 2022-05-02 23:20:26 | [Mutex] waiting for: [received:nodes:e22072e3-f6cd-41f3-9e5b-e10024863ac1:localhost] 2022-05-02 23:20:26 | [Mutex] received everything. 2022-05-02 23:20:26 | [Mutex] isItemNotified: received:node:e22072e3-f6cd-41f3-9e5b-e10024863ac1:localhost:node-455c9c25-1593-460b-94cb-03b66c5ae046:Node 455c9c25-1593-460b-94cb-03b66c5ae046 :: true |
createSubnodes | 1.022s |
2022-05-02 23:20:26 |
2022-05-02 23:20:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:26 | ------------------------------------ 2022-05-02 23:20:26 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-15c4779d-33a0-4c08-8db5-ab4818c5f566", "pubsub#title": "Node 15c4779d-33a0-4c08-8db5-ab4818c5f566" } 2022-05-02 23:20:26 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 23:20:27 | [Mutex] waiting for: [received:nodes:e5168511-5d04-487f-b33c-235ade27fee2:localhost] 2022-05-02 23:20:27 | [Mutex] received everything. 2022-05-02 23:20:27 | [Mutex] isItemNotified: received:node:e5168511-5d04-487f-b33c-235ade27fee2:localhost:node-15c4779d-33a0-4c08-8db5-ab4818c5f566:Node 15c4779d-33a0-4c08-8db5-ab4818c5f566 :: true |
deleteNodes | 1.020s |
2022-05-02 23:20:32 |
2022-05-02 23:20:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:32 | ------------------------------------ 2022-05-02 23:20:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-15c4779d-33a0-4c08-8db5-ab4818c5f566" } 2022-05-02 23:20:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 23:20:33 | [Mutex] waiting for: [received:nodes:840beb76-f845-4d68-8de6-481ea49e87f2:localhost] 2022-05-02 23:20:33 | [Mutex] waiting for: [received:nodes:840beb76-f845-4d68-8de6-481ea49e87f2:localhost] 2022-05-02 23:20:33 | [Mutex] waiting for: [received:nodes:840beb76-f845-4d68-8de6-481ea49e87f2:localhost] 2022-05-02 23:20:33 | [Mutex] received everything. 2022-05-02 23:20:33 | [Mutex] isItemNotified: received:node:840beb76-f845-4d68-8de6-481ea49e87f2:localhost:node-15c4779d-33a0-4c08-8db5-ab4818c5f566:Node 15c4779d-33a0-4c08-8db5-ab4818c5f566 :: false |
deleteSubnodes | 1.025s |
2022-05-02 23:20:31 |
2022-05-02 23:20:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:31 | ------------------------------------ 2022-05-02 23:20:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046" } 2022-05-02 23:20:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-02 23:20:32 | [Mutex] waiting for: [received:nodes:ad21183a-d7d3-45b8-bf56-5c84fe721862:localhost] 2022-05-02 23:20:32 | [Mutex] waiting for: [received:nodes:ad21183a-d7d3-45b8-bf56-5c84fe721862:localhost] 2022-05-02 23:20:32 | [Mutex] received everything. 2022-05-02 23:20:32 | [Mutex] isItemNotified: received:node:ad21183a-d7d3-45b8-bf56-5c84fe721862:localhost:node-455c9c25-1593-460b-94cb-03b66c5ae046:Node 455c9c25-1593-460b-94cb-03b66c5ae046 :: false 2022-05-02 23:20:32 | [Mutex] waiting for: [received:nodes:3c0b9590-d576-4b1d-aa9f-b89315b50a94:localhost] 2022-05-02 23:20:32 | [Mutex] received everything. 2022-05-02 23:20:32 | [Mutex] isItemNotified: received:node:3c0b9590-d576-4b1d-aa9f-b89315b50a94:localhost:node-455c9c25-1593-460b-94cb-03b66c5ae046:Node 455c9c25-1593-460b-94cb-03b66c5ae046 :: false |
publishItemsToNodes | 0.039s |
2022-05-02 23:20:30 |
2022-05-02 23:20:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:30 | ------------------------------------ 2022-05-02 23:20:30 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "entry": "<test>item-b28c52ca-d4ff-4f12-9431-fb864214c03f</test>", "item-id": "item-b28c52ca-d4ff-4f12-9431-fb864214c03f" } 2022-05-02 23:20:30 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b28c52ca-d4ff-4f12-9431-fb864214c03f" } 2022-05-02 23:20:30 | [Mutex] waiting for: [published:item:notifieditem-b28c52ca-d4ff-4f12-9431-fb864214c03f:admin@test-domain.com] 2022-05-02 23:20:30 | [Mutex] received everything. 2022-05-02 23:20:30 | [Mutex] isItemNotified: published:item:notifieditem-b28c52ca-d4ff-4f12-9431-fb864214c03f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-05-02 23:20:30 |
2022-05-02 23:20:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:30 | ------------------------------------ 2022-05-02 23:20:30 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "item-id": "item-b28c52ca-d4ff-4f12-9431-fb864214c03f" } 2022-05-02 23:20:30 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b28c52ca-d4ff-4f12-9431-fb864214c03f" } 2022-05-02 23:20:30 | [Mutex] received everything. 2022-05-02 23:20:30 | [Mutex] isItemNotified: retracted:item:notifieditem-b28c52ca-d4ff-4f12-9431-fb864214c03f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2022-05-02 23:20:30 |
2022-05-02 23:20:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:30 | ------------------------------------ 2022-05-02 23:20:30 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "item-id": "item-b28c52ca-d4ff-4f12-9431-fb864214c03f" } 2022-05-02 23:20:30 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "item-id": "item-b28c52ca-d4ff-4f12-9431-fb864214c03f", "item": [ "<item id=\"item-b28c52ca-d4ff-4f12-9431-fb864214c03f\"><test>item-b28c52ca-d4ff-4f12-9431-fb864214c03f</test></item>" ] } 2022-05-02 23:20:30 | [Mutex] notify: [retrieved:item:item-b28c52ca-d4ff-4f12-9431-fb864214c03f:payload-matches:true:localhost] 2022-05-02 23:20:30 | [Mutex] received everything. 2022-05-02 23:20:30 | [Mutex] isItemNotified: retrieved:item:item-b28c52ca-d4ff-4f12-9431-fb864214c03f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-05-02 23:20:30 |
2022-05-02 23:20:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:30 | ------------------------------------ 2022-05-02 23:20:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-02 23:20:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-455c9c25-1593-460b-94cb-03b66c5ae046", "node-15c4779d-33a0-4c08-8db5-ab4818c5f566" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-02 23:20:30 |
2022-05-02 23:20:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:30 | ------------------------------------ 2022-05-02 23:20:30 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-455c9c25-1593-460b-94cb-03b66c5ae046)" } 2022-05-02 23:20:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-05-02 23:20:29 |
2022-05-02 23:20:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:29 | ------------------------------------ 2022-05-02 23:20:29 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "jids": [ "admin@test-domain.com" ] } 2022-05-02 23:20:29 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-05-02 23:20:30 |
2022-05-02 23:20:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-02 23:20:30 | ------------------------------------ 2022-05-02 23:20:30 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-455c9c25-1593-460b-94cb-03b66c5ae046", "jids": [ "admin@test-domain.com" ] } 2022-05-02 23:20:30 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |