Test duration : 9.139s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2020-09-28 23:10:31 |
2020-09-28 23:10:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:31 | ------------------------------------ 2020-09-28 23:10:31 | [Mutex] waiting for: [configured:node:node-047a8356-b0ea-4450-aea9-8a537e3878f6:node-9189cd64-751f-4d56-aa8f-69bb247e1005] 2020-09-28 23:10:31 | [Mutex] received everything. 2020-09-28 23:10:31 | [Mutex] isItemNotified: configured:node:node-047a8356-b0ea-4450-aea9-8a537e3878f6:node-9189cd64-751f-4d56-aa8f-69bb247e1005 :: true 2020-09-28 23:10:32 | [Mutex] waiting for: [received:nodes:adddb227-9162-46c0-b4a0-a222be6ae024:localhost] 2020-09-28 23:10:32 | [Mutex] received everything. 2020-09-28 23:10:32 | [Mutex] isItemNotified: received:node:adddb227-9162-46c0-b4a0-a222be6ae024:localhost:node-047a8356-b0ea-4450-aea9-8a537e3878f6:Node 047a8356-b0ea-4450-aea9-8a537e3878f6 :: true 2020-09-28 23:10:32 | [Mutex] waiting for: [received:nodes:e965df29-6b3d-41a6-90fd-d3b8d909c85f:localhost] 2020-09-28 23:10:32 | [Mutex] received everything. 2020-09-28 23:10:32 | [Mutex] isItemNotified: received:node:e965df29-6b3d-41a6-90fd-d3b8d909c85f:localhost:node-047a8356-b0ea-4450-aea9-8a537e3878f6:Node 047a8356-b0ea-4450-aea9-8a537e3878f6 :: false |
createNodes | 1.718s |
2020-09-28 23:10:28 |
2020-09-28 23:10:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:28 | ------------------------------------ 2020-09-28 23:10:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "pubsub#title": "Node 047a8356-b0ea-4450-aea9-8a537e3878f6" } 2020-09-28 23:10:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 23:10:30 | [Mutex] waiting for: [received:nodes:fcaba293-1c2d-4111-a25e-27b34791c511:localhost] 2020-09-28 23:10:30 | [Mutex] received everything. 2020-09-28 23:10:30 | [Mutex] isItemNotified: received:node:fcaba293-1c2d-4111-a25e-27b34791c511:localhost:node-047a8356-b0ea-4450-aea9-8a537e3878f6:Node 047a8356-b0ea-4450-aea9-8a537e3878f6 :: true |
createSubnodes | 1.034s |
2020-09-28 23:10:30 |
2020-09-28 23:10:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:30 | ------------------------------------ 2020-09-28 23:10:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-9189cd64-751f-4d56-aa8f-69bb247e1005", "pubsub#title": "Node 9189cd64-751f-4d56-aa8f-69bb247e1005" } 2020-09-28 23:10:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 23:10:31 | [Mutex] waiting for: [received:nodes:ce442ad8-4e6c-42ac-b0c9-ff1a11115177:localhost] 2020-09-28 23:10:31 | [Mutex] waiting for: [received:nodes:ce442ad8-4e6c-42ac-b0c9-ff1a11115177:localhost] 2020-09-28 23:10:31 | [Mutex] received everything. 2020-09-28 23:10:31 | [Mutex] isItemNotified: received:node:ce442ad8-4e6c-42ac-b0c9-ff1a11115177:localhost:node-9189cd64-751f-4d56-aa8f-69bb247e1005:Node 9189cd64-751f-4d56-aa8f-69bb247e1005 :: true |
deleteNodes | 1.025s |
2020-09-28 23:10:35 |
2020-09-28 23:10:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:35 | ------------------------------------ 2020-09-28 23:10:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9189cd64-751f-4d56-aa8f-69bb247e1005" } 2020-09-28 23:10:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 23:10:36 | [Mutex] waiting for: [received:nodes:5b54de8e-ff42-44b1-9ad2-dae829863839:localhost] 2020-09-28 23:10:36 | [Mutex] received everything. 2020-09-28 23:10:36 | [Mutex] isItemNotified: received:node:5b54de8e-ff42-44b1-9ad2-dae829863839:localhost:node-9189cd64-751f-4d56-aa8f-69bb247e1005:Node 9189cd64-751f-4d56-aa8f-69bb247e1005 :: false |
deleteSubnodes | 1.030s |
2020-09-28 23:10:34 |
2020-09-28 23:10:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:34 | ------------------------------------ 2020-09-28 23:10:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6" } 2020-09-28 23:10:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 23:10:35 | [Mutex] waiting for: [received:nodes:d09a0bed-a143-4716-8e11-b59a40cc4831:localhost] 2020-09-28 23:10:35 | [Mutex] waiting for: [received:nodes:d09a0bed-a143-4716-8e11-b59a40cc4831:localhost] 2020-09-28 23:10:35 | [Mutex] received everything. 2020-09-28 23:10:35 | [Mutex] isItemNotified: received:node:d09a0bed-a143-4716-8e11-b59a40cc4831:localhost:node-047a8356-b0ea-4450-aea9-8a537e3878f6:Node 047a8356-b0ea-4450-aea9-8a537e3878f6 :: false 2020-09-28 23:10:35 | [Mutex] waiting for: [received:nodes:a7085af8-ae9d-4ef4-b7cb-02b3019e5fba:localhost] 2020-09-28 23:10:35 | [Mutex] received everything. 2020-09-28 23:10:35 | [Mutex] isItemNotified: received:node:a7085af8-ae9d-4ef4-b7cb-02b3019e5fba:localhost:node-047a8356-b0ea-4450-aea9-8a537e3878f6:Node 047a8356-b0ea-4450-aea9-8a537e3878f6 :: false |
publishItemsToNodes | 0.057s |
2020-09-28 23:10:33 |
2020-09-28 23:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:33 | ------------------------------------ 2020-09-28 23:10:33 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "entry": "<test>item-f599a58c-b26a-4606-99c1-ec14d6e99239</test>", "item-id": "item-f599a58c-b26a-4606-99c1-ec14d6e99239" } 2020-09-28 23:10:33 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f599a58c-b26a-4606-99c1-ec14d6e99239" } 2020-09-28 23:10:33 | [Mutex] waiting for: [published:item:notifieditem-f599a58c-b26a-4606-99c1-ec14d6e99239:admin@test-domain.com] 2020-09-28 23:10:33 | [Mutex] received everything. 2020-09-28 23:10:33 | [Mutex] isItemNotified: published:item:notifieditem-f599a58c-b26a-4606-99c1-ec14d6e99239:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2020-09-28 23:10:33 |
2020-09-28 23:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:33 | ------------------------------------ 2020-09-28 23:10:33 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "item-id": "item-f599a58c-b26a-4606-99c1-ec14d6e99239" } 2020-09-28 23:10:33 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f599a58c-b26a-4606-99c1-ec14d6e99239" } 2020-09-28 23:10:33 | [Mutex] received everything. 2020-09-28 23:10:33 | [Mutex] isItemNotified: retracted:item:notifieditem-f599a58c-b26a-4606-99c1-ec14d6e99239:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.035s |
2020-09-28 23:10:33 |
2020-09-28 23:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:33 | ------------------------------------ 2020-09-28 23:10:33 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "item-id": "item-f599a58c-b26a-4606-99c1-ec14d6e99239" } 2020-09-28 23:10:33 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "item-id": "item-f599a58c-b26a-4606-99c1-ec14d6e99239", "item": [ "<item id=\"item-f599a58c-b26a-4606-99c1-ec14d6e99239\"><test>item-f599a58c-b26a-4606-99c1-ec14d6e99239</test></item>" ] } 2020-09-28 23:10:33 | [Mutex] notify: [retrieved:item:item-f599a58c-b26a-4606-99c1-ec14d6e99239:payload-matches:true:localhost] 2020-09-28 23:10:33 | [Mutex] received everything. 2020-09-28 23:10:33 | [Mutex] isItemNotified: retrieved:item:item-f599a58c-b26a-4606-99c1-ec14d6e99239:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2020-09-28 23:10:33 |
2020-09-28 23:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:33 | ------------------------------------ 2020-09-28 23:10:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-28 23:10:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "node-9189cd64-751f-4d56-aa8f-69bb247e1005", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-28 23:10:33 |
2020-09-28 23:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:33 | ------------------------------------ 2020-09-28 23:10:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-047a8356-b0ea-4450-aea9-8a537e3878f6)" } 2020-09-28 23:10:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-09-28 23:10:32 |
2020-09-28 23:10:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:32 | ------------------------------------ 2020-09-28 23:10:32 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "jids": [ "admin@test-domain.com" ] } 2020-09-28 23:10:32 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-09-28 23:10:33 |
2020-09-28 23:10:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 23:10:33 | ------------------------------------ 2020-09-28 23:10:33 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-047a8356-b0ea-4450-aea9-8a537e3878f6", "jids": [ "admin@test-domain.com" ] } 2020-09-28 23:10:33 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |