Test duration : 8.670s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-07-07 22:45:17 |
2022-07-07 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:17 | ------------------------------------ 2022-07-07 22:45:17 | [Mutex] waiting for: [configured:node:node-7716da78-f315-4839-881a-2b77214c5315:node-00c488f5-5053-439f-9264-1d41d0e83a7d] 2022-07-07 22:45:17 | [Mutex] received everything. 2022-07-07 22:45:17 | [Mutex] isItemNotified: configured:node:node-7716da78-f315-4839-881a-2b77214c5315:node-00c488f5-5053-439f-9264-1d41d0e83a7d :: true 2022-07-07 22:45:18 | [Mutex] waiting for: [received:nodes:afe40d81-cfac-4085-bce2-e268a7587241:localhost] 2022-07-07 22:45:18 | [Mutex] received everything. 2022-07-07 22:45:18 | [Mutex] isItemNotified: received:node:afe40d81-cfac-4085-bce2-e268a7587241:localhost:node-7716da78-f315-4839-881a-2b77214c5315:Node 7716da78-f315-4839-881a-2b77214c5315 :: true 2022-07-07 22:45:18 | [Mutex] waiting for: [received:nodes:ced4543c-be36-40fe-be85-05b17f43fe56:localhost] 2022-07-07 22:45:18 | [Mutex] received everything. 2022-07-07 22:45:18 | [Mutex] isItemNotified: received:node:ced4543c-be36-40fe-be85-05b17f43fe56:localhost:node-7716da78-f315-4839-881a-2b77214c5315:Node 7716da78-f315-4839-881a-2b77214c5315 :: false |
createNodes | 1.600s |
2022-07-07 22:45:14 |
2022-07-07 22:45:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:14 | ------------------------------------ 2022-07-07 22:45:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-7716da78-f315-4839-881a-2b77214c5315", "pubsub#title": "Node 7716da78-f315-4839-881a-2b77214c5315" } 2022-07-07 22:45:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:45:16 | [Mutex] waiting for: [received:nodes:aa92da35-9706-4d6e-80b6-02e041747f01:localhost] 2022-07-07 22:45:16 | [Mutex] waiting for: [received:nodes:aa92da35-9706-4d6e-80b6-02e041747f01:localhost] 2022-07-07 22:45:16 | [Mutex] waiting for: [received:nodes:aa92da35-9706-4d6e-80b6-02e041747f01:localhost] 2022-07-07 22:45:16 | [Mutex] waiting for: [received:nodes:aa92da35-9706-4d6e-80b6-02e041747f01:localhost] 2022-07-07 22:45:16 | [Mutex] received everything. 2022-07-07 22:45:16 | [Mutex] isItemNotified: received:node:aa92da35-9706-4d6e-80b6-02e041747f01:localhost:node-7716da78-f315-4839-881a-2b77214c5315:Node 7716da78-f315-4839-881a-2b77214c5315 :: true |
createSubnodes | 1.030s |
2022-07-07 22:45:16 |
2022-07-07 22:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:16 | ------------------------------------ 2022-07-07 22:45:16 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-00c488f5-5053-439f-9264-1d41d0e83a7d", "pubsub#title": "Node 00c488f5-5053-439f-9264-1d41d0e83a7d" } 2022-07-07 22:45:16 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:45:17 | [Mutex] waiting for: [received:nodes:dacb6dc3-469b-45f6-9433-f1c55f42704d:localhost] 2022-07-07 22:45:17 | [Mutex] received everything. 2022-07-07 22:45:17 | [Mutex] isItemNotified: received:node:dacb6dc3-469b-45f6-9433-f1c55f42704d:localhost:node-00c488f5-5053-439f-9264-1d41d0e83a7d:Node 00c488f5-5053-439f-9264-1d41d0e83a7d :: true |
deleteNodes | 1.026s |
2022-07-07 22:45:22 |
2022-07-07 22:45:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:22 | ------------------------------------ 2022-07-07 22:45:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-00c488f5-5053-439f-9264-1d41d0e83a7d" } 2022-07-07 22:45:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:45:23 | [Mutex] waiting for: [received:nodes:68a0db22-94e9-4737-b057-f8bfe399f04b:localhost] 2022-07-07 22:45:23 | [Mutex] received everything. 2022-07-07 22:45:23 | [Mutex] isItemNotified: received:node:68a0db22-94e9-4737-b057-f8bfe399f04b:localhost:node-00c488f5-5053-439f-9264-1d41d0e83a7d:Node 00c488f5-5053-439f-9264-1d41d0e83a7d :: false |
deleteSubnodes | 1.032s |
2022-07-07 22:45:21 |
2022-07-07 22:45:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:21 | ------------------------------------ 2022-07-07 22:45:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7716da78-f315-4839-881a-2b77214c5315" } 2022-07-07 22:45:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-07-07 22:45:22 | [Mutex] waiting for: [received:nodes:a5221418-fe81-4a67-b100-9c4ab254f144:localhost] 2022-07-07 22:45:22 | [Mutex] waiting for: [received:nodes:a5221418-fe81-4a67-b100-9c4ab254f144:localhost] 2022-07-07 22:45:22 | [Mutex] received everything. 2022-07-07 22:45:22 | [Mutex] isItemNotified: received:node:a5221418-fe81-4a67-b100-9c4ab254f144:localhost:node-7716da78-f315-4839-881a-2b77214c5315:Node 7716da78-f315-4839-881a-2b77214c5315 :: false 2022-07-07 22:45:22 | [Mutex] waiting for: [received:nodes:2e78345e-62ea-4310-93d0-2f449dd55388:localhost] 2022-07-07 22:45:22 | [Mutex] received everything. 2022-07-07 22:45:22 | [Mutex] isItemNotified: received:node:2e78345e-62ea-4310-93d0-2f449dd55388:localhost:node-7716da78-f315-4839-881a-2b77214c5315:Node 7716da78-f315-4839-881a-2b77214c5315 :: false |
publishItemsToNodes | 0.093s |
2022-07-07 22:45:19 |
2022-07-07 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:19 | ------------------------------------ 2022-07-07 22:45:19 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7716da78-f315-4839-881a-2b77214c5315", "entry": "<test>item-5f5eeeae-f24d-418f-b983-30d6689963f4</test>", "item-id": "item-5f5eeeae-f24d-418f-b983-30d6689963f4" } 2022-07-07 22:45:19 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f5eeeae-f24d-418f-b983-30d6689963f4" } 2022-07-07 22:45:19 | [Mutex] waiting for: [published:item:notifieditem-5f5eeeae-f24d-418f-b983-30d6689963f4:admin@test-domain.com] 2022-07-07 22:45:19 | [Mutex] received everything. 2022-07-07 22:45:19 | [Mutex] isItemNotified: published:item:notifieditem-5f5eeeae-f24d-418f-b983-30d6689963f4:admin@test-domain.com :: true |
retractItemsFromNodes | 0.063s |
2022-07-07 22:45:19 |
2022-07-07 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:19 | ------------------------------------ 2022-07-07 22:45:19 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7716da78-f315-4839-881a-2b77214c5315", "item-id": "item-5f5eeeae-f24d-418f-b983-30d6689963f4" } 2022-07-07 22:45:20 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-5f5eeeae-f24d-418f-b983-30d6689963f4" } 2022-07-07 22:45:20 | [Mutex] received everything. 2022-07-07 22:45:20 | [Mutex] isItemNotified: retracted:item:notifieditem-5f5eeeae-f24d-418f-b983-30d6689963f4:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.055s |
2022-07-07 22:45:19 |
2022-07-07 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:19 | ------------------------------------ 2022-07-07 22:45:19 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7716da78-f315-4839-881a-2b77214c5315", "item-id": "item-5f5eeeae-f24d-418f-b983-30d6689963f4" } 2022-07-07 22:45:19 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7716da78-f315-4839-881a-2b77214c5315", "item-id": "item-5f5eeeae-f24d-418f-b983-30d6689963f4", "item": [ "<item id=\"item-5f5eeeae-f24d-418f-b983-30d6689963f4\"><test>item-5f5eeeae-f24d-418f-b983-30d6689963f4</test></item>" ] } 2022-07-07 22:45:19 | [Mutex] notify: [retrieved:item:item-5f5eeeae-f24d-418f-b983-30d6689963f4:payload-matches:true:localhost] 2022-07-07 22:45:19 | [Mutex] received everything. 2022-07-07 22:45:19 | [Mutex] isItemNotified: retrieved:item:item-5f5eeeae-f24d-418f-b983-30d6689963f4:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-07-07 22:45:19 |
2022-07-07 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:19 | ------------------------------------ 2022-07-07 22:45:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-07-07 22:45:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-00c488f5-5053-439f-9264-1d41d0e83a7d", "node-7716da78-f315-4839-881a-2b77214c5315", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-07-07 22:45:19 |
2022-07-07 22:45:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:19 | ------------------------------------ 2022-07-07 22:45:19 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7716da78-f315-4839-881a-2b77214c5315)" } 2022-07-07 22:45:19 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.012s |
2022-07-07 22:45:18 |
2022-07-07 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:18 | ------------------------------------ 2022-07-07 22:45:18 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7716da78-f315-4839-881a-2b77214c5315", "jids": [ "admin@test-domain.com" ] } 2022-07-07 22:45:18 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2022-07-07 22:45:20 |
2022-07-07 22:45:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-07-07 22:45:20 | ------------------------------------ 2022-07-07 22:45:20 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7716da78-f315-4839-881a-2b77214c5315", "jids": [ "admin@test-domain.com" ] } 2022-07-07 22:45:20 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |