Test duration : 8.985s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.101s |
2021-06-17 22:32:23 |
2021-06-17 22:32:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:23 | ------------------------------------ 2021-06-17 22:32:23 | [Mutex] waiting for: [configured:node:node-029f506b-c235-423a-b927-d96b6fc6b7b0:node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2] 2021-06-17 22:32:23 | [Mutex] received everything. 2021-06-17 22:32:23 | [Mutex] isItemNotified: configured:node:node-029f506b-c235-423a-b927-d96b6fc6b7b0:node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2 :: true 2021-06-17 22:32:24 | [Mutex] waiting for: [received:nodes:87b04f6d-2009-49a4-bc05-8aa099e50037:localhost] 2021-06-17 22:32:24 | [Mutex] received everything. 2021-06-17 22:32:24 | [Mutex] isItemNotified: received:node:87b04f6d-2009-49a4-bc05-8aa099e50037:localhost:node-029f506b-c235-423a-b927-d96b6fc6b7b0:Node 029f506b-c235-423a-b927-d96b6fc6b7b0 :: true 2021-06-17 22:32:24 | [Mutex] waiting for: [received:nodes:83c409cb-aa92-4be7-ac6d-256f9bc8b573:localhost] 2021-06-17 22:32:24 | [Mutex] received everything. 2021-06-17 22:32:24 | [Mutex] isItemNotified: received:node:83c409cb-aa92-4be7-ac6d-256f9bc8b573:localhost:node-029f506b-c235-423a-b927-d96b6fc6b7b0:Node 029f506b-c235-423a-b927-d96b6fc6b7b0 :: false |
createNodes | 1.649s |
2021-06-17 22:32:20 |
2021-06-17 22:32:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:20 | ------------------------------------ 2021-06-17 22:32:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "pubsub#title": "Node 029f506b-c235-423a-b927-d96b6fc6b7b0" } 2021-06-17 22:32:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-17 22:32:22 | [Mutex] waiting for: [received:nodes:125b4cf9-78d9-4bf5-a287-45948b338e58:localhost] 2021-06-17 22:32:22 | [Mutex] waiting for: [received:nodes:125b4cf9-78d9-4bf5-a287-45948b338e58:localhost] 2021-06-17 22:32:22 | [Mutex] received everything. 2021-06-17 22:32:22 | [Mutex] isItemNotified: received:node:125b4cf9-78d9-4bf5-a287-45948b338e58:localhost:node-029f506b-c235-423a-b927-d96b6fc6b7b0:Node 029f506b-c235-423a-b927-d96b6fc6b7b0 :: true |
createSubnodes | 1.027s |
2021-06-17 22:32:22 |
2021-06-17 22:32:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:22 | ------------------------------------ 2021-06-17 22:32:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2", "pubsub#title": "Node e2592e51-daa5-4913-9fcc-c60bf69ac2d2" } 2021-06-17 22:32:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-17 22:32:23 | [Mutex] waiting for: [received:nodes:ffe4d13a-e629-4196-8e38-da504e75abc5:localhost] 2021-06-17 22:32:23 | [Mutex] received everything. 2021-06-17 22:32:23 | [Mutex] isItemNotified: received:node:ffe4d13a-e629-4196-8e38-da504e75abc5:localhost:node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2:Node e2592e51-daa5-4913-9fcc-c60bf69ac2d2 :: true |
deleteNodes | 1.026s |
2021-06-17 22:32:27 |
2021-06-17 22:32:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:27 | ------------------------------------ 2021-06-17 22:32:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2" } 2021-06-17 22:32:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-17 22:32:28 | [Mutex] waiting for: [received:nodes:6e12abe4-2064-4aba-8d48-76cf096a6969:localhost] 2021-06-17 22:32:28 | [Mutex] waiting for: [received:nodes:6e12abe4-2064-4aba-8d48-76cf096a6969:localhost] 2021-06-17 22:32:28 | [Mutex] waiting for: [received:nodes:6e12abe4-2064-4aba-8d48-76cf096a6969:localhost] 2021-06-17 22:32:28 | [Mutex] received everything. 2021-06-17 22:32:28 | [Mutex] isItemNotified: received:node:6e12abe4-2064-4aba-8d48-76cf096a6969:localhost:node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2:Node e2592e51-daa5-4913-9fcc-c60bf69ac2d2 :: false |
deleteSubnodes | 1.028s |
2021-06-17 22:32:26 |
2021-06-17 22:32:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:26 | ------------------------------------ 2021-06-17 22:32:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0" } 2021-06-17 22:32:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-06-17 22:32:27 | [Mutex] waiting for: [received:nodes:f1062993-f2eb-4c37-a086-90ffe75923ae:localhost] 2021-06-17 22:32:27 | [Mutex] waiting for: [received:nodes:f1062993-f2eb-4c37-a086-90ffe75923ae:localhost] 2021-06-17 22:32:27 | [Mutex] received everything. 2021-06-17 22:32:27 | [Mutex] isItemNotified: received:node:f1062993-f2eb-4c37-a086-90ffe75923ae:localhost:node-029f506b-c235-423a-b927-d96b6fc6b7b0:Node 029f506b-c235-423a-b927-d96b6fc6b7b0 :: false 2021-06-17 22:32:27 | [Mutex] waiting for: [received:nodes:b1164053-db56-46e8-8128-9799e3284878:localhost] 2021-06-17 22:32:27 | [Mutex] received everything. 2021-06-17 22:32:27 | [Mutex] isItemNotified: received:node:b1164053-db56-46e8-8128-9799e3284878:localhost:node-029f506b-c235-423a-b927-d96b6fc6b7b0:Node 029f506b-c235-423a-b927-d96b6fc6b7b0 :: false |
publishItemsToNodes | 0.037s |
2021-06-17 22:32:25 |
2021-06-17 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:25 | ------------------------------------ 2021-06-17 22:32:25 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "entry": "<test>item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43</test>", "item-id": "item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43" } 2021-06-17 22:32:25 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43" } 2021-06-17 22:32:25 | [Mutex] waiting for: [published:item:notifieditem-922b8dcc-ed49-4143-8bc7-94bd4e88ca43:admin@test-domain.com] 2021-06-17 22:32:25 | [Mutex] received everything. 2021-06-17 22:32:25 | [Mutex] isItemNotified: published:item:notifieditem-922b8dcc-ed49-4143-8bc7-94bd4e88ca43:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2021-06-17 22:32:25 |
2021-06-17 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:25 | ------------------------------------ 2021-06-17 22:32:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "item-id": "item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43" } 2021-06-17 22:32:25 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43" } 2021-06-17 22:32:25 | [Mutex] waiting for: [retracted:item:notifieditem-922b8dcc-ed49-4143-8bc7-94bd4e88ca43:admin@test-domain.com] 2021-06-17 22:32:25 | [Mutex] received everything. 2021-06-17 22:32:25 | [Mutex] isItemNotified: retracted:item:notifieditem-922b8dcc-ed49-4143-8bc7-94bd4e88ca43:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2021-06-17 22:32:25 |
2021-06-17 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:25 | ------------------------------------ 2021-06-17 22:32:25 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "item-id": "item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43" } 2021-06-17 22:32:25 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "item-id": "item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43", "item": [ "<item id=\"item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43\"><test>item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43</test></item>" ] } 2021-06-17 22:32:25 | [Mutex] notify: [retrieved:item:item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43:payload-matches:true:localhost] 2021-06-17 22:32:25 | [Mutex] received everything. 2021-06-17 22:32:25 | [Mutex] isItemNotified: retrieved:item:item-922b8dcc-ed49-4143-8bc7-94bd4e88ca43:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-06-17 22:32:25 |
2021-06-17 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:25 | ------------------------------------ 2021-06-17 22:32:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-06-17 22:32:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-e2592e51-daa5-4913-9fcc-c60bf69ac2d2", "node-029f506b-c235-423a-b927-d96b6fc6b7b0" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-06-17 22:32:25 |
2021-06-17 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:25 | ------------------------------------ 2021-06-17 22:32:25 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-029f506b-c235-423a-b927-d96b6fc6b7b0)" } 2021-06-17 22:32:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-06-17 22:32:24 |
2021-06-17 22:32:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:24 | ------------------------------------ 2021-06-17 22:32:24 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "jids": [ "admin@test-domain.com" ] } 2021-06-17 22:32:24 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.122s |
2021-06-17 22:32:25 |
2021-06-17 22:32:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-06-17 22:32:25 | ------------------------------------ 2021-06-17 22:32:25 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-029f506b-c235-423a-b927-d96b6fc6b7b0", "jids": [ "admin@test-domain.com" ] } 2021-06-17 22:32:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |