Test duration : 8.847s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2022-04-13 23:09:17 |
2022-04-13 23:09:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:17 | ------------------------------------ 2022-04-13 23:09:17 | [Mutex] waiting for: [configured:node:node-58ee0630-9faf-4d20-be35-49ddcd62d093:node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c] 2022-04-13 23:09:17 | [Mutex] received everything. 2022-04-13 23:09:17 | [Mutex] isItemNotified: configured:node:node-58ee0630-9faf-4d20-be35-49ddcd62d093:node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c :: true 2022-04-13 23:09:18 | [Mutex] waiting for: [received:nodes:35a9e919-535c-4847-a204-afb17b009a19:localhost] 2022-04-13 23:09:18 | [Mutex] received everything. 2022-04-13 23:09:18 | [Mutex] isItemNotified: received:node:35a9e919-535c-4847-a204-afb17b009a19:localhost:node-58ee0630-9faf-4d20-be35-49ddcd62d093:Node 58ee0630-9faf-4d20-be35-49ddcd62d093 :: true 2022-04-13 23:09:18 | [Mutex] waiting for: [received:nodes:77208090-9481-4af0-a3f8-9c69ba9411eb:localhost] 2022-04-13 23:09:18 | [Mutex] received everything. 2022-04-13 23:09:18 | [Mutex] isItemNotified: received:node:77208090-9481-4af0-a3f8-9c69ba9411eb:localhost:node-58ee0630-9faf-4d20-be35-49ddcd62d093:Node 58ee0630-9faf-4d20-be35-49ddcd62d093 :: false |
createNodes | 1.729s |
2022-04-13 23:09:14 |
2022-04-13 23:09:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:14 | ------------------------------------ 2022-04-13 23:09:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "pubsub#title": "Node 58ee0630-9faf-4d20-be35-49ddcd62d093" } 2022-04-13 23:09:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-13 23:09:16 | [Mutex] waiting for: [received:nodes:5099f119-63ff-47f6-bd2e-b62dc29bf4d6:localhost] 2022-04-13 23:09:16 | [Mutex] received everything. 2022-04-13 23:09:16 | [Mutex] isItemNotified: received:node:5099f119-63ff-47f6-bd2e-b62dc29bf4d6:localhost:node-58ee0630-9faf-4d20-be35-49ddcd62d093:Node 58ee0630-9faf-4d20-be35-49ddcd62d093 :: true |
createSubnodes | 1.020s |
2022-04-13 23:09:16 |
2022-04-13 23:09:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:16 | ------------------------------------ 2022-04-13 23:09:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c", "pubsub#title": "Node f8d3ae33-67ce-4278-a6ac-f2275f617a9c" } 2022-04-13 23:09:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-13 23:09:17 | [Mutex] waiting for: [received:nodes:00114105-4989-45e5-9ff2-63e490f73e7b:localhost] 2022-04-13 23:09:17 | [Mutex] received everything. 2022-04-13 23:09:17 | [Mutex] isItemNotified: received:node:00114105-4989-45e5-9ff2-63e490f73e7b:localhost:node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c:Node f8d3ae33-67ce-4278-a6ac-f2275f617a9c :: true |
deleteNodes | 1.022s |
2022-04-13 23:09:21 |
2022-04-13 23:09:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:21 | ------------------------------------ 2022-04-13 23:09:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c" } 2022-04-13 23:09:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-13 23:09:22 | [Mutex] waiting for: [received:nodes:1ac11016-1046-4dd0-ac5a-738f698dcacb:localhost] 2022-04-13 23:09:22 | [Mutex] received everything. 2022-04-13 23:09:22 | [Mutex] isItemNotified: received:node:1ac11016-1046-4dd0-ac5a-738f698dcacb:localhost:node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c:Node f8d3ae33-67ce-4278-a6ac-f2275f617a9c :: false |
deleteSubnodes | 1.024s |
2022-04-13 23:09:20 |
2022-04-13 23:09:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:20 | ------------------------------------ 2022-04-13 23:09:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093" } 2022-04-13 23:09:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-04-13 23:09:21 | [Mutex] waiting for: [received:nodes:6f5936da-8862-450f-8279-3aad1bd0d5be:localhost] 2022-04-13 23:09:21 | [Mutex] waiting for: [received:nodes:6f5936da-8862-450f-8279-3aad1bd0d5be:localhost] 2022-04-13 23:09:21 | [Mutex] received everything. 2022-04-13 23:09:21 | [Mutex] isItemNotified: received:node:6f5936da-8862-450f-8279-3aad1bd0d5be:localhost:node-58ee0630-9faf-4d20-be35-49ddcd62d093:Node 58ee0630-9faf-4d20-be35-49ddcd62d093 :: false 2022-04-13 23:09:21 | [Mutex] waiting for: [received:nodes:c2eb165c-499f-49db-bd53-8ca946487abd:localhost] 2022-04-13 23:09:21 | [Mutex] received everything. 2022-04-13 23:09:21 | [Mutex] isItemNotified: received:node:c2eb165c-499f-49db-bd53-8ca946487abd:localhost:node-58ee0630-9faf-4d20-be35-49ddcd62d093:Node 58ee0630-9faf-4d20-be35-49ddcd62d093 :: false |
publishItemsToNodes | 0.058s |
2022-04-13 23:09:19 |
2022-04-13 23:09:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:19 | ------------------------------------ 2022-04-13 23:09:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "entry": "<test>item-c11b39f9-58e3-4077-ae28-a8811537a8d8</test>", "item-id": "item-c11b39f9-58e3-4077-ae28-a8811537a8d8" } 2022-04-13 23:09:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c11b39f9-58e3-4077-ae28-a8811537a8d8" } 2022-04-13 23:09:19 | [Mutex] waiting for: [published:item:notifieditem-c11b39f9-58e3-4077-ae28-a8811537a8d8:admin@test-domain.com] 2022-04-13 23:09:19 | [Mutex] received everything. 2022-04-13 23:09:19 | [Mutex] isItemNotified: published:item:notifieditem-c11b39f9-58e3-4077-ae28-a8811537a8d8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.065s |
2022-04-13 23:09:19 |
2022-04-13 23:09:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:19 | ------------------------------------ 2022-04-13 23:09:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "item-id": "item-c11b39f9-58e3-4077-ae28-a8811537a8d8" } 2022-04-13 23:09:19 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c11b39f9-58e3-4077-ae28-a8811537a8d8" } 2022-04-13 23:09:19 | [Mutex] waiting for: [retracted:item:notifieditem-c11b39f9-58e3-4077-ae28-a8811537a8d8:admin@test-domain.com] 2022-04-13 23:09:19 | [Mutex] received everything. 2022-04-13 23:09:19 | [Mutex] isItemNotified: retracted:item:notifieditem-c11b39f9-58e3-4077-ae28-a8811537a8d8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.086s |
2022-04-13 23:09:19 |
2022-04-13 23:09:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:19 | ------------------------------------ 2022-04-13 23:09:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "item-id": "item-c11b39f9-58e3-4077-ae28-a8811537a8d8" } 2022-04-13 23:09:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "item-id": "item-c11b39f9-58e3-4077-ae28-a8811537a8d8", "item": [ "<item id=\"item-c11b39f9-58e3-4077-ae28-a8811537a8d8\"><test>item-c11b39f9-58e3-4077-ae28-a8811537a8d8</test></item>" ] } 2022-04-13 23:09:19 | [Mutex] notify: [retrieved:item:item-c11b39f9-58e3-4077-ae28-a8811537a8d8:payload-matches:true:localhost] 2022-04-13 23:09:19 | [Mutex] received everything. 2022-04-13 23:09:19 | [Mutex] isItemNotified: retrieved:item:item-c11b39f9-58e3-4077-ae28-a8811537a8d8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-04-13 23:09:19 |
2022-04-13 23:09:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:19 | ------------------------------------ 2022-04-13 23:09:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-04-13 23:09:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-f8d3ae33-67ce-4278-a6ac-f2275f617a9c", "test", "node-58ee0630-9faf-4d20-be35-49ddcd62d093" ] } |
retrieveUserSubscriptionsWithRegex | 0.046s |
2022-04-13 23:09:19 |
2022-04-13 23:09:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:19 | ------------------------------------ 2022-04-13 23:09:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-58ee0630-9faf-4d20-be35-49ddcd62d093)" } 2022-04-13 23:09:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.009s |
2022-04-13 23:09:18 |
2022-04-13 23:09:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:18 | ------------------------------------ 2022-04-13 23:09:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "jids": [ "admin@test-domain.com" ] } 2022-04-13 23:09:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.048s |
2022-04-13 23:09:19 |
2022-04-13 23:09:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-04-13 23:09:19 | ------------------------------------ 2022-04-13 23:09:19 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-58ee0630-9faf-4d20-be35-49ddcd62d093", "jids": [ "admin@test-domain.com" ] } 2022-04-13 23:09:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |