Test duration : 8.779s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2022-05-17 22:50:42 |
2022-05-17 22:50:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:42 | ------------------------------------ 2022-05-17 22:50:42 | [Mutex] waiting for: [configured:node:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:node-c65799e5-6e64-4851-9e8f-80656582839f] 2022-05-17 22:50:42 | [Mutex] received everything. 2022-05-17 22:50:42 | [Mutex] isItemNotified: configured:node:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:node-c65799e5-6e64-4851-9e8f-80656582839f :: true 2022-05-17 22:50:43 | [Mutex] waiting for: [received:nodes:587960b6-cd9b-42ad-9615-4f94eb2b9557:localhost] 2022-05-17 22:50:43 | [Mutex] received everything. 2022-05-17 22:50:43 | [Mutex] isItemNotified: received:node:587960b6-cd9b-42ad-9615-4f94eb2b9557:localhost:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:Node f839185f-2680-4ef1-94c3-3dcd16b72d40 :: true 2022-05-17 22:50:43 | [Mutex] waiting for: [received:nodes:17c55d52-0294-46df-9e9c-c383b0f3ba81:localhost] 2022-05-17 22:50:43 | [Mutex] received everything. 2022-05-17 22:50:43 | [Mutex] isItemNotified: received:node:17c55d52-0294-46df-9e9c-c383b0f3ba81:localhost:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:Node f839185f-2680-4ef1-94c3-3dcd16b72d40 :: false |
createNodes | 1.657s |
2022-05-17 22:50:39 |
2022-05-17 22:50:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:39 | ------------------------------------ 2022-05-17 22:50:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "pubsub#title": "Node f839185f-2680-4ef1-94c3-3dcd16b72d40" } 2022-05-17 22:50:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:50:41 | [Mutex] waiting for: [received:nodes:59ba9faf-75a5-41da-b82d-2a6de78acca4:localhost] 2022-05-17 22:50:41 | [Mutex] waiting for: [received:nodes:59ba9faf-75a5-41da-b82d-2a6de78acca4:localhost] 2022-05-17 22:50:41 | [Mutex] received everything. 2022-05-17 22:50:41 | [Mutex] isItemNotified: received:node:59ba9faf-75a5-41da-b82d-2a6de78acca4:localhost:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:Node f839185f-2680-4ef1-94c3-3dcd16b72d40 :: true |
createSubnodes | 1.023s |
2022-05-17 22:50:41 |
2022-05-17 22:50:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:41 | ------------------------------------ 2022-05-17 22:50:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-c65799e5-6e64-4851-9e8f-80656582839f", "pubsub#title": "Node c65799e5-6e64-4851-9e8f-80656582839f" } 2022-05-17 22:50:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:50:42 | [Mutex] waiting for: [received:nodes:f31f5219-7bd0-4546-b9a4-a3c1e90c4f93:localhost] 2022-05-17 22:50:42 | [Mutex] waiting for: [received:nodes:f31f5219-7bd0-4546-b9a4-a3c1e90c4f93:localhost] 2022-05-17 22:50:42 | [Mutex] received everything. 2022-05-17 22:50:42 | [Mutex] isItemNotified: received:node:f31f5219-7bd0-4546-b9a4-a3c1e90c4f93:localhost:node-c65799e5-6e64-4851-9e8f-80656582839f:Node c65799e5-6e64-4851-9e8f-80656582839f :: true |
deleteNodes | 1.025s |
2022-05-17 22:50:46 |
2022-05-17 22:50:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:46 | ------------------------------------ 2022-05-17 22:50:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-c65799e5-6e64-4851-9e8f-80656582839f" } 2022-05-17 22:50:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:50:47 | [Mutex] waiting for: [received:nodes:ce3794d2-fac9-4249-8994-219af9f6034f:localhost] 2022-05-17 22:50:47 | [Mutex] received everything. 2022-05-17 22:50:47 | [Mutex] isItemNotified: received:node:ce3794d2-fac9-4249-8994-219af9f6034f:localhost:node-c65799e5-6e64-4851-9e8f-80656582839f:Node c65799e5-6e64-4851-9e8f-80656582839f :: false |
deleteSubnodes | 1.024s |
2022-05-17 22:50:45 |
2022-05-17 22:50:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:45 | ------------------------------------ 2022-05-17 22:50:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40" } 2022-05-17 22:50:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-17 22:50:46 | [Mutex] waiting for: [received:nodes:10599376-8b79-46fd-9ae0-8551c5192441:localhost] 2022-05-17 22:50:46 | [Mutex] waiting for: [received:nodes:10599376-8b79-46fd-9ae0-8551c5192441:localhost] 2022-05-17 22:50:46 | [Mutex] received everything. 2022-05-17 22:50:46 | [Mutex] isItemNotified: received:node:10599376-8b79-46fd-9ae0-8551c5192441:localhost:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:Node f839185f-2680-4ef1-94c3-3dcd16b72d40 :: false 2022-05-17 22:50:46 | [Mutex] waiting for: [received:nodes:7c686b4b-6032-4645-913d-a4d1e9bd4697:localhost] 2022-05-17 22:50:46 | [Mutex] received everything. 2022-05-17 22:50:46 | [Mutex] isItemNotified: received:node:7c686b4b-6032-4645-913d-a4d1e9bd4697:localhost:node-f839185f-2680-4ef1-94c3-3dcd16b72d40:Node f839185f-2680-4ef1-94c3-3dcd16b72d40 :: false |
publishItemsToNodes | 0.061s |
2022-05-17 22:50:44 |
2022-05-17 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:44 | ------------------------------------ 2022-05-17 22:50:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "entry": "<test>item-7b82a320-1527-45f8-9993-860beddc46c1</test>", "item-id": "item-7b82a320-1527-45f8-9993-860beddc46c1" } 2022-05-17 22:50:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7b82a320-1527-45f8-9993-860beddc46c1" } 2022-05-17 22:50:44 | [Mutex] waiting for: [published:item:notifieditem-7b82a320-1527-45f8-9993-860beddc46c1:admin@test-domain.com] 2022-05-17 22:50:44 | [Mutex] received everything. 2022-05-17 22:50:44 | [Mutex] isItemNotified: published:item:notifieditem-7b82a320-1527-45f8-9993-860beddc46c1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2022-05-17 22:50:44 |
2022-05-17 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:44 | ------------------------------------ 2022-05-17 22:50:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "item-id": "item-7b82a320-1527-45f8-9993-860beddc46c1" } 2022-05-17 22:50:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-7b82a320-1527-45f8-9993-860beddc46c1" } 2022-05-17 22:50:44 | [Mutex] received everything. 2022-05-17 22:50:44 | [Mutex] isItemNotified: retracted:item:notifieditem-7b82a320-1527-45f8-9993-860beddc46c1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.017s |
2022-05-17 22:50:44 |
2022-05-17 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:44 | ------------------------------------ 2022-05-17 22:50:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "item-id": "item-7b82a320-1527-45f8-9993-860beddc46c1" } 2022-05-17 22:50:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "item-id": "item-7b82a320-1527-45f8-9993-860beddc46c1", "item": [ "<item id=\"item-7b82a320-1527-45f8-9993-860beddc46c1\"><test>item-7b82a320-1527-45f8-9993-860beddc46c1</test></item>" ] } 2022-05-17 22:50:44 | [Mutex] notify: [retrieved:item:item-7b82a320-1527-45f8-9993-860beddc46c1:payload-matches:true:localhost] 2022-05-17 22:50:44 | [Mutex] received everything. 2022-05-17 22:50:44 | [Mutex] isItemNotified: retrieved:item:item-7b82a320-1527-45f8-9993-860beddc46c1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.079s |
2022-05-17 22:50:44 |
2022-05-17 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:44 | ------------------------------------ 2022-05-17 22:50:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-17 22:50:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "node-c65799e5-6e64-4851-9e8f-80656582839f" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-17 22:50:44 |
2022-05-17 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:44 | ------------------------------------ 2022-05-17 22:50:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f839185f-2680-4ef1-94c3-3dcd16b72d40)" } 2022-05-17 22:50:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-05-17 22:50:43 |
2022-05-17 22:50:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:43 | ------------------------------------ 2022-05-17 22:50:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "jids": [ "admin@test-domain.com" ] } 2022-05-17 22:50:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.079s |
2022-05-17 22:50:44 |
2022-05-17 22:50:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-17 22:50:44 | ------------------------------------ 2022-05-17 22:50:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f839185f-2680-4ef1-94c3-3dcd16b72d40", "jids": [ "admin@test-domain.com" ] } 2022-05-17 22:50:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |