Test duration : 8.658s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.105s |
2022-06-01 22:37:49 |
2022-06-01 22:37:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:49 | ------------------------------------ 2022-06-01 22:37:49 | [Mutex] waiting for: [configured:node:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:node-eca8df81-479c-4368-948a-24acdc878e2a] 2022-06-01 22:37:49 | [Mutex] received everything. 2022-06-01 22:37:49 | [Mutex] isItemNotified: configured:node:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:node-eca8df81-479c-4368-948a-24acdc878e2a :: true 2022-06-01 22:37:50 | [Mutex] waiting for: [received:nodes:a6a3a796-80ed-4b3c-ab84-f8fd40d68952:localhost] 2022-06-01 22:37:50 | [Mutex] received everything. 2022-06-01 22:37:50 | [Mutex] isItemNotified: received:node:a6a3a796-80ed-4b3c-ab84-f8fd40d68952:localhost:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:Node 3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c :: true 2022-06-01 22:37:50 | [Mutex] waiting for: [received:nodes:3a774f5c-ad9b-42ef-a65e-b2706687173f:localhost] 2022-06-01 22:37:50 | [Mutex] received everything. 2022-06-01 22:37:50 | [Mutex] isItemNotified: received:node:3a774f5c-ad9b-42ef-a65e-b2706687173f:localhost:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:Node 3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c :: false |
createNodes | 1.583s |
2022-06-01 22:37:46 |
2022-06-01 22:37:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:46 | ------------------------------------ 2022-06-01 22:37:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "pubsub#title": "Node 3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c" } 2022-06-01 22:37:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-01 22:37:48 | [Mutex] waiting for: [received:nodes:90c3c019-1f2b-4b17-9a4e-06892104d735:localhost] 2022-06-01 22:37:48 | [Mutex] received everything. 2022-06-01 22:37:48 | [Mutex] isItemNotified: received:node:90c3c019-1f2b-4b17-9a4e-06892104d735:localhost:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:Node 3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c :: true |
createSubnodes | 1.020s |
2022-06-01 22:37:48 |
2022-06-01 22:37:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:48 | ------------------------------------ 2022-06-01 22:37:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-eca8df81-479c-4368-948a-24acdc878e2a", "pubsub#title": "Node eca8df81-479c-4368-948a-24acdc878e2a" } 2022-06-01 22:37:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-01 22:37:49 | [Mutex] waiting for: [received:nodes:9c1291fb-77d0-4c95-97c7-9df9d98fd94d:localhost] 2022-06-01 22:37:49 | [Mutex] waiting for: [received:nodes:9c1291fb-77d0-4c95-97c7-9df9d98fd94d:localhost] 2022-06-01 22:37:49 | [Mutex] received everything. 2022-06-01 22:37:49 | [Mutex] isItemNotified: received:node:9c1291fb-77d0-4c95-97c7-9df9d98fd94d:localhost:node-eca8df81-479c-4368-948a-24acdc878e2a:Node eca8df81-479c-4368-948a-24acdc878e2a :: true |
deleteNodes | 1.019s |
2022-06-01 22:37:54 |
2022-06-01 22:37:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:54 | ------------------------------------ 2022-06-01 22:37:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-eca8df81-479c-4368-948a-24acdc878e2a" } 2022-06-01 22:37:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-01 22:37:55 | [Mutex] waiting for: [received:nodes:4ed4822f-0c67-416d-ba4b-2cf88fa6d4d4:localhost] 2022-06-01 22:37:55 | [Mutex] received everything. 2022-06-01 22:37:55 | [Mutex] isItemNotified: received:node:4ed4822f-0c67-416d-ba4b-2cf88fa6d4d4:localhost:node-eca8df81-479c-4368-948a-24acdc878e2a:Node eca8df81-479c-4368-948a-24acdc878e2a :: false |
deleteSubnodes | 1.032s |
2022-06-01 22:37:53 |
2022-06-01 22:37:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:53 | ------------------------------------ 2022-06-01 22:37:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c" } 2022-06-01 22:37:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-01 22:37:54 | [Mutex] waiting for: [received:nodes:059cfd45-3a71-4bba-92e1-5383d6d5c63b:localhost] 2022-06-01 22:37:54 | [Mutex] received everything. 2022-06-01 22:37:54 | [Mutex] isItemNotified: received:node:059cfd45-3a71-4bba-92e1-5383d6d5c63b:localhost:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:Node 3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c :: false 2022-06-01 22:37:54 | [Mutex] waiting for: [received:nodes:811700d1-9370-4347-acff-8db24db18393:localhost] 2022-06-01 22:37:54 | [Mutex] received everything. 2022-06-01 22:37:54 | [Mutex] isItemNotified: received:node:811700d1-9370-4347-acff-8db24db18393:localhost:node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c:Node 3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c :: false |
publishItemsToNodes | 0.057s |
2022-06-01 22:37:51 |
2022-06-01 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:51 | ------------------------------------ 2022-06-01 22:37:51 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "entry": "<test>item-72be94c6-8aa5-41f4-b896-386da61dbe26</test>", "item-id": "item-72be94c6-8aa5-41f4-b896-386da61dbe26" } 2022-06-01 22:37:51 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-72be94c6-8aa5-41f4-b896-386da61dbe26" } 2022-06-01 22:37:51 | [Mutex] waiting for: [published:item:notifieditem-72be94c6-8aa5-41f4-b896-386da61dbe26:admin@test-domain.com] 2022-06-01 22:37:51 | [Mutex] received everything. 2022-06-01 22:37:51 | [Mutex] isItemNotified: published:item:notifieditem-72be94c6-8aa5-41f4-b896-386da61dbe26:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2022-06-01 22:37:51 |
2022-06-01 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:51 | ------------------------------------ 2022-06-01 22:37:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "item-id": "item-72be94c6-8aa5-41f4-b896-386da61dbe26" } 2022-06-01 22:37:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-72be94c6-8aa5-41f4-b896-386da61dbe26" } 2022-06-01 22:37:51 | [Mutex] received everything. 2022-06-01 22:37:51 | [Mutex] isItemNotified: retracted:item:notifieditem-72be94c6-8aa5-41f4-b896-386da61dbe26:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2022-06-01 22:37:51 |
2022-06-01 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:51 | ------------------------------------ 2022-06-01 22:37:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "item-id": "item-72be94c6-8aa5-41f4-b896-386da61dbe26" } 2022-06-01 22:37:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "item-id": "item-72be94c6-8aa5-41f4-b896-386da61dbe26", "item": [ "<item id=\"item-72be94c6-8aa5-41f4-b896-386da61dbe26\"><test>item-72be94c6-8aa5-41f4-b896-386da61dbe26</test></item>" ] } 2022-06-01 22:37:51 | [Mutex] notify: [retrieved:item:item-72be94c6-8aa5-41f4-b896-386da61dbe26:payload-matches:true:localhost] 2022-06-01 22:37:51 | [Mutex] received everything. 2022-06-01 22:37:51 | [Mutex] isItemNotified: retrieved:item:item-72be94c6-8aa5-41f4-b896-386da61dbe26:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-01 22:37:51 |
2022-06-01 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:51 | ------------------------------------ 2022-06-01 22:37:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-01 22:37:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-eca8df81-479c-4368-948a-24acdc878e2a", "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-06-01 22:37:51 |
2022-06-01 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:51 | ------------------------------------ 2022-06-01 22:37:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c)" } 2022-06-01 22:37:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2022-06-01 22:37:50 |
2022-06-01 22:37:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:50 | ------------------------------------ 2022-06-01 22:37:50 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "jids": [ "admin@test-domain.com" ] } 2022-06-01 22:37:50 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2022-06-01 22:37:51 |
2022-06-01 22:37:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-01 22:37:51 | ------------------------------------ 2022-06-01 22:37:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-3d3d0a96-0af3-4f9c-a25f-cdfc2b933f7c", "jids": [ "admin@test-domain.com" ] } 2022-06-01 22:37:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |