Test duration : 8.640s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.083s |
2022-06-02 22:39:12 |
2022-06-02 22:39:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:12 | ------------------------------------ 2022-06-02 22:39:12 | [Mutex] waiting for: [configured:node:node-83a27fd5-d449-4a85-800f-ac94721d0207:node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec] 2022-06-02 22:39:12 | [Mutex] received everything. 2022-06-02 22:39:12 | [Mutex] isItemNotified: configured:node:node-83a27fd5-d449-4a85-800f-ac94721d0207:node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec :: true 2022-06-02 22:39:13 | [Mutex] waiting for: [received:nodes:fb667149-5494-4025-ad40-90e515da4237:localhost] 2022-06-02 22:39:13 | [Mutex] received everything. 2022-06-02 22:39:13 | [Mutex] isItemNotified: received:node:fb667149-5494-4025-ad40-90e515da4237:localhost:node-83a27fd5-d449-4a85-800f-ac94721d0207:Node 83a27fd5-d449-4a85-800f-ac94721d0207 :: true 2022-06-02 22:39:13 | [Mutex] waiting for: [received:nodes:fd4d056e-9bcb-4443-9005-7f17c40958c9:localhost] 2022-06-02 22:39:13 | [Mutex] received everything. 2022-06-02 22:39:13 | [Mutex] isItemNotified: received:node:fd4d056e-9bcb-4443-9005-7f17c40958c9:localhost:node-83a27fd5-d449-4a85-800f-ac94721d0207:Node 83a27fd5-d449-4a85-800f-ac94721d0207 :: false |
createNodes | 1.572s |
2022-06-02 22:39:10 |
2022-06-02 22:39:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:10 | ------------------------------------ 2022-06-02 22:39:10 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "pubsub#title": "Node 83a27fd5-d449-4a85-800f-ac94721d0207" } 2022-06-02 22:39:10 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-02 22:39:11 | [Mutex] waiting for: [received:nodes:14d82a74-cb89-458b-94a6-a547b6e21587:localhost] 2022-06-02 22:39:11 | [Mutex] received everything. 2022-06-02 22:39:11 | [Mutex] isItemNotified: received:node:14d82a74-cb89-458b-94a6-a547b6e21587:localhost:node-83a27fd5-d449-4a85-800f-ac94721d0207:Node 83a27fd5-d449-4a85-800f-ac94721d0207 :: true |
createSubnodes | 1.024s |
2022-06-02 22:39:11 |
2022-06-02 22:39:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:11 | ------------------------------------ 2022-06-02 22:39:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec", "pubsub#title": "Node dd4380f0-67e7-40ed-9132-ec443fc0b8ec" } 2022-06-02 22:39:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-02 22:39:12 | [Mutex] waiting for: [received:nodes:c6e94e2f-ab7a-4156-ac0e-29628c9a4b63:localhost] 2022-06-02 22:39:12 | [Mutex] received everything. 2022-06-02 22:39:12 | [Mutex] isItemNotified: received:node:c6e94e2f-ab7a-4156-ac0e-29628c9a4b63:localhost:node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec:Node dd4380f0-67e7-40ed-9132-ec443fc0b8ec :: true |
deleteNodes | 1.020s |
2022-06-02 22:39:17 |
2022-06-02 22:39:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:17 | ------------------------------------ 2022-06-02 22:39:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec" } 2022-06-02 22:39:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-02 22:39:18 | [Mutex] waiting for: [received:nodes:53a21dd8-76b6-4fc8-87fe-2a14b67310a9:localhost] 2022-06-02 22:39:18 | [Mutex] received everything. 2022-06-02 22:39:18 | [Mutex] isItemNotified: received:node:53a21dd8-76b6-4fc8-87fe-2a14b67310a9:localhost:node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec:Node dd4380f0-67e7-40ed-9132-ec443fc0b8ec :: false |
deleteSubnodes | 1.024s |
2022-06-02 22:39:16 |
2022-06-02 22:39:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:16 | ------------------------------------ 2022-06-02 22:39:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207" } 2022-06-02 22:39:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-02 22:39:17 | [Mutex] waiting for: [received:nodes:651fce99-145c-4f70-815f-ac04f129e021:localhost] 2022-06-02 22:39:17 | [Mutex] received everything. 2022-06-02 22:39:17 | [Mutex] isItemNotified: received:node:651fce99-145c-4f70-815f-ac04f129e021:localhost:node-83a27fd5-d449-4a85-800f-ac94721d0207:Node 83a27fd5-d449-4a85-800f-ac94721d0207 :: false 2022-06-02 22:39:17 | [Mutex] waiting for: [received:nodes:dbc2859e-7570-4504-b753-9c508975d5b3:localhost] 2022-06-02 22:39:17 | [Mutex] received everything. 2022-06-02 22:39:17 | [Mutex] isItemNotified: received:node:dbc2859e-7570-4504-b753-9c508975d5b3:localhost:node-83a27fd5-d449-4a85-800f-ac94721d0207:Node 83a27fd5-d449-4a85-800f-ac94721d0207 :: false |
publishItemsToNodes | 0.053s |
2022-06-02 22:39:14 |
2022-06-02 22:39:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:14 | ------------------------------------ 2022-06-02 22:39:14 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "entry": "<test>item-c09494a7-c41c-4d51-96ff-e20d626f8157</test>", "item-id": "item-c09494a7-c41c-4d51-96ff-e20d626f8157" } 2022-06-02 22:39:14 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c09494a7-c41c-4d51-96ff-e20d626f8157" } 2022-06-02 22:39:14 | [Mutex] waiting for: [published:item:notifieditem-c09494a7-c41c-4d51-96ff-e20d626f8157:admin@test-domain.com] 2022-06-02 22:39:14 | [Mutex] received everything. 2022-06-02 22:39:14 | [Mutex] isItemNotified: published:item:notifieditem-c09494a7-c41c-4d51-96ff-e20d626f8157:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-06-02 22:39:14 |
2022-06-02 22:39:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:14 | ------------------------------------ 2022-06-02 22:39:14 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "item-id": "item-c09494a7-c41c-4d51-96ff-e20d626f8157" } 2022-06-02 22:39:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c09494a7-c41c-4d51-96ff-e20d626f8157" } 2022-06-02 22:39:15 | [Mutex] received everything. 2022-06-02 22:39:15 | [Mutex] isItemNotified: retracted:item:notifieditem-c09494a7-c41c-4d51-96ff-e20d626f8157:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.027s |
2022-06-02 22:39:14 |
2022-06-02 22:39:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:14 | ------------------------------------ 2022-06-02 22:39:14 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "item-id": "item-c09494a7-c41c-4d51-96ff-e20d626f8157" } 2022-06-02 22:39:14 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "item-id": "item-c09494a7-c41c-4d51-96ff-e20d626f8157", "item": [ "<item id=\"item-c09494a7-c41c-4d51-96ff-e20d626f8157\"><test>item-c09494a7-c41c-4d51-96ff-e20d626f8157</test></item>" ] } 2022-06-02 22:39:14 | [Mutex] notify: [retrieved:item:item-c09494a7-c41c-4d51-96ff-e20d626f8157:payload-matches:true:localhost] 2022-06-02 22:39:14 | [Mutex] received everything. 2022-06-02 22:39:14 | [Mutex] isItemNotified: retrieved:item:item-c09494a7-c41c-4d51-96ff-e20d626f8157:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-02 22:39:14 |
2022-06-02 22:39:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:14 | ------------------------------------ 2022-06-02 22:39:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-02 22:39:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-83a27fd5-d449-4a85-800f-ac94721d0207", "node-dd4380f0-67e7-40ed-9132-ec443fc0b8ec" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-06-02 22:39:14 |
2022-06-02 22:39:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:14 | ------------------------------------ 2022-06-02 22:39:14 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-83a27fd5-d449-4a85-800f-ac94721d0207)" } 2022-06-02 22:39:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-06-02 22:39:13 |
2022-06-02 22:39:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:13 | ------------------------------------ 2022-06-02 22:39:13 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "jids": [ "admin@test-domain.com" ] } 2022-06-02 22:39:13 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.139s |
2022-06-02 22:39:15 |
2022-06-02 22:39:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-02 22:39:15 | ------------------------------------ 2022-06-02 22:39:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-83a27fd5-d449-4a85-800f-ac94721d0207", "jids": [ "admin@test-domain.com" ] } 2022-06-02 22:39:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |