Test duration : 8.701s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2022-11-16 22:07:04 |
2022-11-16 22:07:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:04 | ------------------------------------ 2022-11-16 22:07:04 | [Mutex] waiting for: [configured:node:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57] 2022-11-16 22:07:04 | [Mutex] received everything. 2022-11-16 22:07:04 | [Mutex] isItemNotified: configured:node:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57 :: true 2022-11-16 22:07:05 | [Mutex] waiting for: [received:nodes:64a15b0b-5877-4f6a-b4a3-09801342ecf2:localhost] 2022-11-16 22:07:05 | [Mutex] received everything. 2022-11-16 22:07:05 | [Mutex] isItemNotified: received:node:64a15b0b-5877-4f6a-b4a3-09801342ecf2:localhost:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:Node dcfe181a-492f-4d06-b1a7-23983eb2cf06 :: true 2022-11-16 22:07:05 | [Mutex] waiting for: [received:nodes:4fa0f6be-3961-4097-8f13-4c5b3c1ceaa8:localhost] 2022-11-16 22:07:05 | [Mutex] received everything. 2022-11-16 22:07:05 | [Mutex] isItemNotified: received:node:4fa0f6be-3961-4097-8f13-4c5b3c1ceaa8:localhost:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:Node dcfe181a-492f-4d06-b1a7-23983eb2cf06 :: false |
createNodes | 1.526s |
2022-11-16 22:07:02 |
2022-11-16 22:07:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:02 | ------------------------------------ 2022-11-16 22:07:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "pubsub#title": "Node dcfe181a-492f-4d06-b1a7-23983eb2cf06" } 2022-11-16 22:07:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 22:07:03 | [Mutex] waiting for: [received:nodes:9a8ac66e-500d-4da6-85c1-860ee3154893:localhost] 2022-11-16 22:07:03 | [Mutex] waiting for: [received:nodes:9a8ac66e-500d-4da6-85c1-860ee3154893:localhost] 2022-11-16 22:07:03 | [Mutex] received everything. 2022-11-16 22:07:03 | [Mutex] isItemNotified: received:node:9a8ac66e-500d-4da6-85c1-860ee3154893:localhost:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:Node dcfe181a-492f-4d06-b1a7-23983eb2cf06 :: true |
createSubnodes | 1.020s |
2022-11-16 22:07:03 |
2022-11-16 22:07:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:03 | ------------------------------------ 2022-11-16 22:07:03 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57", "pubsub#title": "Node a1b79f92-87ee-4aac-b91b-06b60c7e2a57" } 2022-11-16 22:07:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 22:07:04 | [Mutex] waiting for: [received:nodes:039b949d-7d47-4312-9170-576c88d55548:localhost] 2022-11-16 22:07:04 | [Mutex] received everything. 2022-11-16 22:07:04 | [Mutex] isItemNotified: received:node:039b949d-7d47-4312-9170-576c88d55548:localhost:node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57:Node a1b79f92-87ee-4aac-b91b-06b60c7e2a57 :: true |
deleteNodes | 1.021s |
2022-11-16 22:07:09 |
2022-11-16 22:07:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:09 | ------------------------------------ 2022-11-16 22:07:09 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57" } 2022-11-16 22:07:09 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 22:07:10 | [Mutex] waiting for: [received:nodes:fa6b81ca-b357-4150-812e-b57bb98a7aed:localhost] 2022-11-16 22:07:10 | [Mutex] received everything. 2022-11-16 22:07:10 | [Mutex] isItemNotified: received:node:fa6b81ca-b357-4150-812e-b57bb98a7aed:localhost:node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57:Node a1b79f92-87ee-4aac-b91b-06b60c7e2a57 :: false |
deleteSubnodes | 1.026s |
2022-11-16 22:07:08 |
2022-11-16 22:07:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:08 | ------------------------------------ 2022-11-16 22:07:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06" } 2022-11-16 22:07:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-11-16 22:07:09 | [Mutex] waiting for: [received:nodes:1fb723aa-3128-4db1-ace8-d3e4b298f3d7:localhost] 2022-11-16 22:07:09 | [Mutex] waiting for: [received:nodes:1fb723aa-3128-4db1-ace8-d3e4b298f3d7:localhost] 2022-11-16 22:07:09 | [Mutex] waiting for: [received:nodes:1fb723aa-3128-4db1-ace8-d3e4b298f3d7:localhost] 2022-11-16 22:07:09 | [Mutex] waiting for: [received:nodes:1fb723aa-3128-4db1-ace8-d3e4b298f3d7:localhost] 2022-11-16 22:07:09 | [Mutex] received everything. 2022-11-16 22:07:09 | [Mutex] isItemNotified: received:node:1fb723aa-3128-4db1-ace8-d3e4b298f3d7:localhost:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:Node dcfe181a-492f-4d06-b1a7-23983eb2cf06 :: false 2022-11-16 22:07:09 | [Mutex] waiting for: [received:nodes:2a4e1741-2b51-43c2-b257-f4e9b9e815eb:localhost] 2022-11-16 22:07:09 | [Mutex] received everything. 2022-11-16 22:07:09 | [Mutex] isItemNotified: received:node:2a4e1741-2b51-43c2-b257-f4e9b9e815eb:localhost:node-dcfe181a-492f-4d06-b1a7-23983eb2cf06:Node dcfe181a-492f-4d06-b1a7-23983eb2cf06 :: false |
publishItemsToNodes | 0.042s |
2022-11-16 22:07:06 |
2022-11-16 22:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:06 | ------------------------------------ 2022-11-16 22:07:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "entry": "<test>item-14b137db-c257-4b49-be4c-5de652d8f73c</test>", "item-id": "item-14b137db-c257-4b49-be4c-5de652d8f73c" } 2022-11-16 22:07:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-14b137db-c257-4b49-be4c-5de652d8f73c" } 2022-11-16 22:07:06 | [Mutex] waiting for: [published:item:notifieditem-14b137db-c257-4b49-be4c-5de652d8f73c:admin@test-domain.com] 2022-11-16 22:07:06 | [Mutex] received everything. 2022-11-16 22:07:06 | [Mutex] isItemNotified: published:item:notifieditem-14b137db-c257-4b49-be4c-5de652d8f73c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-11-16 22:07:07 |
2022-11-16 22:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:07 | ------------------------------------ 2022-11-16 22:07:07 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "item-id": "item-14b137db-c257-4b49-be4c-5de652d8f73c" } 2022-11-16 22:07:07 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-14b137db-c257-4b49-be4c-5de652d8f73c" } 2022-11-16 22:07:07 | [Mutex] waiting for: [retracted:item:notifieditem-14b137db-c257-4b49-be4c-5de652d8f73c:admin@test-domain.com] 2022-11-16 22:07:07 | [Mutex] received everything. 2022-11-16 22:07:07 | [Mutex] isItemNotified: retracted:item:notifieditem-14b137db-c257-4b49-be4c-5de652d8f73c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.129s |
2022-11-16 22:07:06 |
2022-11-16 22:07:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:06 | ------------------------------------ 2022-11-16 22:07:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "item-id": "item-14b137db-c257-4b49-be4c-5de652d8f73c" } 2022-11-16 22:07:07 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "item-id": "item-14b137db-c257-4b49-be4c-5de652d8f73c", "item": [ "<item id=\"item-14b137db-c257-4b49-be4c-5de652d8f73c\"><test>item-14b137db-c257-4b49-be4c-5de652d8f73c</test></item>" ] } 2022-11-16 22:07:07 | [Mutex] notify: [retrieved:item:item-14b137db-c257-4b49-be4c-5de652d8f73c:payload-matches:true:localhost] 2022-11-16 22:07:07 | [Mutex] received everything. 2022-11-16 22:07:07 | [Mutex] isItemNotified: retrieved:item:item-14b137db-c257-4b49-be4c-5de652d8f73c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-11-16 22:07:07 |
2022-11-16 22:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:07 | ------------------------------------ 2022-11-16 22:07:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-11-16 22:07:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-a1b79f92-87ee-4aac-b91b-06b60c7e2a57", "test", "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-11-16 22:07:07 |
2022-11-16 22:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:07 | ------------------------------------ 2022-11-16 22:07:07 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dcfe181a-492f-4d06-b1a7-23983eb2cf06)" } 2022-11-16 22:07:07 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2022-11-16 22:07:05 |
2022-11-16 22:07:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:05 | ------------------------------------ 2022-11-16 22:07:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "jids": [ "admin@test-domain.com" ] } 2022-11-16 22:07:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.078s |
2022-11-16 22:07:07 |
2022-11-16 22:07:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-11-16 22:07:07 | ------------------------------------ 2022-11-16 22:07:07 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dcfe181a-492f-4d06-b1a7-23983eb2cf06", "jids": [ "admin@test-domain.com" ] } 2022-11-16 22:07:07 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |