Test duration : 9.022s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.116s |
2021-11-15 22:23:04 |
2021-11-15 22:23:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:04 | ------------------------------------ 2021-11-15 22:23:04 | [Mutex] waiting for: [configured:node:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:node-5ee6d903-6a36-4e33-b588-56a092898ec4] 2021-11-15 22:23:04 | [Mutex] received everything. 2021-11-15 22:23:04 | [Mutex] isItemNotified: configured:node:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:node-5ee6d903-6a36-4e33-b588-56a092898ec4 :: true 2021-11-15 22:23:05 | [Mutex] waiting for: [received:nodes:a17fd52b-2e18-4b01-be3e-8a627d313538:localhost] 2021-11-15 22:23:05 | [Mutex] waiting for: [received:nodes:a17fd52b-2e18-4b01-be3e-8a627d313538:localhost] 2021-11-15 22:23:05 | [Mutex] received everything. 2021-11-15 22:23:05 | [Mutex] isItemNotified: received:node:a17fd52b-2e18-4b01-be3e-8a627d313538:localhost:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:Node fa13a2e1-66dc-4c7d-a358-16b200045f41 :: true 2021-11-15 22:23:05 | [Mutex] waiting for: [received:nodes:b4f4baaa-19ad-4120-9a48-1ece3456aeef:localhost] 2021-11-15 22:23:05 | [Mutex] received everything. 2021-11-15 22:23:05 | [Mutex] isItemNotified: received:node:b4f4baaa-19ad-4120-9a48-1ece3456aeef:localhost:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:Node fa13a2e1-66dc-4c7d-a358-16b200045f41 :: false |
createNodes | 1.660s |
2021-11-15 22:23:01 |
2021-11-15 22:23:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:01 | ------------------------------------ 2021-11-15 22:23:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "pubsub#title": "Node fa13a2e1-66dc-4c7d-a358-16b200045f41" } 2021-11-15 22:23:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:23:03 | [Mutex] waiting for: [received:nodes:f637cecf-3f61-449d-8605-f21641497d66:localhost] 2021-11-15 22:23:03 | [Mutex] received everything. 2021-11-15 22:23:03 | [Mutex] isItemNotified: received:node:f637cecf-3f61-449d-8605-f21641497d66:localhost:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:Node fa13a2e1-66dc-4c7d-a358-16b200045f41 :: true |
createSubnodes | 1.020s |
2021-11-15 22:23:03 |
2021-11-15 22:23:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:03 | ------------------------------------ 2021-11-15 22:23: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-5ee6d903-6a36-4e33-b588-56a092898ec4", "pubsub#title": "Node 5ee6d903-6a36-4e33-b588-56a092898ec4" } 2021-11-15 22:23:03 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:23:04 | [Mutex] waiting for: [received:nodes:8244098c-ef07-4f68-85e7-74a162063e67:localhost] 2021-11-15 22:23:04 | [Mutex] waiting for: [received:nodes:8244098c-ef07-4f68-85e7-74a162063e67:localhost] 2021-11-15 22:23:04 | [Mutex] received everything. 2021-11-15 22:23:04 | [Mutex] isItemNotified: received:node:8244098c-ef07-4f68-85e7-74a162063e67:localhost:node-5ee6d903-6a36-4e33-b588-56a092898ec4:Node 5ee6d903-6a36-4e33-b588-56a092898ec4 :: true |
deleteNodes | 1.019s |
2021-11-15 22:23:08 |
2021-11-15 22:23:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:08 | ------------------------------------ 2021-11-15 22:23:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5ee6d903-6a36-4e33-b588-56a092898ec4" } 2021-11-15 22:23:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:23:09 | [Mutex] waiting for: [received:nodes:0836a6c8-bf7f-477e-87b0-13419bc2eb64:localhost] 2021-11-15 22:23:09 | [Mutex] received everything. 2021-11-15 22:23:09 | [Mutex] isItemNotified: received:node:0836a6c8-bf7f-477e-87b0-13419bc2eb64:localhost:node-5ee6d903-6a36-4e33-b588-56a092898ec4:Node 5ee6d903-6a36-4e33-b588-56a092898ec4 :: false |
deleteSubnodes | 1.025s |
2021-11-15 22:23:07 |
2021-11-15 22:23:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:07 | ------------------------------------ 2021-11-15 22:23:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41" } 2021-11-15 22:23:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-11-15 22:23:08 | [Mutex] waiting for: [received:nodes:fd57718f-5a4c-477c-bca3-4c152bde05af:localhost] 2021-11-15 22:23:08 | [Mutex] received everything. 2021-11-15 22:23:08 | [Mutex] isItemNotified: received:node:fd57718f-5a4c-477c-bca3-4c152bde05af:localhost:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:Node fa13a2e1-66dc-4c7d-a358-16b200045f41 :: false 2021-11-15 22:23:08 | [Mutex] waiting for: [received:nodes:741537d4-4a62-488d-a756-2b57042b6bf3:localhost] 2021-11-15 22:23:08 | [Mutex] received everything. 2021-11-15 22:23:08 | [Mutex] isItemNotified: received:node:741537d4-4a62-488d-a756-2b57042b6bf3:localhost:node-fa13a2e1-66dc-4c7d-a358-16b200045f41:Node fa13a2e1-66dc-4c7d-a358-16b200045f41 :: false |
publishItemsToNodes | 0.054s |
2021-11-15 22:23:06 |
2021-11-15 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:06 | ------------------------------------ 2021-11-15 22:23:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "entry": "<test>item-b07cc788-09b2-4d34-9d56-caa75975176f</test>", "item-id": "item-b07cc788-09b2-4d34-9d56-caa75975176f" } 2021-11-15 22:23:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b07cc788-09b2-4d34-9d56-caa75975176f" } 2021-11-15 22:23:06 | [Mutex] waiting for: [published:item:notifieditem-b07cc788-09b2-4d34-9d56-caa75975176f:admin@test-domain.com] 2021-11-15 22:23:06 | [Mutex] received everything. 2021-11-15 22:23:06 | [Mutex] isItemNotified: published:item:notifieditem-b07cc788-09b2-4d34-9d56-caa75975176f:admin@test-domain.com :: true |
retractItemsFromNodes | 0.095s |
2021-11-15 22:23:06 |
2021-11-15 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:06 | ------------------------------------ 2021-11-15 22:23:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "item-id": "item-b07cc788-09b2-4d34-9d56-caa75975176f" } 2021-11-15 22:23:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b07cc788-09b2-4d34-9d56-caa75975176f" } 2021-11-15 22:23:06 | [Mutex] received everything. 2021-11-15 22:23:06 | [Mutex] isItemNotified: retracted:item:notifieditem-b07cc788-09b2-4d34-9d56-caa75975176f:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.069s |
2021-11-15 22:23:06 |
2021-11-15 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:06 | ------------------------------------ 2021-11-15 22:23:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "item-id": "item-b07cc788-09b2-4d34-9d56-caa75975176f" } 2021-11-15 22:23:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "item-id": "item-b07cc788-09b2-4d34-9d56-caa75975176f", "item": [ "<item id=\"item-b07cc788-09b2-4d34-9d56-caa75975176f\"><test>item-b07cc788-09b2-4d34-9d56-caa75975176f</test></item>" ] } 2021-11-15 22:23:06 | [Mutex] notify: [retrieved:item:item-b07cc788-09b2-4d34-9d56-caa75975176f:payload-matches:true:localhost] 2021-11-15 22:23:06 | [Mutex] received everything. 2021-11-15 22:23:06 | [Mutex] isItemNotified: retrieved:item:item-b07cc788-09b2-4d34-9d56-caa75975176f:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-11-15 22:23:06 |
2021-11-15 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:06 | ------------------------------------ 2021-11-15 22:23:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-11-15 22:23:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5ee6d903-6a36-4e33-b588-56a092898ec4", "node-fa13a2e1-66dc-4c7d-a358-16b200045f41" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2021-11-15 22:23:06 |
2021-11-15 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:06 | ------------------------------------ 2021-11-15 22:23:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-fa13a2e1-66dc-4c7d-a358-16b200045f41)" } 2021-11-15 22:23:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2021-11-15 22:23:05 |
2021-11-15 22:23:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:05 | ------------------------------------ 2021-11-15 22:23:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "jids": [ "admin@test-domain.com" ] } 2021-11-15 22:23:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2021-11-15 22:23:06 |
2021-11-15 22:23:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-11-15 22:23:06 | ------------------------------------ 2021-11-15 22:23:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-fa13a2e1-66dc-4c7d-a358-16b200045f41", "jids": [ "admin@test-domain.com" ] } 2021-11-15 22:23:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |