Test duration : 8.650s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.106s |
2022-08-08 22:40:58 |
2022-08-08 22:40:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:40:58 | ------------------------------------ 2022-08-08 22:40:58 | [Mutex] waiting for: [configured:node:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:node-41d8b823-d9b9-4567-ab56-fcfdfed932e6] 2022-08-08 22:40:58 | [Mutex] received everything. 2022-08-08 22:40:58 | [Mutex] isItemNotified: configured:node:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:node-41d8b823-d9b9-4567-ab56-fcfdfed932e6 :: true 2022-08-08 22:40:59 | [Mutex] waiting for: [received:nodes:0923a497-441d-440f-bc08-5237a1fab8ad:localhost] 2022-08-08 22:40:59 | [Mutex] received everything. 2022-08-08 22:40:59 | [Mutex] isItemNotified: received:node:0923a497-441d-440f-bc08-5237a1fab8ad:localhost:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:Node 1d5c97fc-3d8a-4acc-8107-b62199d6cae9 :: true 2022-08-08 22:40:59 | [Mutex] waiting for: [received:nodes:739ed41d-2009-418e-9b83-53c067897e6c:localhost] 2022-08-08 22:40:59 | [Mutex] received everything. 2022-08-08 22:40:59 | [Mutex] isItemNotified: received:node:739ed41d-2009-418e-9b83-53c067897e6c:localhost:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:Node 1d5c97fc-3d8a-4acc-8107-b62199d6cae9 :: false |
createNodes | 1.551s |
2022-08-08 22:40:55 |
2022-08-08 22:40:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:40:55 | ------------------------------------ 2022-08-08 22:40:56 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "pubsub#title": "Node 1d5c97fc-3d8a-4acc-8107-b62199d6cae9" } 2022-08-08 22:40:56 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 22:40:57 | [Mutex] waiting for: [received:nodes:0f8fc8a1-0897-4e67-aae9-cba322804fe5:localhost] 2022-08-08 22:40:57 | [Mutex] received everything. 2022-08-08 22:40:57 | [Mutex] isItemNotified: received:node:0f8fc8a1-0897-4e67-aae9-cba322804fe5:localhost:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:Node 1d5c97fc-3d8a-4acc-8107-b62199d6cae9 :: true |
createSubnodes | 1.026s |
2022-08-08 22:40:57 |
2022-08-08 22:40:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:40:57 | ------------------------------------ 2022-08-08 22:40:57 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-41d8b823-d9b9-4567-ab56-fcfdfed932e6", "pubsub#title": "Node 41d8b823-d9b9-4567-ab56-fcfdfed932e6" } 2022-08-08 22:40:57 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 22:40:58 | [Mutex] waiting for: [received:nodes:62c07c24-3c15-4966-a6e8-6cdcea69c4d8:localhost] 2022-08-08 22:40:58 | [Mutex] received everything. 2022-08-08 22:40:58 | [Mutex] isItemNotified: received:node:62c07c24-3c15-4966-a6e8-6cdcea69c4d8:localhost:node-41d8b823-d9b9-4567-ab56-fcfdfed932e6:Node 41d8b823-d9b9-4567-ab56-fcfdfed932e6 :: true |
deleteNodes | 1.021s |
2022-08-08 22:41:02 |
2022-08-08 22:41:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:02 | ------------------------------------ 2022-08-08 22:41:02 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-41d8b823-d9b9-4567-ab56-fcfdfed932e6" } 2022-08-08 22:41:02 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 22:41:03 | [Mutex] waiting for: [received:nodes:ee7ac19a-f5a9-40c2-b3bf-663f8874d0d3:localhost] 2022-08-08 22:41:03 | [Mutex] received everything. 2022-08-08 22:41:03 | [Mutex] isItemNotified: received:node:ee7ac19a-f5a9-40c2-b3bf-663f8874d0d3:localhost:node-41d8b823-d9b9-4567-ab56-fcfdfed932e6:Node 41d8b823-d9b9-4567-ab56-fcfdfed932e6 :: false |
deleteSubnodes | 1.027s |
2022-08-08 22:41:01 |
2022-08-08 22:41:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:01 | ------------------------------------ 2022-08-08 22:41:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9" } 2022-08-08 22:41:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-08 22:41:02 | [Mutex] waiting for: [received:nodes:0343235f-bcf5-4f16-af41-3a9672cd0cfb:localhost] 2022-08-08 22:41:02 | [Mutex] waiting for: [received:nodes:0343235f-bcf5-4f16-af41-3a9672cd0cfb:localhost] 2022-08-08 22:41:02 | [Mutex] received everything. 2022-08-08 22:41:02 | [Mutex] isItemNotified: received:node:0343235f-bcf5-4f16-af41-3a9672cd0cfb:localhost:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:Node 1d5c97fc-3d8a-4acc-8107-b62199d6cae9 :: false 2022-08-08 22:41:02 | [Mutex] waiting for: [received:nodes:03577c8a-5ddf-4fa1-b0a5-eda4a06ec7fd:localhost] 2022-08-08 22:41:02 | [Mutex] received everything. 2022-08-08 22:41:02 | [Mutex] isItemNotified: received:node:03577c8a-5ddf-4fa1-b0a5-eda4a06ec7fd:localhost:node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9:Node 1d5c97fc-3d8a-4acc-8107-b62199d6cae9 :: false |
publishItemsToNodes | 0.061s |
2022-08-08 22:41:00 |
2022-08-08 22:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:00 | ------------------------------------ 2022-08-08 22:41:00 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "entry": "<test>item-98b1f21b-ce13-4497-9ad7-b2add5c960d2</test>", "item-id": "item-98b1f21b-ce13-4497-9ad7-b2add5c960d2" } 2022-08-08 22:41:00 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-98b1f21b-ce13-4497-9ad7-b2add5c960d2" } 2022-08-08 22:41:00 | [Mutex] waiting for: [published:item:notifieditem-98b1f21b-ce13-4497-9ad7-b2add5c960d2:admin@test-domain.com] 2022-08-08 22:41:00 | [Mutex] received everything. 2022-08-08 22:41:00 | [Mutex] isItemNotified: published:item:notifieditem-98b1f21b-ce13-4497-9ad7-b2add5c960d2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.054s |
2022-08-08 22:41:00 |
2022-08-08 22:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:00 | ------------------------------------ 2022-08-08 22:41:00 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "item-id": "item-98b1f21b-ce13-4497-9ad7-b2add5c960d2" } 2022-08-08 22:41:00 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-98b1f21b-ce13-4497-9ad7-b2add5c960d2" } 2022-08-08 22:41:00 | [Mutex] received everything. 2022-08-08 22:41:00 | [Mutex] isItemNotified: retracted:item:notifieditem-98b1f21b-ce13-4497-9ad7-b2add5c960d2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.101s |
2022-08-08 22:41:00 |
2022-08-08 22:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:00 | ------------------------------------ 2022-08-08 22:41:00 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "item-id": "item-98b1f21b-ce13-4497-9ad7-b2add5c960d2" } 2022-08-08 22:41:00 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "item-id": "item-98b1f21b-ce13-4497-9ad7-b2add5c960d2", "item": [ "<item id=\"item-98b1f21b-ce13-4497-9ad7-b2add5c960d2\"><test>item-98b1f21b-ce13-4497-9ad7-b2add5c960d2</test></item>" ] } 2022-08-08 22:41:00 | [Mutex] notify: [retrieved:item:item-98b1f21b-ce13-4497-9ad7-b2add5c960d2:payload-matches:true:localhost] 2022-08-08 22:41:00 | [Mutex] received everything. 2022-08-08 22:41:00 | [Mutex] isItemNotified: retrieved:item:item-98b1f21b-ce13-4497-9ad7-b2add5c960d2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2022-08-08 22:41:00 |
2022-08-08 22:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:00 | ------------------------------------ 2022-08-08 22:41:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-08 22:41:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-41d8b823-d9b9-4567-ab56-fcfdfed932e6", "test", "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-08-08 22:41:00 |
2022-08-08 22:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:00 | ------------------------------------ 2022-08-08 22:41:00 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9)" } 2022-08-08 22:41:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-08 22:40:59 |
2022-08-08 22:40:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:40:59 | ------------------------------------ 2022-08-08 22:40:59 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "jids": [ "admin@test-domain.com" ] } 2022-08-08 22:40:59 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.051s |
2022-08-08 22:41:00 |
2022-08-08 22:41:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-08 22:41:00 | ------------------------------------ 2022-08-08 22:41:00 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-1d5c97fc-3d8a-4acc-8107-b62199d6cae9", "jids": [ "admin@test-domain.com" ] } 2022-08-08 22:41:00 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |