Test duration : 9.296s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.162s |
2020-10-21 22:32:32 |
2020-10-21 22:32:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:32 | ------------------------------------ 2020-10-21 22:32:32 | [Mutex] waiting for: [configured:node:node-9b46a8f5-0126-4704-ab95-465ed7314196:node-3a61ec5c-bb9e-4d19-8f03-6267de070aec] 2020-10-21 22:32:32 | [Mutex] received everything. 2020-10-21 22:32:32 | [Mutex] isItemNotified: configured:node:node-9b46a8f5-0126-4704-ab95-465ed7314196:node-3a61ec5c-bb9e-4d19-8f03-6267de070aec :: true 2020-10-21 22:32:33 | [Mutex] waiting for: [received:nodes:ddd6e61f-3042-40de-9d38-f9b97018e586:localhost] 2020-10-21 22:32:33 | [Mutex] received everything. 2020-10-21 22:32:33 | [Mutex] isItemNotified: received:node:ddd6e61f-3042-40de-9d38-f9b97018e586:localhost:node-9b46a8f5-0126-4704-ab95-465ed7314196:Node 9b46a8f5-0126-4704-ab95-465ed7314196 :: true 2020-10-21 22:32:33 | [Mutex] waiting for: [received:nodes:7a6011ae-1f90-4886-8a73-eeba4d99af43:localhost] 2020-10-21 22:32:33 | [Mutex] received everything. 2020-10-21 22:32:33 | [Mutex] isItemNotified: received:node:7a6011ae-1f90-4886-8a73-eeba4d99af43:localhost:node-9b46a8f5-0126-4704-ab95-465ed7314196:Node 9b46a8f5-0126-4704-ab95-465ed7314196 :: false |
createNodes | 1.771s |
2020-10-21 22:32:29 |
2020-10-21 22:32:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:29 | ------------------------------------ 2020-10-21 22:32:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "pubsub#title": "Node 9b46a8f5-0126-4704-ab95-465ed7314196" } 2020-10-21 22:32:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:32:31 | [Mutex] waiting for: [received:nodes:a424372e-6c8a-4c43-9d70-74516b42ca3d:localhost] 2020-10-21 22:32:31 | [Mutex] received everything. 2020-10-21 22:32:31 | [Mutex] isItemNotified: received:node:a424372e-6c8a-4c43-9d70-74516b42ca3d:localhost:node-9b46a8f5-0126-4704-ab95-465ed7314196:Node 9b46a8f5-0126-4704-ab95-465ed7314196 :: true |
createSubnodes | 1.029s |
2020-10-21 22:32:31 |
2020-10-21 22:32:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:31 | ------------------------------------ 2020-10-21 22:32:31 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-3a61ec5c-bb9e-4d19-8f03-6267de070aec", "pubsub#title": "Node 3a61ec5c-bb9e-4d19-8f03-6267de070aec" } 2020-10-21 22:32:31 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:32:32 | [Mutex] waiting for: [received:nodes:896cb520-a3d9-4752-a2af-b2951fa88599:localhost] 2020-10-21 22:32:32 | [Mutex] received everything. 2020-10-21 22:32:32 | [Mutex] isItemNotified: received:node:896cb520-a3d9-4752-a2af-b2951fa88599:localhost:node-3a61ec5c-bb9e-4d19-8f03-6267de070aec:Node 3a61ec5c-bb9e-4d19-8f03-6267de070aec :: true |
deleteNodes | 1.029s |
2020-10-21 22:32:36 |
2020-10-21 22:32:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:36 | ------------------------------------ 2020-10-21 22:32:36 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3a61ec5c-bb9e-4d19-8f03-6267de070aec" } 2020-10-21 22:32:37 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:32:38 | [Mutex] waiting for: [received:nodes:c21545c7-dd76-42bc-b95b-1a5dae24ec5c:localhost] 2020-10-21 22:32:38 | [Mutex] waiting for: [received:nodes:c21545c7-dd76-42bc-b95b-1a5dae24ec5c:localhost] 2020-10-21 22:32:38 | [Mutex] received everything. 2020-10-21 22:32:38 | [Mutex] isItemNotified: received:node:c21545c7-dd76-42bc-b95b-1a5dae24ec5c:localhost:node-3a61ec5c-bb9e-4d19-8f03-6267de070aec:Node 3a61ec5c-bb9e-4d19-8f03-6267de070aec :: false |
deleteSubnodes | 1.033s |
2020-10-21 22:32:35 |
2020-10-21 22:32:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:35 | ------------------------------------ 2020-10-21 22:32:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196" } 2020-10-21 22:32:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:32:36 | [Mutex] waiting for: [received:nodes:7ebaa391-c665-42d6-9ac4-b76a69dea9e1:localhost] 2020-10-21 22:32:36 | [Mutex] waiting for: [received:nodes:7ebaa391-c665-42d6-9ac4-b76a69dea9e1:localhost] 2020-10-21 22:32:36 | [Mutex] received everything. 2020-10-21 22:32:36 | [Mutex] isItemNotified: received:node:7ebaa391-c665-42d6-9ac4-b76a69dea9e1:localhost:node-9b46a8f5-0126-4704-ab95-465ed7314196:Node 9b46a8f5-0126-4704-ab95-465ed7314196 :: false 2020-10-21 22:32:36 | [Mutex] waiting for: [received:nodes:d8dd0061-aaa8-4923-bad0-1707bc29275e:localhost] 2020-10-21 22:32:36 | [Mutex] received everything. 2020-10-21 22:32:36 | [Mutex] isItemNotified: received:node:d8dd0061-aaa8-4923-bad0-1707bc29275e:localhost:node-9b46a8f5-0126-4704-ab95-465ed7314196:Node 9b46a8f5-0126-4704-ab95-465ed7314196 :: false |
publishItemsToNodes | 0.056s |
2020-10-21 22:32:34 |
2020-10-21 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:34 | ------------------------------------ 2020-10-21 22:32:34 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "entry": "<test>item-90d64d2b-de7f-42b8-a200-d8c5962e18eb</test>", "item-id": "item-90d64d2b-de7f-42b8-a200-d8c5962e18eb" } 2020-10-21 22:32:34 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-90d64d2b-de7f-42b8-a200-d8c5962e18eb" } 2020-10-21 22:32:34 | [Mutex] waiting for: [published:item:notifieditem-90d64d2b-de7f-42b8-a200-d8c5962e18eb:admin@test-domain.com] 2020-10-21 22:32:34 | [Mutex] received everything. 2020-10-21 22:32:34 | [Mutex] isItemNotified: published:item:notifieditem-90d64d2b-de7f-42b8-a200-d8c5962e18eb:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2020-10-21 22:32:34 |
2020-10-21 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:34 | ------------------------------------ 2020-10-21 22:32:34 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "item-id": "item-90d64d2b-de7f-42b8-a200-d8c5962e18eb" } 2020-10-21 22:32:34 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-90d64d2b-de7f-42b8-a200-d8c5962e18eb" } 2020-10-21 22:32:34 | [Mutex] received everything. 2020-10-21 22:32:34 | [Mutex] isItemNotified: retracted:item:notifieditem-90d64d2b-de7f-42b8-a200-d8c5962e18eb:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.097s |
2020-10-21 22:32:34 |
2020-10-21 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:34 | ------------------------------------ 2020-10-21 22:32:34 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "item-id": "item-90d64d2b-de7f-42b8-a200-d8c5962e18eb" } 2020-10-21 22:32:34 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "item-id": "item-90d64d2b-de7f-42b8-a200-d8c5962e18eb", "item": [ "<item id=\"item-90d64d2b-de7f-42b8-a200-d8c5962e18eb\"><test>item-90d64d2b-de7f-42b8-a200-d8c5962e18eb</test></item>" ] } 2020-10-21 22:32:34 | [Mutex] notify: [retrieved:item:item-90d64d2b-de7f-42b8-a200-d8c5962e18eb:payload-matches:true:localhost] 2020-10-21 22:32:34 | [Mutex] received everything. 2020-10-21 22:32:34 | [Mutex] isItemNotified: retrieved:item:item-90d64d2b-de7f-42b8-a200-d8c5962e18eb:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-10-21 22:32:34 |
2020-10-21 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:34 | ------------------------------------ 2020-10-21 22:32:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-21 22:32:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-9b46a8f5-0126-4704-ab95-465ed7314196", "test", "node-3a61ec5c-bb9e-4d19-8f03-6267de070aec" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-21 22:32:34 |
2020-10-21 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:34 | ------------------------------------ 2020-10-21 22:32:34 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9b46a8f5-0126-4704-ab95-465ed7314196)" } 2020-10-21 22:32:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2020-10-21 22:32:33 |
2020-10-21 22:32:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:33 | ------------------------------------ 2020-10-21 22:32:33 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "jids": [ "admin@test-domain.com" ] } 2020-10-21 22:32:33 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-10-21 22:32:34 |
2020-10-21 22:32:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:32:34 | ------------------------------------ 2020-10-21 22:32:34 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9b46a8f5-0126-4704-ab95-465ed7314196", "jids": [ "admin@test-domain.com" ] } 2020-10-21 22:32:34 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |