Test duration : 9.121s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.116s |
2021-09-22 23:21:54 |
2021-09-22 23:21:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:54 | ------------------------------------ 2021-09-22 23:21:54 | [Mutex] waiting for: [configured:node:node-43dce359-450a-4fac-867e-18386d6f94a7:node-7b8e6f5b-5816-4379-9907-3e49034bce1f] 2021-09-22 23:21:54 | [Mutex] received everything. 2021-09-22 23:21:54 | [Mutex] isItemNotified: configured:node:node-43dce359-450a-4fac-867e-18386d6f94a7:node-7b8e6f5b-5816-4379-9907-3e49034bce1f :: true 2021-09-22 23:21:55 | [Mutex] waiting for: [received:nodes:79ae9969-66ba-4c57-8fb1-a1f6c3f19c27:localhost] 2021-09-22 23:21:55 | [Mutex] received everything. 2021-09-22 23:21:55 | [Mutex] isItemNotified: received:node:79ae9969-66ba-4c57-8fb1-a1f6c3f19c27:localhost:node-43dce359-450a-4fac-867e-18386d6f94a7:Node 43dce359-450a-4fac-867e-18386d6f94a7 :: true 2021-09-22 23:21:55 | [Mutex] waiting for: [received:nodes:f66110f9-2151-4068-860a-a87a0f7f1a81:localhost] 2021-09-22 23:21:55 | [Mutex] received everything. 2021-09-22 23:21:55 | [Mutex] isItemNotified: received:node:f66110f9-2151-4068-860a-a87a0f7f1a81:localhost:node-43dce359-450a-4fac-867e-18386d6f94a7:Node 43dce359-450a-4fac-867e-18386d6f94a7 :: false |
createNodes | 1.698s |
2021-09-22 23:21:51 |
2021-09-22 23:21:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:51 | ------------------------------------ 2021-09-22 23:21:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "pubsub#title": "Node 43dce359-450a-4fac-867e-18386d6f94a7" } 2021-09-22 23:21:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:21:53 | [Mutex] waiting for: [received:nodes:cdcbb6ff-a3dc-4ae1-a34c-b84218336905:localhost] 2021-09-22 23:21:53 | [Mutex] waiting for: [received:nodes:cdcbb6ff-a3dc-4ae1-a34c-b84218336905:localhost] 2021-09-22 23:21:53 | [Mutex] received everything. 2021-09-22 23:21:53 | [Mutex] isItemNotified: received:node:cdcbb6ff-a3dc-4ae1-a34c-b84218336905:localhost:node-43dce359-450a-4fac-867e-18386d6f94a7:Node 43dce359-450a-4fac-867e-18386d6f94a7 :: true |
createSubnodes | 1.035s |
2021-09-22 23:21:53 |
2021-09-22 23:21:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:53 | ------------------------------------ 2021-09-22 23:21:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7b8e6f5b-5816-4379-9907-3e49034bce1f", "pubsub#title": "Node 7b8e6f5b-5816-4379-9907-3e49034bce1f" } 2021-09-22 23:21:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:21:54 | [Mutex] waiting for: [received:nodes:8684bb02-bf81-4449-99e7-f373a7845841:localhost] 2021-09-22 23:21:54 | [Mutex] received everything. 2021-09-22 23:21:54 | [Mutex] isItemNotified: received:node:8684bb02-bf81-4449-99e7-f373a7845841:localhost:node-7b8e6f5b-5816-4379-9907-3e49034bce1f:Node 7b8e6f5b-5816-4379-9907-3e49034bce1f :: true |
deleteNodes | 1.030s |
2021-09-22 23:21:58 |
2021-09-22 23:21:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:58 | ------------------------------------ 2021-09-22 23:21:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7b8e6f5b-5816-4379-9907-3e49034bce1f" } 2021-09-22 23:21:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:21:59 | [Mutex] waiting for: [received:nodes:7c0c78b6-c217-4ec6-a592-ffee5482db5c:localhost] 2021-09-22 23:21:59 | [Mutex] received everything. 2021-09-22 23:21:59 | [Mutex] isItemNotified: received:node:7c0c78b6-c217-4ec6-a592-ffee5482db5c:localhost:node-7b8e6f5b-5816-4379-9907-3e49034bce1f:Node 7b8e6f5b-5816-4379-9907-3e49034bce1f :: false |
deleteSubnodes | 1.026s |
2021-09-22 23:21:57 |
2021-09-22 23:21:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:57 | ------------------------------------ 2021-09-22 23:21:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-43dce359-450a-4fac-867e-18386d6f94a7" } 2021-09-22 23:21:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-09-22 23:21:58 | [Mutex] waiting for: [received:nodes:7ec15e36-4b93-4a15-a6e2-b853d3d5bdb7:localhost] 2021-09-22 23:21:58 | [Mutex] waiting for: [received:nodes:7ec15e36-4b93-4a15-a6e2-b853d3d5bdb7:localhost] 2021-09-22 23:21:58 | [Mutex] waiting for: [received:nodes:7ec15e36-4b93-4a15-a6e2-b853d3d5bdb7:localhost] 2021-09-22 23:21:58 | [Mutex] received everything. 2021-09-22 23:21:58 | [Mutex] isItemNotified: received:node:7ec15e36-4b93-4a15-a6e2-b853d3d5bdb7:localhost:node-43dce359-450a-4fac-867e-18386d6f94a7:Node 43dce359-450a-4fac-867e-18386d6f94a7 :: false 2021-09-22 23:21:58 | [Mutex] waiting for: [received:nodes:b72a8f3f-86db-4d11-a53c-376fa55b8225:localhost] 2021-09-22 23:21:58 | [Mutex] received everything. 2021-09-22 23:21:58 | [Mutex] isItemNotified: received:node:b72a8f3f-86db-4d11-a53c-376fa55b8225:localhost:node-43dce359-450a-4fac-867e-18386d6f94a7:Node 43dce359-450a-4fac-867e-18386d6f94a7 :: false |
publishItemsToNodes | 0.103s |
2021-09-22 23:21:56 |
2021-09-22 23:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:56 | ------------------------------------ 2021-09-22 23:21:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "entry": "<test>item-bf9aac69-c75d-4738-8668-68186caa9f24</test>", "item-id": "item-bf9aac69-c75d-4738-8668-68186caa9f24" } 2021-09-22 23:21:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bf9aac69-c75d-4738-8668-68186caa9f24" } 2021-09-22 23:21:56 | [Mutex] waiting for: [published:item:notifieditem-bf9aac69-c75d-4738-8668-68186caa9f24:admin@test-domain.com] 2021-09-22 23:21:56 | [Mutex] received everything. 2021-09-22 23:21:56 | [Mutex] isItemNotified: published:item:notifieditem-bf9aac69-c75d-4738-8668-68186caa9f24:admin@test-domain.com :: true |
retractItemsFromNodes | 0.083s |
2021-09-22 23:21:56 |
2021-09-22 23:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:56 | ------------------------------------ 2021-09-22 23:21:56 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "item-id": "item-bf9aac69-c75d-4738-8668-68186caa9f24" } 2021-09-22 23:21:56 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bf9aac69-c75d-4738-8668-68186caa9f24" } 2021-09-22 23:21:56 | [Mutex] received everything. 2021-09-22 23:21:56 | [Mutex] isItemNotified: retracted:item:notifieditem-bf9aac69-c75d-4738-8668-68186caa9f24:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.015s |
2021-09-22 23:21:56 |
2021-09-22 23:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:56 | ------------------------------------ 2021-09-22 23:21:56 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "item-id": "item-bf9aac69-c75d-4738-8668-68186caa9f24" } 2021-09-22 23:21:56 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "item-id": "item-bf9aac69-c75d-4738-8668-68186caa9f24", "item": [ "<item id=\"item-bf9aac69-c75d-4738-8668-68186caa9f24\"><test>item-bf9aac69-c75d-4738-8668-68186caa9f24</test></item>" ] } 2021-09-22 23:21:56 | [Mutex] notify: [retrieved:item:item-bf9aac69-c75d-4738-8668-68186caa9f24:payload-matches:true:localhost] 2021-09-22 23:21:56 | [Mutex] received everything. 2021-09-22 23:21:56 | [Mutex] isItemNotified: retrieved:item:item-bf9aac69-c75d-4738-8668-68186caa9f24:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2021-09-22 23:21:56 |
2021-09-22 23:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:56 | ------------------------------------ 2021-09-22 23:21:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-09-22 23:21:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-43dce359-450a-4fac-867e-18386d6f94a7", "node-7b8e6f5b-5816-4379-9907-3e49034bce1f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-09-22 23:21:56 |
2021-09-22 23:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:56 | ------------------------------------ 2021-09-22 23:21:56 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-43dce359-450a-4fac-867e-18386d6f94a7)" } 2021-09-22 23:21:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2021-09-22 23:21:55 |
2021-09-22 23:21:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:55 | ------------------------------------ 2021-09-22 23:21:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "jids": [ "admin@test-domain.com" ] } 2021-09-22 23:21:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.111s |
2021-09-22 23:21:56 |
2021-09-22 23:21:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-09-22 23:21:56 | ------------------------------------ 2021-09-22 23:21:56 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-43dce359-450a-4fac-867e-18386d6f94a7", "jids": [ "admin@test-domain.com" ] } 2021-09-22 23:21:56 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |