Test duration : 8.661s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.087s |
2022-08-29 23:00:45 |
2022-08-29 23:00:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:45 | ------------------------------------ 2022-08-29 23:00:45 | [Mutex] waiting for: [configured:node:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:node-56819af5-9425-4245-8bc7-8cd73c87e21e] 2022-08-29 23:00:45 | [Mutex] received everything. 2022-08-29 23:00:45 | [Mutex] isItemNotified: configured:node:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:node-56819af5-9425-4245-8bc7-8cd73c87e21e :: true 2022-08-29 23:00:46 | [Mutex] waiting for: [received:nodes:05ca9306-8446-4bea-821a-e89a68119a19:localhost] 2022-08-29 23:00:46 | [Mutex] received everything. 2022-08-29 23:00:46 | [Mutex] isItemNotified: received:node:05ca9306-8446-4bea-821a-e89a68119a19:localhost:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:Node 584cebdf-c840-4b6c-8057-6bd4ea0c73f7 :: true 2022-08-29 23:00:46 | [Mutex] waiting for: [received:nodes:8deac80c-17ad-4d27-9a43-7ea885e76c39:localhost] 2022-08-29 23:00:46 | [Mutex] received everything. 2022-08-29 23:00:46 | [Mutex] isItemNotified: received:node:8deac80c-17ad-4d27-9a43-7ea885e76c39:localhost:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:Node 584cebdf-c840-4b6c-8057-6bd4ea0c73f7 :: false |
createNodes | 1.654s |
2022-08-29 23:00:42 |
2022-08-29 23:00:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:42 | ------------------------------------ 2022-08-29 23:00:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "pubsub#title": "Node 584cebdf-c840-4b6c-8057-6bd4ea0c73f7" } 2022-08-29 23:00:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-29 23:00:44 | [Mutex] waiting for: [received:nodes:218154cf-f95b-46ce-a523-9bb2fc860816:localhost] 2022-08-29 23:00:44 | [Mutex] received everything. 2022-08-29 23:00:44 | [Mutex] isItemNotified: received:node:218154cf-f95b-46ce-a523-9bb2fc860816:localhost:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:Node 584cebdf-c840-4b6c-8057-6bd4ea0c73f7 :: true |
createSubnodes | 1.022s |
2022-08-29 23:00:44 |
2022-08-29 23:00:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:44 | ------------------------------------ 2022-08-29 23:00:44 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-56819af5-9425-4245-8bc7-8cd73c87e21e", "pubsub#title": "Node 56819af5-9425-4245-8bc7-8cd73c87e21e" } 2022-08-29 23:00:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-29 23:00:45 | [Mutex] waiting for: [received:nodes:c7c94f29-e7a6-4402-a018-6a793786a177:localhost] 2022-08-29 23:00:45 | [Mutex] waiting for: [received:nodes:c7c94f29-e7a6-4402-a018-6a793786a177:localhost] 2022-08-29 23:00:45 | [Mutex] received everything. 2022-08-29 23:00:45 | [Mutex] isItemNotified: received:node:c7c94f29-e7a6-4402-a018-6a793786a177:localhost:node-56819af5-9425-4245-8bc7-8cd73c87e21e:Node 56819af5-9425-4245-8bc7-8cd73c87e21e :: true |
deleteNodes | 1.023s |
2022-08-29 23:00:50 |
2022-08-29 23:00:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:50 | ------------------------------------ 2022-08-29 23:00:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-56819af5-9425-4245-8bc7-8cd73c87e21e" } 2022-08-29 23:00:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-29 23:00:51 | [Mutex] waiting for: [received:nodes:3224c195-6db9-42c0-808f-8cc223805fe5:localhost] 2022-08-29 23:00:51 | [Mutex] received everything. 2022-08-29 23:00:51 | [Mutex] isItemNotified: received:node:3224c195-6db9-42c0-808f-8cc223805fe5:localhost:node-56819af5-9425-4245-8bc7-8cd73c87e21e:Node 56819af5-9425-4245-8bc7-8cd73c87e21e :: false |
deleteSubnodes | 1.030s |
2022-08-29 23:00:49 |
2022-08-29 23:00:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:49 | ------------------------------------ 2022-08-29 23:00:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7" } 2022-08-29 23:00:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-29 23:00:50 | [Mutex] waiting for: [received:nodes:b35015b8-9e29-4425-b491-d70241a3ff17:localhost] 2022-08-29 23:00:50 | [Mutex] received everything. 2022-08-29 23:00:50 | [Mutex] isItemNotified: received:node:b35015b8-9e29-4425-b491-d70241a3ff17:localhost:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:Node 584cebdf-c840-4b6c-8057-6bd4ea0c73f7 :: false 2022-08-29 23:00:50 | [Mutex] waiting for: [received:nodes:78a63348-ce56-4980-8e29-6527f710247a:localhost] 2022-08-29 23:00:50 | [Mutex] received everything. 2022-08-29 23:00:50 | [Mutex] isItemNotified: received:node:78a63348-ce56-4980-8e29-6527f710247a:localhost:node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7:Node 584cebdf-c840-4b6c-8057-6bd4ea0c73f7 :: false |
publishItemsToNodes | 0.050s |
2022-08-29 23:00:47 |
2022-08-29 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:47 | ------------------------------------ 2022-08-29 23:00:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "entry": "<test>item-401b4949-f8ec-4447-bc94-db4b7798b575</test>", "item-id": "item-401b4949-f8ec-4447-bc94-db4b7798b575" } 2022-08-29 23:00:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-401b4949-f8ec-4447-bc94-db4b7798b575" } 2022-08-29 23:00:47 | [Mutex] waiting for: [published:item:notifieditem-401b4949-f8ec-4447-bc94-db4b7798b575:admin@test-domain.com] 2022-08-29 23:00:47 | [Mutex] received everything. 2022-08-29 23:00:47 | [Mutex] isItemNotified: published:item:notifieditem-401b4949-f8ec-4447-bc94-db4b7798b575:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-08-29 23:00:47 |
2022-08-29 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:47 | ------------------------------------ 2022-08-29 23:00:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "item-id": "item-401b4949-f8ec-4447-bc94-db4b7798b575" } 2022-08-29 23:00:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-401b4949-f8ec-4447-bc94-db4b7798b575" } 2022-08-29 23:00:47 | [Mutex] received everything. 2022-08-29 23:00:47 | [Mutex] isItemNotified: retracted:item:notifieditem-401b4949-f8ec-4447-bc94-db4b7798b575:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.085s |
2022-08-29 23:00:47 |
2022-08-29 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:47 | ------------------------------------ 2022-08-29 23:00:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "item-id": "item-401b4949-f8ec-4447-bc94-db4b7798b575" } 2022-08-29 23:00:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "item-id": "item-401b4949-f8ec-4447-bc94-db4b7798b575", "item": [ "<item id=\"item-401b4949-f8ec-4447-bc94-db4b7798b575\"><test>item-401b4949-f8ec-4447-bc94-db4b7798b575</test></item>" ] } 2022-08-29 23:00:47 | [Mutex] notify: [retrieved:item:item-401b4949-f8ec-4447-bc94-db4b7798b575:payload-matches:true:localhost] 2022-08-29 23:00:47 | [Mutex] received everything. 2022-08-29 23:00:47 | [Mutex] isItemNotified: retrieved:item:item-401b4949-f8ec-4447-bc94-db4b7798b575:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-08-29 23:00:47 |
2022-08-29 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:47 | ------------------------------------ 2022-08-29 23:00:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-29 23:00:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-56819af5-9425-4245-8bc7-8cd73c87e21e", "test", "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-29 23:00:47 |
2022-08-29 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:47 | ------------------------------------ 2022-08-29 23:00:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7)" } 2022-08-29 23:00:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-29 23:00:46 |
2022-08-29 23:00:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:46 | ------------------------------------ 2022-08-29 23:00:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "jids": [ "admin@test-domain.com" ] } 2022-08-29 23:00:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-08-29 23:00:47 |
2022-08-29 23:00:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-29 23:00:47 | ------------------------------------ 2022-08-29 23:00:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-584cebdf-c840-4b6c-8057-6bd4ea0c73f7", "jids": [ "admin@test-domain.com" ] } 2022-08-29 23:00:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |