Test duration : 8.538s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.141s |
2022-10-10 23:14:15 |
2022-10-10 23:14:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:15 | ------------------------------------ 2022-10-10 23:14:15 | [Mutex] waiting for: [configured:node:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c] 2022-10-10 23:14:15 | [Mutex] received everything. 2022-10-10 23:14:15 | [Mutex] isItemNotified: configured:node:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c :: true 2022-10-10 23:14:16 | [Mutex] waiting for: [received:nodes:34658040-a43d-495c-94f5-3b800156c047:localhost] 2022-10-10 23:14:16 | [Mutex] received everything. 2022-10-10 23:14:16 | [Mutex] isItemNotified: received:node:34658040-a43d-495c-94f5-3b800156c047:localhost:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:Node 2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b :: true 2022-10-10 23:14:16 | [Mutex] waiting for: [received:nodes:29cb7ad3-166b-42c4-b0fd-13f886a65781:localhost] 2022-10-10 23:14:16 | [Mutex] received everything. 2022-10-10 23:14:16 | [Mutex] isItemNotified: received:node:29cb7ad3-166b-42c4-b0fd-13f886a65781:localhost:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:Node 2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b :: false |
createNodes | 1.537s |
2022-10-10 23:14:13 |
2022-10-10 23:14:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:13 | ------------------------------------ 2022-10-10 23:14:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "pubsub#title": "Node 2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b" } 2022-10-10 23:14:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:14:14 | [Mutex] waiting for: [received:nodes:a231e321-8820-479b-975c-ef3c2578f5f0:localhost] 2022-10-10 23:14:14 | [Mutex] received everything. 2022-10-10 23:14:14 | [Mutex] isItemNotified: received:node:a231e321-8820-479b-975c-ef3c2578f5f0:localhost:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:Node 2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b :: true |
createSubnodes | 1.020s |
2022-10-10 23:14:14 |
2022-10-10 23:14:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:14 | ------------------------------------ 2022-10-10 23:14:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c", "pubsub#title": "Node 24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c" } 2022-10-10 23:14:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:14:15 | [Mutex] waiting for: [received:nodes:c13b1bb0-5384-41cb-af0e-3d0a9007b40a:localhost] 2022-10-10 23:14:15 | [Mutex] received everything. 2022-10-10 23:14:15 | [Mutex] isItemNotified: received:node:c13b1bb0-5384-41cb-af0e-3d0a9007b40a:localhost:node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c:Node 24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c :: true |
deleteNodes | 1.021s |
2022-10-10 23:14:20 |
2022-10-10 23:14:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:20 | ------------------------------------ 2022-10-10 23:14:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c" } 2022-10-10 23:14:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:14:21 | [Mutex] waiting for: [received:nodes:e735bb96-7ce2-485e-9bd1-e2078b76cd0f:localhost] 2022-10-10 23:14:21 | [Mutex] received everything. 2022-10-10 23:14:21 | [Mutex] isItemNotified: received:node:e735bb96-7ce2-485e-9bd1-e2078b76cd0f:localhost:node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c:Node 24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c :: false |
deleteSubnodes | 1.026s |
2022-10-10 23:14:19 |
2022-10-10 23:14:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:19 | ------------------------------------ 2022-10-10 23:14:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b" } 2022-10-10 23:14:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-10-10 23:14:20 | [Mutex] waiting for: [received:nodes:a68eb1a2-dd41-43bd-8e8d-f21023b867fc:localhost] 2022-10-10 23:14:20 | [Mutex] waiting for: [received:nodes:a68eb1a2-dd41-43bd-8e8d-f21023b867fc:localhost] 2022-10-10 23:14:20 | [Mutex] received everything. 2022-10-10 23:14:20 | [Mutex] isItemNotified: received:node:a68eb1a2-dd41-43bd-8e8d-f21023b867fc:localhost:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:Node 2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b :: false 2022-10-10 23:14:20 | [Mutex] waiting for: [received:nodes:b02019bd-ebcd-4b8f-bd06-79887c569b68:localhost] 2022-10-10 23:14:20 | [Mutex] received everything. 2022-10-10 23:14:20 | [Mutex] isItemNotified: received:node:b02019bd-ebcd-4b8f-bd06-79887c569b68:localhost:node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b:Node 2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b :: false |
publishItemsToNodes | 0.045s |
2022-10-10 23:14:17 |
2022-10-10 23:14:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:17 | ------------------------------------ 2022-10-10 23:14:17 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "entry": "<test>item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736</test>", "item-id": "item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736" } 2022-10-10 23:14:17 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736" } 2022-10-10 23:14:17 | [Mutex] waiting for: [published:item:notifieditem-0d9790ec-fc9c-48e1-a2d5-776d5ee21736:admin@test-domain.com] 2022-10-10 23:14:17 | [Mutex] received everything. 2022-10-10 23:14:17 | [Mutex] isItemNotified: published:item:notifieditem-0d9790ec-fc9c-48e1-a2d5-776d5ee21736:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-10-10 23:14:18 |
2022-10-10 23:14:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:18 | ------------------------------------ 2022-10-10 23:14:18 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "item-id": "item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736" } 2022-10-10 23:14:18 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736" } 2022-10-10 23:14:18 | [Mutex] received everything. 2022-10-10 23:14:18 | [Mutex] isItemNotified: retracted:item:notifieditem-0d9790ec-fc9c-48e1-a2d5-776d5ee21736:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2022-10-10 23:14:17 |
2022-10-10 23:14:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:17 | ------------------------------------ 2022-10-10 23:14:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "item-id": "item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736" } 2022-10-10 23:14:18 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "item-id": "item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736", "item": [ "<item id=\"item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736\"><test>item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736</test></item>" ] } 2022-10-10 23:14:18 | [Mutex] notify: [retrieved:item:item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736:payload-matches:true:localhost] 2022-10-10 23:14:18 | [Mutex] received everything. 2022-10-10 23:14:18 | [Mutex] isItemNotified: retrieved:item:item-0d9790ec-fc9c-48e1-a2d5-776d5ee21736:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-10-10 23:14:18 |
2022-10-10 23:14:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:18 | ------------------------------------ 2022-10-10 23:14:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-10-10 23:14:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-24f96b21-1eb7-4cc6-bc91-7aa1a90b5b8c", "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-10-10 23:14:18 |
2022-10-10 23:14:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:18 | ------------------------------------ 2022-10-10 23:14:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b)" } 2022-10-10 23:14:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-10-10 23:14:16 |
2022-10-10 23:14:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:16 | ------------------------------------ 2022-10-10 23:14:16 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "jids": [ "admin@test-domain.com" ] } 2022-10-10 23:14:16 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-10-10 23:14:18 |
2022-10-10 23:14:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-10-10 23:14:18 | ------------------------------------ 2022-10-10 23:14:18 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2a9d3cdd-2fb6-4e7f-959c-931d1ca33f6b", "jids": [ "admin@test-domain.com" ] } 2022-10-10 23:14:18 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |