Test duration : 9.049s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2022-02-20 21:47:00 |
2022-02-20 21:47:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:00 | ------------------------------------ 2022-02-20 21:47:00 | [Mutex] waiting for: [configured:node:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de] 2022-02-20 21:47:01 | [Mutex] received everything. 2022-02-20 21:47:01 | [Mutex] isItemNotified: configured:node:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de :: true 2022-02-20 21:47:02 | [Mutex] waiting for: [received:nodes:1e29ad41-1247-443f-aad8-d58fe67a7573:localhost] 2022-02-20 21:47:02 | [Mutex] received everything. 2022-02-20 21:47:02 | [Mutex] isItemNotified: received:node:1e29ad41-1247-443f-aad8-d58fe67a7573:localhost:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:Node 9f611066-77a9-46b5-bc66-95fac7a1ddd7 :: true 2022-02-20 21:47:02 | [Mutex] waiting for: [received:nodes:92588201-9335-4ecf-bdc0-ec2572d9aea4:localhost] 2022-02-20 21:47:02 | [Mutex] waiting for: [received:nodes:92588201-9335-4ecf-bdc0-ec2572d9aea4:localhost] 2022-02-20 21:47:02 | [Mutex] received everything. 2022-02-20 21:47:02 | [Mutex] isItemNotified: received:node:92588201-9335-4ecf-bdc0-ec2572d9aea4:localhost:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:Node 9f611066-77a9-46b5-bc66-95fac7a1ddd7 :: false |
createNodes | 1.635s |
2022-02-20 21:46:58 |
2022-02-20 21:46:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:46:58 | ------------------------------------ 2022-02-20 21:46:58 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "pubsub#title": "Node 9f611066-77a9-46b5-bc66-95fac7a1ddd7" } 2022-02-20 21:46:58 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:46:59 | [Mutex] waiting for: [received:nodes:5739d94c-4125-4512-917c-43ad68e73316:localhost] 2022-02-20 21:46:59 | [Mutex] received everything. 2022-02-20 21:46:59 | [Mutex] isItemNotified: received:node:5739d94c-4125-4512-917c-43ad68e73316:localhost:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:Node 9f611066-77a9-46b5-bc66-95fac7a1ddd7 :: true |
createSubnodes | 1.032s |
2022-02-20 21:46:59 |
2022-02-20 21:46:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:46:59 | ------------------------------------ 2022-02-20 21:46:59 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de", "pubsub#title": "Node 5fa2d30a-0edd-4fc1-a2b8-95f8682018de" } 2022-02-20 21:46:59 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:47:00 | [Mutex] waiting for: [received:nodes:983c3422-3574-40fc-8be1-0abcce161011:localhost] 2022-02-20 21:47:00 | [Mutex] received everything. 2022-02-20 21:47:00 | [Mutex] isItemNotified: received:node:983c3422-3574-40fc-8be1-0abcce161011:localhost:node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de:Node 5fa2d30a-0edd-4fc1-a2b8-95f8682018de :: true |
deleteNodes | 1.027s |
2022-02-20 21:47:05 |
2022-02-20 21:47:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:05 | ------------------------------------ 2022-02-20 21:47:05 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de" } 2022-02-20 21:47:05 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:47:06 | [Mutex] waiting for: [received:nodes:eae565ec-a988-4c64-9b5a-2ce4f7a67d1d:localhost] 2022-02-20 21:47:06 | [Mutex] received everything. 2022-02-20 21:47:06 | [Mutex] isItemNotified: received:node:eae565ec-a988-4c64-9b5a-2ce4f7a67d1d:localhost:node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de:Node 5fa2d30a-0edd-4fc1-a2b8-95f8682018de :: false |
deleteSubnodes | 1.033s |
2022-02-20 21:47:04 |
2022-02-20 21:47:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:04 | ------------------------------------ 2022-02-20 21:47:04 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7" } 2022-02-20 21:47:04 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-20 21:47:05 | [Mutex] waiting for: [received:nodes:a59b9326-4b59-4b20-8a2d-6aaf60e33c2d:localhost] 2022-02-20 21:47:05 | [Mutex] received everything. 2022-02-20 21:47:05 | [Mutex] isItemNotified: received:node:a59b9326-4b59-4b20-8a2d-6aaf60e33c2d:localhost:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:Node 9f611066-77a9-46b5-bc66-95fac7a1ddd7 :: false 2022-02-20 21:47:05 | [Mutex] waiting for: [received:nodes:7c5157fe-cbb0-4fcf-865c-2155ecba5d30:localhost] 2022-02-20 21:47:05 | [Mutex] received everything. 2022-02-20 21:47:05 | [Mutex] isItemNotified: received:node:7c5157fe-cbb0-4fcf-865c-2155ecba5d30:localhost:node-9f611066-77a9-46b5-bc66-95fac7a1ddd7:Node 9f611066-77a9-46b5-bc66-95fac7a1ddd7 :: false |
publishItemsToNodes | 0.102s |
2022-02-20 21:47:03 |
2022-02-20 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:03 | ------------------------------------ 2022-02-20 21:47:03 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "entry": "<test>item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d</test>", "item-id": "item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d" } 2022-02-20 21:47:03 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d" } 2022-02-20 21:47:03 | [Mutex] waiting for: [published:item:notifieditem-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d:admin@test-domain.com] 2022-02-20 21:47:03 | [Mutex] received everything. 2022-02-20 21:47:03 | [Mutex] isItemNotified: published:item:notifieditem-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2022-02-20 21:47:03 |
2022-02-20 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:03 | ------------------------------------ 2022-02-20 21:47:03 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "item-id": "item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d" } 2022-02-20 21:47:03 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d" } 2022-02-20 21:47:03 | [Mutex] received everything. 2022-02-20 21:47:03 | [Mutex] isItemNotified: retracted:item:notifieditem-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.019s |
2022-02-20 21:47:03 |
2022-02-20 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:03 | ------------------------------------ 2022-02-20 21:47:03 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "item-id": "item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d" } 2022-02-20 21:47:03 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "item-id": "item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d", "item": [ "<item id=\"item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d\"><test>item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d</test></item>" ] } 2022-02-20 21:47:03 | [Mutex] notify: [retrieved:item:item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d:payload-matches:true:localhost] 2022-02-20 21:47:03 | [Mutex] received everything. 2022-02-20 21:47:03 | [Mutex] isItemNotified: retrieved:item:item-0ec1daaf-ecc2-47dc-87fe-3fd43b23345d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2022-02-20 21:47:03 |
2022-02-20 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:03 | ------------------------------------ 2022-02-20 21:47:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-20 21:47:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "node-5fa2d30a-0edd-4fc1-a2b8-95f8682018de" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-02-20 21:47:03 |
2022-02-20 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:03 | ------------------------------------ 2022-02-20 21:47:03 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-9f611066-77a9-46b5-bc66-95fac7a1ddd7)" } 2022-02-20 21:47:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-02-20 21:47:02 |
2022-02-20 21:47:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:02 | ------------------------------------ 2022-02-20 21:47:02 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "jids": [ "admin@test-domain.com" ] } 2022-02-20 21:47:02 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.076s |
2022-02-20 21:47:03 |
2022-02-20 21:47:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-20 21:47:03 | ------------------------------------ 2022-02-20 21:47:03 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-9f611066-77a9-46b5-bc66-95fac7a1ddd7", "jids": [ "admin@test-domain.com" ] } 2022-02-20 21:47:03 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |