Test duration : 8.593s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-08-02 22:34:10 |
2022-08-02 22:34:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:10 | ------------------------------------ 2022-08-02 22:34:10 | [Mutex] waiting for: [configured:node:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:node-155c9f54-2137-442a-adf2-71ef48b79547] 2022-08-02 22:34:10 | [Mutex] received everything. 2022-08-02 22:34:10 | [Mutex] isItemNotified: configured:node:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:node-155c9f54-2137-442a-adf2-71ef48b79547 :: true 2022-08-02 22:34:11 | [Mutex] waiting for: [received:nodes:ce6ab641-fa23-4434-91da-d93a74691075:localhost] 2022-08-02 22:34:11 | [Mutex] received everything. 2022-08-02 22:34:11 | [Mutex] isItemNotified: received:node:ce6ab641-fa23-4434-91da-d93a74691075:localhost:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:Node 0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c :: true 2022-08-02 22:34:11 | [Mutex] waiting for: [received:nodes:182a2eaf-21df-46e6-aaee-a0f45438484e:localhost] 2022-08-02 22:34:11 | [Mutex] waiting for: [received:nodes:182a2eaf-21df-46e6-aaee-a0f45438484e:localhost] 2022-08-02 22:34:11 | [Mutex] waiting for: [received:nodes:182a2eaf-21df-46e6-aaee-a0f45438484e:localhost] 2022-08-02 22:34:11 | [Mutex] received everything. 2022-08-02 22:34:11 | [Mutex] isItemNotified: received:node:182a2eaf-21df-46e6-aaee-a0f45438484e:localhost:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:Node 0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c :: false |
createNodes | 1.529s |
2022-08-02 22:34:07 |
2022-08-02 22:34:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:07 | ------------------------------------ 2022-08-02 22:34:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "pubsub#title": "Node 0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c" } 2022-08-02 22:34:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:09 | [Mutex] waiting for: [received:nodes:0b356b0d-8b55-4550-832e-a0eb4e9d785f:localhost] 2022-08-02 22:34:09 | [Mutex] waiting for: [received:nodes:0b356b0d-8b55-4550-832e-a0eb4e9d785f:localhost] 2022-08-02 22:34:09 | [Mutex] received everything. 2022-08-02 22:34:09 | [Mutex] isItemNotified: received:node:0b356b0d-8b55-4550-832e-a0eb4e9d785f:localhost:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:Node 0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c :: true |
createSubnodes | 1.022s |
2022-08-02 22:34:09 |
2022-08-02 22:34:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:09 | ------------------------------------ 2022-08-02 22:34:09 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-155c9f54-2137-442a-adf2-71ef48b79547", "pubsub#title": "Node 155c9f54-2137-442a-adf2-71ef48b79547" } 2022-08-02 22:34:09 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:10 | [Mutex] waiting for: [received:nodes:2a2d4e0e-63fd-4225-bcfe-92cf1853531e:localhost] 2022-08-02 22:34:10 | [Mutex] waiting for: [received:nodes:2a2d4e0e-63fd-4225-bcfe-92cf1853531e:localhost] 2022-08-02 22:34:10 | [Mutex] received everything. 2022-08-02 22:34:10 | [Mutex] isItemNotified: received:node:2a2d4e0e-63fd-4225-bcfe-92cf1853531e:localhost:node-155c9f54-2137-442a-adf2-71ef48b79547:Node 155c9f54-2137-442a-adf2-71ef48b79547 :: true |
deleteNodes | 1.019s |
2022-08-02 22:34:14 |
2022-08-02 22:34:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:14 | ------------------------------------ 2022-08-02 22:34:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-155c9f54-2137-442a-adf2-71ef48b79547" } 2022-08-02 22:34:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:15 | [Mutex] waiting for: [received:nodes:fb2e4827-75dc-4a8e-87a7-173da9ef9b15:localhost] 2022-08-02 22:34:15 | [Mutex] received everything. 2022-08-02 22:34:15 | [Mutex] isItemNotified: received:node:fb2e4827-75dc-4a8e-87a7-173da9ef9b15:localhost:node-155c9f54-2137-442a-adf2-71ef48b79547:Node 155c9f54-2137-442a-adf2-71ef48b79547 :: false |
deleteSubnodes | 1.029s |
2022-08-02 22:34:13 |
2022-08-02 22:34:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:13 | ------------------------------------ 2022-08-02 22:34:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c" } 2022-08-02 22:34:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-02 22:34:14 | [Mutex] waiting for: [received:nodes:377036a8-273c-47a0-8626-bd150c4ae1b6:localhost] 2022-08-02 22:34:14 | [Mutex] received everything. 2022-08-02 22:34:14 | [Mutex] isItemNotified: received:node:377036a8-273c-47a0-8626-bd150c4ae1b6:localhost:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:Node 0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c :: false 2022-08-02 22:34:14 | [Mutex] waiting for: [received:nodes:8d76989f-d8b6-4002-805c-562087708d34:localhost] 2022-08-02 22:34:14 | [Mutex] received everything. 2022-08-02 22:34:14 | [Mutex] isItemNotified: received:node:8d76989f-d8b6-4002-805c-562087708d34:localhost:node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c:Node 0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c :: false |
publishItemsToNodes | 0.056s |
2022-08-02 22:34:12 |
2022-08-02 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:12 | ------------------------------------ 2022-08-02 22:34:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "entry": "<test>item-193d4769-5c3d-4b71-a16b-d0be6457bcdd</test>", "item-id": "item-193d4769-5c3d-4b71-a16b-d0be6457bcdd" } 2022-08-02 22:34:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-193d4769-5c3d-4b71-a16b-d0be6457bcdd" } 2022-08-02 22:34:12 | [Mutex] waiting for: [published:item:notifieditem-193d4769-5c3d-4b71-a16b-d0be6457bcdd:admin@test-domain.com] 2022-08-02 22:34:12 | [Mutex] received everything. 2022-08-02 22:34:12 | [Mutex] isItemNotified: published:item:notifieditem-193d4769-5c3d-4b71-a16b-d0be6457bcdd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2022-08-02 22:34:12 |
2022-08-02 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:12 | ------------------------------------ 2022-08-02 22:34:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "item-id": "item-193d4769-5c3d-4b71-a16b-d0be6457bcdd" } 2022-08-02 22:34:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-193d4769-5c3d-4b71-a16b-d0be6457bcdd" } 2022-08-02 22:34:12 | [Mutex] received everything. 2022-08-02 22:34:12 | [Mutex] isItemNotified: retracted:item:notifieditem-193d4769-5c3d-4b71-a16b-d0be6457bcdd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.134s |
2022-08-02 22:34:12 |
2022-08-02 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:12 | ------------------------------------ 2022-08-02 22:34:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "item-id": "item-193d4769-5c3d-4b71-a16b-d0be6457bcdd" } 2022-08-02 22:34:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "item-id": "item-193d4769-5c3d-4b71-a16b-d0be6457bcdd", "item": [ "<item id=\"item-193d4769-5c3d-4b71-a16b-d0be6457bcdd\"><test>item-193d4769-5c3d-4b71-a16b-d0be6457bcdd</test></item>" ] } 2022-08-02 22:34:12 | [Mutex] notify: [retrieved:item:item-193d4769-5c3d-4b71-a16b-d0be6457bcdd:payload-matches:true:localhost] 2022-08-02 22:34:12 | [Mutex] received everything. 2022-08-02 22:34:12 | [Mutex] isItemNotified: retrieved:item:item-193d4769-5c3d-4b71-a16b-d0be6457bcdd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-08-02 22:34:12 |
2022-08-02 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:12 | ------------------------------------ 2022-08-02 22:34:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-02 22:34:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "test", "node-155c9f54-2137-442a-adf2-71ef48b79547" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-02 22:34:12 |
2022-08-02 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:12 | ------------------------------------ 2022-08-02 22:34:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c)" } 2022-08-02 22:34:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2022-08-02 22:34:11 |
2022-08-02 22:34:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:11 | ------------------------------------ 2022-08-02 22:34:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "jids": [ "admin@test-domain.com" ] } 2022-08-02 22:34:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2022-08-02 22:34:12 |
2022-08-02 22:34:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-02 22:34:12 | ------------------------------------ 2022-08-02 22:34:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0bb2ee5e-626f-4ef7-a0b5-73b3f4c1050c", "jids": [ "admin@test-domain.com" ] } 2022-08-02 22:34:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |