Test duration : 8.669s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.118s |
2022-08-12 22:33:13 |
2022-08-12 22:33:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:13 | ------------------------------------ 2022-08-12 22:33:13 | [Mutex] waiting for: [configured:node:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:node-4129605e-02f9-486d-b4a0-d135d32851b8] 2022-08-12 22:33:13 | [Mutex] received everything. 2022-08-12 22:33:13 | [Mutex] isItemNotified: configured:node:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:node-4129605e-02f9-486d-b4a0-d135d32851b8 :: true 2022-08-12 22:33:14 | [Mutex] waiting for: [received:nodes:80b0cc62-3aac-4eff-a366-3a923f60a48d:localhost] 2022-08-12 22:33:14 | [Mutex] received everything. 2022-08-12 22:33:14 | [Mutex] isItemNotified: received:node:80b0cc62-3aac-4eff-a366-3a923f60a48d:localhost:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:Node 8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6 :: true 2022-08-12 22:33:14 | [Mutex] waiting for: [received:nodes:85a9cb67-07c8-4c37-baec-396b3a360aa9:localhost] 2022-08-12 22:33:14 | [Mutex] received everything. 2022-08-12 22:33:14 | [Mutex] isItemNotified: received:node:85a9cb67-07c8-4c37-baec-396b3a360aa9:localhost:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:Node 8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6 :: false |
createNodes | 1.592s |
2022-08-12 22:33:11 |
2022-08-12 22:33:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:11 | ------------------------------------ 2022-08-12 22:33:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "pubsub#title": "Node 8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6" } 2022-08-12 22:33:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 22:33:12 | [Mutex] waiting for: [received:nodes:efe4e7e6-4482-4f55-96b7-fcd859605b1a:localhost] 2022-08-12 22:33:12 | [Mutex] received everything. 2022-08-12 22:33:12 | [Mutex] isItemNotified: received:node:efe4e7e6-4482-4f55-96b7-fcd859605b1a:localhost:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:Node 8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6 :: true |
createSubnodes | 1.023s |
2022-08-12 22:33:12 |
2022-08-12 22:33:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:12 | ------------------------------------ 2022-08-12 22:33:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4129605e-02f9-486d-b4a0-d135d32851b8", "pubsub#title": "Node 4129605e-02f9-486d-b4a0-d135d32851b8" } 2022-08-12 22:33:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 22:33:13 | [Mutex] waiting for: [received:nodes:7c3d2841-fe24-413a-b174-ecc447efdfd1:localhost] 2022-08-12 22:33:13 | [Mutex] received everything. 2022-08-12 22:33:13 | [Mutex] isItemNotified: received:node:7c3d2841-fe24-413a-b174-ecc447efdfd1:localhost:node-4129605e-02f9-486d-b4a0-d135d32851b8:Node 4129605e-02f9-486d-b4a0-d135d32851b8 :: true |
deleteNodes | 1.032s |
2022-08-12 22:33:18 |
2022-08-12 22:33:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:18 | ------------------------------------ 2022-08-12 22:33:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4129605e-02f9-486d-b4a0-d135d32851b8" } 2022-08-12 22:33:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 22:33:19 | [Mutex] waiting for: [received:nodes:7f8cdd95-4d98-471e-a82e-1ed2c18456f2:localhost] 2022-08-12 22:33:19 | [Mutex] waiting for: [received:nodes:7f8cdd95-4d98-471e-a82e-1ed2c18456f2:localhost] 2022-08-12 22:33:19 | [Mutex] waiting for: [received:nodes:7f8cdd95-4d98-471e-a82e-1ed2c18456f2:localhost] 2022-08-12 22:33:19 | [Mutex] received everything. 2022-08-12 22:33:19 | [Mutex] isItemNotified: received:node:7f8cdd95-4d98-471e-a82e-1ed2c18456f2:localhost:node-4129605e-02f9-486d-b4a0-d135d32851b8:Node 4129605e-02f9-486d-b4a0-d135d32851b8 :: false |
deleteSubnodes | 1.029s |
2022-08-12 22:33:17 |
2022-08-12 22:33:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:17 | ------------------------------------ 2022-08-12 22:33:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6" } 2022-08-12 22:33:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-12 22:33:18 | [Mutex] waiting for: [received:nodes:f7f3dc46-55e5-4872-a7b1-99baa0c3b0ac:localhost] 2022-08-12 22:33:18 | [Mutex] received everything. 2022-08-12 22:33:18 | [Mutex] isItemNotified: received:node:f7f3dc46-55e5-4872-a7b1-99baa0c3b0ac:localhost:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:Node 8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6 :: false 2022-08-12 22:33:18 | [Mutex] waiting for: [received:nodes:219591fd-68ed-412b-9f7a-3d25589cff8e:localhost] 2022-08-12 22:33:18 | [Mutex] received everything. 2022-08-12 22:33:18 | [Mutex] isItemNotified: received:node:219591fd-68ed-412b-9f7a-3d25589cff8e:localhost:node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6:Node 8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6 :: false |
publishItemsToNodes | 0.063s |
2022-08-12 22:33:15 |
2022-08-12 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:15 | ------------------------------------ 2022-08-12 22:33:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "entry": "<test>item-86572f5f-d1cc-4299-a240-7a6f5fb72f26</test>", "item-id": "item-86572f5f-d1cc-4299-a240-7a6f5fb72f26" } 2022-08-12 22:33:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-86572f5f-d1cc-4299-a240-7a6f5fb72f26" } 2022-08-12 22:33:15 | [Mutex] waiting for: [published:item:notifieditem-86572f5f-d1cc-4299-a240-7a6f5fb72f26:admin@test-domain.com] 2022-08-12 22:33:15 | [Mutex] received everything. 2022-08-12 22:33:15 | [Mutex] isItemNotified: published:item:notifieditem-86572f5f-d1cc-4299-a240-7a6f5fb72f26:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-08-12 22:33:16 |
2022-08-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:16 | ------------------------------------ 2022-08-12 22:33:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "item-id": "item-86572f5f-d1cc-4299-a240-7a6f5fb72f26" } 2022-08-12 22:33:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-86572f5f-d1cc-4299-a240-7a6f5fb72f26" } 2022-08-12 22:33:16 | [Mutex] received everything. 2022-08-12 22:33:16 | [Mutex] isItemNotified: retracted:item:notifieditem-86572f5f-d1cc-4299-a240-7a6f5fb72f26:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.038s |
2022-08-12 22:33:15 |
2022-08-12 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:15 | ------------------------------------ 2022-08-12 22:33:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "item-id": "item-86572f5f-d1cc-4299-a240-7a6f5fb72f26" } 2022-08-12 22:33:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "item-id": "item-86572f5f-d1cc-4299-a240-7a6f5fb72f26", "item": [ "<item id=\"item-86572f5f-d1cc-4299-a240-7a6f5fb72f26\"><test>item-86572f5f-d1cc-4299-a240-7a6f5fb72f26</test></item>" ] } 2022-08-12 22:33:15 | [Mutex] notify: [retrieved:item:item-86572f5f-d1cc-4299-a240-7a6f5fb72f26:payload-matches:true:localhost] 2022-08-12 22:33:15 | [Mutex] received everything. 2022-08-12 22:33:15 | [Mutex] isItemNotified: retrieved:item:item-86572f5f-d1cc-4299-a240-7a6f5fb72f26:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-08-12 22:33:15 |
2022-08-12 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:15 | ------------------------------------ 2022-08-12 22:33:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-12 22:33:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4129605e-02f9-486d-b4a0-d135d32851b8", "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-08-12 22:33:15 |
2022-08-12 22:33:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:15 | ------------------------------------ 2022-08-12 22:33:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6)" } 2022-08-12 22:33:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-08-12 22:33:14 |
2022-08-12 22:33:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:14 | ------------------------------------ 2022-08-12 22:33:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "jids": [ "admin@test-domain.com" ] } 2022-08-12 22:33:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-08-12 22:33:16 |
2022-08-12 22:33:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-12 22:33:16 | ------------------------------------ 2022-08-12 22:33:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8b5ec67b-e65d-4d67-bf8a-3220fa8ad6b6", "jids": [ "admin@test-domain.com" ] } 2022-08-12 22:33:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |