Test duration : 9.272s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.090s |
2020-11-24 08:37:08 |
2020-11-24 08:37:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:08 | ------------------------------------ 2020-11-24 08:37:08 | [Mutex] waiting for: [configured:node:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:node-0773b618-a5d3-4f3a-b7be-d1324634650a] 2020-11-24 08:37:08 | [Mutex] received everything. 2020-11-24 08:37:08 | [Mutex] isItemNotified: configured:node:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:node-0773b618-a5d3-4f3a-b7be-d1324634650a :: true 2020-11-24 08:37:09 | [Mutex] waiting for: [received:nodes:1ec2577e-a8ba-4c6d-8a29-fd474b061b0d:localhost] 2020-11-24 08:37:09 | [Mutex] received everything. 2020-11-24 08:37:09 | [Mutex] isItemNotified: received:node:1ec2577e-a8ba-4c6d-8a29-fd474b061b0d:localhost:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:Node 1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984 :: true 2020-11-24 08:37:09 | [Mutex] waiting for: [received:nodes:b17d3142-cc74-414a-a18d-aa66879fb5e9:localhost] 2020-11-24 08:37:09 | [Mutex] received everything. 2020-11-24 08:37:09 | [Mutex] isItemNotified: received:node:b17d3142-cc74-414a-a18d-aa66879fb5e9:localhost:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:Node 1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984 :: false |
createNodes | 1.696s |
2020-11-24 08:37:05 |
2020-11-24 08:37:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:05 | ------------------------------------ 2020-11-24 08:37:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "pubsub#title": "Node 1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984" } 2020-11-24 08:37:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:37:07 | [Mutex] waiting for: [received:nodes:c3f84944-8bc7-4f07-88ea-6edfd4bb3368:localhost] 2020-11-24 08:37:07 | [Mutex] waiting for: [received:nodes:c3f84944-8bc7-4f07-88ea-6edfd4bb3368:localhost] 2020-11-24 08:37:07 | [Mutex] received everything. 2020-11-24 08:37:07 | [Mutex] isItemNotified: received:node:c3f84944-8bc7-4f07-88ea-6edfd4bb3368:localhost:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:Node 1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984 :: true |
createSubnodes | 1.040s |
2020-11-24 08:37:07 |
2020-11-24 08:37:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:07 | ------------------------------------ 2020-11-24 08:37:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0773b618-a5d3-4f3a-b7be-d1324634650a", "pubsub#title": "Node 0773b618-a5d3-4f3a-b7be-d1324634650a" } 2020-11-24 08:37:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:37:08 | [Mutex] waiting for: [received:nodes:d7d28e37-877d-4e12-8d24-f7ff99c6b86a:localhost] 2020-11-24 08:37:08 | [Mutex] waiting for: [received:nodes:d7d28e37-877d-4e12-8d24-f7ff99c6b86a:localhost] 2020-11-24 08:37:08 | [Mutex] received everything. 2020-11-24 08:37:08 | [Mutex] isItemNotified: received:node:d7d28e37-877d-4e12-8d24-f7ff99c6b86a:localhost:node-0773b618-a5d3-4f3a-b7be-d1324634650a:Node 0773b618-a5d3-4f3a-b7be-d1324634650a :: true |
deleteNodes | 1.034s |
2020-11-24 08:37:12 |
2020-11-24 08:37:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:12 | ------------------------------------ 2020-11-24 08:37:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0773b618-a5d3-4f3a-b7be-d1324634650a" } 2020-11-24 08:37:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:37:13 | [Mutex] waiting for: [received:nodes:77d7e7f7-2f55-4b7b-abf0-4a5ebbd7959d:localhost] 2020-11-24 08:37:13 | [Mutex] received everything. 2020-11-24 08:37:13 | [Mutex] isItemNotified: received:node:77d7e7f7-2f55-4b7b-abf0-4a5ebbd7959d:localhost:node-0773b618-a5d3-4f3a-b7be-d1324634650a:Node 0773b618-a5d3-4f3a-b7be-d1324634650a :: false |
deleteSubnodes | 1.034s |
2020-11-24 08:37:11 |
2020-11-24 08:37:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:11 | ------------------------------------ 2020-11-24 08:37:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984" } 2020-11-24 08:37:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-24 08:37:12 | [Mutex] waiting for: [received:nodes:abeea493-df15-4eb8-8d5e-58e81e9c4981:localhost] 2020-11-24 08:37:12 | [Mutex] waiting for: [received:nodes:abeea493-df15-4eb8-8d5e-58e81e9c4981:localhost] 2020-11-24 08:37:12 | [Mutex] waiting for: [received:nodes:abeea493-df15-4eb8-8d5e-58e81e9c4981:localhost] 2020-11-24 08:37:12 | [Mutex] waiting for: [received:nodes:abeea493-df15-4eb8-8d5e-58e81e9c4981:localhost] 2020-11-24 08:37:12 | [Mutex] received everything. 2020-11-24 08:37:12 | [Mutex] isItemNotified: received:node:abeea493-df15-4eb8-8d5e-58e81e9c4981:localhost:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:Node 1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984 :: false 2020-11-24 08:37:12 | [Mutex] waiting for: [received:nodes:fc1b9145-4237-4537-bbb8-a2bccf64d872:localhost] 2020-11-24 08:37:12 | [Mutex] received everything. 2020-11-24 08:37:12 | [Mutex] isItemNotified: received:node:fc1b9145-4237-4537-bbb8-a2bccf64d872:localhost:node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984:Node 1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984 :: false |
publishItemsToNodes | 0.049s |
2020-11-24 08:37:10 |
2020-11-24 08:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:10 | ------------------------------------ 2020-11-24 08:37:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "entry": "<test>item-0bb15f38-f6d0-456e-b30b-430da5b694ff</test>", "item-id": "item-0bb15f38-f6d0-456e-b30b-430da5b694ff" } 2020-11-24 08:37:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0bb15f38-f6d0-456e-b30b-430da5b694ff" } 2020-11-24 08:37:10 | [Mutex] waiting for: [published:item:notifieditem-0bb15f38-f6d0-456e-b30b-430da5b694ff:admin@test-domain.com] 2020-11-24 08:37:10 | [Mutex] received everything. 2020-11-24 08:37:10 | [Mutex] isItemNotified: published:item:notifieditem-0bb15f38-f6d0-456e-b30b-430da5b694ff:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2020-11-24 08:37:10 |
2020-11-24 08:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:10 | ------------------------------------ 2020-11-24 08:37:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "item-id": "item-0bb15f38-f6d0-456e-b30b-430da5b694ff" } 2020-11-24 08:37:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0bb15f38-f6d0-456e-b30b-430da5b694ff" } 2020-11-24 08:37:10 | [Mutex] received everything. 2020-11-24 08:37:10 | [Mutex] isItemNotified: retracted:item:notifieditem-0bb15f38-f6d0-456e-b30b-430da5b694ff:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.078s |
2020-11-24 08:37:10 |
2020-11-24 08:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:10 | ------------------------------------ 2020-11-24 08:37:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "item-id": "item-0bb15f38-f6d0-456e-b30b-430da5b694ff" } 2020-11-24 08:37:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "item-id": "item-0bb15f38-f6d0-456e-b30b-430da5b694ff", "item": [ "<item id=\"item-0bb15f38-f6d0-456e-b30b-430da5b694ff\"><test>item-0bb15f38-f6d0-456e-b30b-430da5b694ff</test></item>" ] } 2020-11-24 08:37:10 | [Mutex] notify: [retrieved:item:item-0bb15f38-f6d0-456e-b30b-430da5b694ff:payload-matches:true:localhost] 2020-11-24 08:37:10 | [Mutex] received everything. 2020-11-24 08:37:10 | [Mutex] isItemNotified: retrieved:item:item-0bb15f38-f6d0-456e-b30b-430da5b694ff:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.057s |
2020-11-24 08:37:10 |
2020-11-24 08:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:10 | ------------------------------------ 2020-11-24 08:37:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-24 08:37:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-0773b618-a5d3-4f3a-b7be-d1324634650a", "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-11-24 08:37:10 |
2020-11-24 08:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:10 | ------------------------------------ 2020-11-24 08:37:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984)" } 2020-11-24 08:37:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.022s |
2020-11-24 08:37:09 |
2020-11-24 08:37:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:09 | ------------------------------------ 2020-11-24 08:37:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "jids": [ "admin@test-domain.com" ] } 2020-11-24 08:37:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2020-11-24 08:37:10 |
2020-11-24 08:37:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-24 08:37:10 | ------------------------------------ 2020-11-24 08:37:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1d8b53ae-fc42-4923-b2ce-e4ee0c4ee984", "jids": [ "admin@test-domain.com" ] } 2020-11-24 08:37:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |