Test duration : 8.680s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.036s |
2022-04-14 23:16:45 |
2022-04-14 23:16:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:45 | ------------------------------------ 2022-04-14 23:16:45 | [Mutex] waiting for: [configured:node:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:node-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f] 2022-04-14 23:16:45 | [Mutex] received everything. 2022-04-14 23:16:45 | [Mutex] isItemNotified: configured:node:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:node-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f :: true 2022-04-14 23:16:46 | [Mutex] waiting for: [received:nodes:cd6b5384-e2e5-4baa-9580-210a545bdc2a:localhost] 2022-04-14 23:16:46 | [Mutex] received everything. 2022-04-14 23:16:46 | [Mutex] isItemNotified: received:node:cd6b5384-e2e5-4baa-9580-210a545bdc2a:localhost:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:Node ffdc53d0-3730-4993-9f2a-3d3db839e8d2 :: true 2022-04-14 23:16:46 | [Mutex] waiting for: [received:nodes:64830c90-73d3-450f-a547-fae43052d172:localhost] 2022-04-14 23:16:46 | [Mutex] received everything. 2022-04-14 23:16:46 | [Mutex] isItemNotified: received:node:64830c90-73d3-450f-a547-fae43052d172:localhost:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:Node ffdc53d0-3730-4993-9f2a-3d3db839e8d2 :: false |
createNodes | 1.643s |
2022-04-14 23:16:43 |
2022-04-14 23:16:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:43 | ------------------------------------ 2022-04-14 23:16: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-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "pubsub#title": "Node ffdc53d0-3730-4993-9f2a-3d3db839e8d2" } 2022-04-14 23:16:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 23:16:44 | [Mutex] waiting for: [received:nodes:2f18ac99-447f-4bce-86b0-54ba051cbe38:localhost] 2022-04-14 23:16:44 | [Mutex] waiting for: [received:nodes:2f18ac99-447f-4bce-86b0-54ba051cbe38:localhost] 2022-04-14 23:16:44 | [Mutex] received everything. 2022-04-14 23:16:44 | [Mutex] isItemNotified: received:node:2f18ac99-447f-4bce-86b0-54ba051cbe38:localhost:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:Node ffdc53d0-3730-4993-9f2a-3d3db839e8d2 :: true |
createSubnodes | 1.020s |
2022-04-14 23:16:44 |
2022-04-14 23:16:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:44 | ------------------------------------ 2022-04-14 23:16: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-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f", "pubsub#title": "Node 98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f" } 2022-04-14 23:16:44 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 23:16:45 | [Mutex] waiting for: [received:nodes:b9d08cfe-0ab5-4c38-a193-7f2cafb2eaab:localhost] 2022-04-14 23:16:45 | [Mutex] waiting for: [received:nodes:b9d08cfe-0ab5-4c38-a193-7f2cafb2eaab:localhost] 2022-04-14 23:16:45 | [Mutex] waiting for: [received:nodes:b9d08cfe-0ab5-4c38-a193-7f2cafb2eaab:localhost] 2022-04-14 23:16:45 | [Mutex] received everything. 2022-04-14 23:16:45 | [Mutex] isItemNotified: received:node:b9d08cfe-0ab5-4c38-a193-7f2cafb2eaab:localhost:node-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f:Node 98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f :: true |
deleteNodes | 1.017s |
2022-04-14 23:16:50 |
2022-04-14 23:16:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:50 | ------------------------------------ 2022-04-14 23:16:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f" } 2022-04-14 23:16:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 23:16:51 | [Mutex] waiting for: [received:nodes:8108807a-e5d0-4bbc-8d59-6e0a956a36eb:localhost] 2022-04-14 23:16:51 | [Mutex] received everything. 2022-04-14 23:16:51 | [Mutex] isItemNotified: received:node:8108807a-e5d0-4bbc-8d59-6e0a956a36eb:localhost:node-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f:Node 98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f :: false |
deleteSubnodes | 1.023s |
2022-04-14 23:16:49 |
2022-04-14 23:16:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:49 | ------------------------------------ 2022-04-14 23:16:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2" } 2022-04-14 23:16:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-14 23:16:50 | [Mutex] waiting for: [received:nodes:4c803b25-cf8d-485b-bfb5-1a012a3aebdf:localhost] 2022-04-14 23:16:50 | [Mutex] waiting for: [received:nodes:4c803b25-cf8d-485b-bfb5-1a012a3aebdf:localhost] 2022-04-14 23:16:50 | [Mutex] received everything. 2022-04-14 23:16:50 | [Mutex] isItemNotified: received:node:4c803b25-cf8d-485b-bfb5-1a012a3aebdf:localhost:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:Node ffdc53d0-3730-4993-9f2a-3d3db839e8d2 :: false 2022-04-14 23:16:50 | [Mutex] waiting for: [received:nodes:9d6a7a14-f8c0-4d31-97a5-e7f81f1b725f:localhost] 2022-04-14 23:16:50 | [Mutex] received everything. 2022-04-14 23:16:50 | [Mutex] isItemNotified: received:node:9d6a7a14-f8c0-4d31-97a5-e7f81f1b725f:localhost:node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2:Node ffdc53d0-3730-4993-9f2a-3d3db839e8d2 :: false |
publishItemsToNodes | 0.042s |
2022-04-14 23:16:47 |
2022-04-14 23:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:47 | ------------------------------------ 2022-04-14 23:16:47 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "entry": "<test>item-1457aac2-abf8-4c78-9703-29d88fee6e70</test>", "item-id": "item-1457aac2-abf8-4c78-9703-29d88fee6e70" } 2022-04-14 23:16:47 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1457aac2-abf8-4c78-9703-29d88fee6e70" } 2022-04-14 23:16:47 | [Mutex] waiting for: [published:item:notifieditem-1457aac2-abf8-4c78-9703-29d88fee6e70:admin@test-domain.com] 2022-04-14 23:16:47 | [Mutex] received everything. 2022-04-14 23:16:47 | [Mutex] isItemNotified: published:item:notifieditem-1457aac2-abf8-4c78-9703-29d88fee6e70:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-04-14 23:16:48 |
2022-04-14 23:16:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:48 | ------------------------------------ 2022-04-14 23:16:48 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "item-id": "item-1457aac2-abf8-4c78-9703-29d88fee6e70" } 2022-04-14 23:16:48 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1457aac2-abf8-4c78-9703-29d88fee6e70" } 2022-04-14 23:16:48 | [Mutex] received everything. 2022-04-14 23:16:48 | [Mutex] isItemNotified: retracted:item:notifieditem-1457aac2-abf8-4c78-9703-29d88fee6e70:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2022-04-14 23:16:47 |
2022-04-14 23:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:47 | ------------------------------------ 2022-04-14 23:16:47 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "item-id": "item-1457aac2-abf8-4c78-9703-29d88fee6e70" } 2022-04-14 23:16:47 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "item-id": "item-1457aac2-abf8-4c78-9703-29d88fee6e70", "item": [ "<item id=\"item-1457aac2-abf8-4c78-9703-29d88fee6e70\"><test>item-1457aac2-abf8-4c78-9703-29d88fee6e70</test></item>" ] } 2022-04-14 23:16:47 | [Mutex] notify: [retrieved:item:item-1457aac2-abf8-4c78-9703-29d88fee6e70:payload-matches:true:localhost] 2022-04-14 23:16:47 | [Mutex] received everything. 2022-04-14 23:16:47 | [Mutex] isItemNotified: retrieved:item:item-1457aac2-abf8-4c78-9703-29d88fee6e70:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-04-14 23:16:47 |
2022-04-14 23:16:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:47 | ------------------------------------ 2022-04-14 23:16:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-04-14 23:16:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "node-98c4ca9b-aa85-4d94-9c6b-61b622dc2c4f" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-04-14 23:16:48 |
2022-04-14 23:16:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:48 | ------------------------------------ 2022-04-14 23:16:48 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2)" } 2022-04-14 23:16:48 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2022-04-14 23:16:46 |
2022-04-14 23:16:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:46 | ------------------------------------ 2022-04-14 23:16:46 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "jids": [ "admin@test-domain.com" ] } 2022-04-14 23:16:46 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2022-04-14 23:16:48 |
2022-04-14 23:16:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-14 23:16:48 | ------------------------------------ 2022-04-14 23:16:48 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ffdc53d0-3730-4993-9f2a-3d3db839e8d2", "jids": [ "admin@test-domain.com" ] } 2022-04-14 23:16:48 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |