Test duration : 8.718s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.089s |
2022-06-25 22:33:29 |
2022-06-25 22:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:29 | ------------------------------------ 2022-06-25 22:33:29 | [Mutex] waiting for: [configured:node:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:node-aacde1b1-6594-4acc-acf6-8c3422717638] 2022-06-25 22:33:29 | [Mutex] received everything. 2022-06-25 22:33:29 | [Mutex] isItemNotified: configured:node:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:node-aacde1b1-6594-4acc-acf6-8c3422717638 :: true 2022-06-25 22:33:30 | [Mutex] waiting for: [received:nodes:b90c0170-2329-49e1-a460-ffc6a1a322a2:localhost] 2022-06-25 22:33:30 | [Mutex] received everything. 2022-06-25 22:33:30 | [Mutex] isItemNotified: received:node:b90c0170-2329-49e1-a460-ffc6a1a322a2:localhost:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:Node 307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e :: true 2022-06-25 22:33:30 | [Mutex] waiting for: [received:nodes:aa89127e-2d50-4234-90a3-af697eafd296:localhost] 2022-06-25 22:33:30 | [Mutex] received everything. 2022-06-25 22:33:30 | [Mutex] isItemNotified: received:node:aa89127e-2d50-4234-90a3-af697eafd296:localhost:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:Node 307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e :: false |
createNodes | 1.604s |
2022-06-25 22:33:26 |
2022-06-25 22:33:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:26 | ------------------------------------ 2022-06-25 22:33:27 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "pubsub#title": "Node 307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e" } 2022-06-25 22:33:27 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:33:28 | [Mutex] waiting for: [received:nodes:d80a1e64-58ca-4ad7-b7fe-d5e1c1904e05:localhost] 2022-06-25 22:33:28 | [Mutex] received everything. 2022-06-25 22:33:28 | [Mutex] isItemNotified: received:node:d80a1e64-58ca-4ad7-b7fe-d5e1c1904e05:localhost:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:Node 307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e :: true |
createSubnodes | 1.024s |
2022-06-25 22:33:28 |
2022-06-25 22:33:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:28 | ------------------------------------ 2022-06-25 22:33:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-aacde1b1-6594-4acc-acf6-8c3422717638", "pubsub#title": "Node aacde1b1-6594-4acc-acf6-8c3422717638" } 2022-06-25 22:33:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:33:29 | [Mutex] waiting for: [received:nodes:ce67c5b6-1960-40a6-87b2-0c4bf795fa9a:localhost] 2022-06-25 22:33:29 | [Mutex] waiting for: [received:nodes:ce67c5b6-1960-40a6-87b2-0c4bf795fa9a:localhost] 2022-06-25 22:33:29 | [Mutex] received everything. 2022-06-25 22:33:29 | [Mutex] isItemNotified: received:node:ce67c5b6-1960-40a6-87b2-0c4bf795fa9a:localhost:node-aacde1b1-6594-4acc-acf6-8c3422717638:Node aacde1b1-6594-4acc-acf6-8c3422717638 :: true |
deleteNodes | 1.017s |
2022-06-25 22:33:33 |
2022-06-25 22:33:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:33 | ------------------------------------ 2022-06-25 22:33:33 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-aacde1b1-6594-4acc-acf6-8c3422717638" } 2022-06-25 22:33:33 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:33:34 | [Mutex] waiting for: [received:nodes:85901cd5-c05a-41b7-8e36-c4a884e48ba8:localhost] 2022-06-25 22:33:34 | [Mutex] waiting for: [received:nodes:85901cd5-c05a-41b7-8e36-c4a884e48ba8:localhost] 2022-06-25 22:33:34 | [Mutex] received everything. 2022-06-25 22:33:34 | [Mutex] isItemNotified: received:node:85901cd5-c05a-41b7-8e36-c4a884e48ba8:localhost:node-aacde1b1-6594-4acc-acf6-8c3422717638:Node aacde1b1-6594-4acc-acf6-8c3422717638 :: false |
deleteSubnodes | 1.027s |
2022-06-25 22:33:32 |
2022-06-25 22:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:32 | ------------------------------------ 2022-06-25 22:33:32 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e" } 2022-06-25 22:33:32 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-25 22:33:33 | [Mutex] waiting for: [received:nodes:b20613ba-f431-40e6-be47-2540a994b405:localhost] 2022-06-25 22:33:33 | [Mutex] received everything. 2022-06-25 22:33:33 | [Mutex] isItemNotified: received:node:b20613ba-f431-40e6-be47-2540a994b405:localhost:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:Node 307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e :: false 2022-06-25 22:33:33 | [Mutex] waiting for: [received:nodes:52771e4a-a0e9-425f-b633-621f079421a8:localhost] 2022-06-25 22:33:33 | [Mutex] received everything. 2022-06-25 22:33:33 | [Mutex] isItemNotified: received:node:52771e4a-a0e9-425f-b633-621f079421a8:localhost:node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e:Node 307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e :: false |
publishItemsToNodes | 0.035s |
2022-06-25 22:33:31 |
2022-06-25 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:31 | ------------------------------------ 2022-06-25 22:33:31 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "entry": "<test>item-dd13bc05-0a23-4d3f-b046-d6af47b99aed</test>", "item-id": "item-dd13bc05-0a23-4d3f-b046-d6af47b99aed" } 2022-06-25 22:33:31 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dd13bc05-0a23-4d3f-b046-d6af47b99aed" } 2022-06-25 22:33:31 | [Mutex] waiting for: [published:item:notifieditem-dd13bc05-0a23-4d3f-b046-d6af47b99aed:admin@test-domain.com] 2022-06-25 22:33:31 | [Mutex] received everything. 2022-06-25 22:33:31 | [Mutex] isItemNotified: published:item:notifieditem-dd13bc05-0a23-4d3f-b046-d6af47b99aed:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-06-25 22:33:31 |
2022-06-25 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:31 | ------------------------------------ 2022-06-25 22:33:31 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "item-id": "item-dd13bc05-0a23-4d3f-b046-d6af47b99aed" } 2022-06-25 22:33:31 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dd13bc05-0a23-4d3f-b046-d6af47b99aed" } 2022-06-25 22:33:31 | [Mutex] received everything. 2022-06-25 22:33:31 | [Mutex] isItemNotified: retracted:item:notifieditem-dd13bc05-0a23-4d3f-b046-d6af47b99aed:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2022-06-25 22:33:31 |
2022-06-25 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:31 | ------------------------------------ 2022-06-25 22:33:31 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "item-id": "item-dd13bc05-0a23-4d3f-b046-d6af47b99aed" } 2022-06-25 22:33:31 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "item-id": "item-dd13bc05-0a23-4d3f-b046-d6af47b99aed", "item": [ "<item id=\"item-dd13bc05-0a23-4d3f-b046-d6af47b99aed\"><test>item-dd13bc05-0a23-4d3f-b046-d6af47b99aed</test></item>" ] } 2022-06-25 22:33:31 | [Mutex] notify: [retrieved:item:item-dd13bc05-0a23-4d3f-b046-d6af47b99aed:payload-matches:true:localhost] 2022-06-25 22:33:31 | [Mutex] received everything. 2022-06-25 22:33:31 | [Mutex] isItemNotified: retrieved:item:item-dd13bc05-0a23-4d3f-b046-d6af47b99aed:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-06-25 22:33:31 |
2022-06-25 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:31 | ------------------------------------ 2022-06-25 22:33:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-25 22:33:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-aacde1b1-6594-4acc-acf6-8c3422717638", "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-25 22:33:31 |
2022-06-25 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:31 | ------------------------------------ 2022-06-25 22:33:31 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e)" } 2022-06-25 22:33:31 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-06-25 22:33:30 |
2022-06-25 22:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:30 | ------------------------------------ 2022-06-25 22:33:30 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "jids": [ "admin@test-domain.com" ] } 2022-06-25 22:33:30 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2022-06-25 22:33:31 |
2022-06-25 22:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-25 22:33:31 | ------------------------------------ 2022-06-25 22:33:31 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-307c04e9-9fe5-48bc-84f8-5d9d6dc13d3e", "jids": [ "admin@test-domain.com" ] } 2022-06-25 22:33:31 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |