Test duration : 8.867s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2020-11-01 21:29:20 |
2020-11-01 21:29:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:20 | ------------------------------------ 2020-11-01 21:29:20 | [Mutex] waiting for: [configured:node:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:node-706f1a81-007e-4268-8a8d-9c62ad13ab60] 2020-11-01 21:29:20 | [Mutex] received everything. 2020-11-01 21:29:20 | [Mutex] isItemNotified: configured:node:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:node-706f1a81-007e-4268-8a8d-9c62ad13ab60 :: true 2020-11-01 21:29:21 | [Mutex] waiting for: [received:nodes:c4b2d273-5f91-4129-9b30-e0e7f17291ef:localhost] 2020-11-01 21:29:21 | [Mutex] received everything. 2020-11-01 21:29:21 | [Mutex] isItemNotified: received:node:c4b2d273-5f91-4129-9b30-e0e7f17291ef:localhost:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:Node 6df1781e-377b-4923-aa36-00a3ce0e85c6 :: true 2020-11-01 21:29:21 | [Mutex] waiting for: [received:nodes:5f1b57b2-21eb-48ef-b0a1-2cbc5b114eca:localhost] 2020-11-01 21:29:21 | [Mutex] received everything. 2020-11-01 21:29:21 | [Mutex] isItemNotified: received:node:5f1b57b2-21eb-48ef-b0a1-2cbc5b114eca:localhost:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:Node 6df1781e-377b-4923-aa36-00a3ce0e85c6 :: false |
createNodes | 1.607s |
2020-11-01 21:29:18 |
2020-11-01 21:29:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:18 | ------------------------------------ 2020-11-01 21:29:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "pubsub#title": "Node 6df1781e-377b-4923-aa36-00a3ce0e85c6" } 2020-11-01 21:29:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:29:19 | [Mutex] waiting for: [received:nodes:597d3923-fd70-4ebc-9ba0-a76044d6c00b:localhost] 2020-11-01 21:29:19 | [Mutex] received everything. 2020-11-01 21:29:19 | [Mutex] isItemNotified: received:node:597d3923-fd70-4ebc-9ba0-a76044d6c00b:localhost:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:Node 6df1781e-377b-4923-aa36-00a3ce0e85c6 :: true |
createSubnodes | 1.022s |
2020-11-01 21:29:19 |
2020-11-01 21:29:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:19 | ------------------------------------ 2020-11-01 21:29:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-706f1a81-007e-4268-8a8d-9c62ad13ab60", "pubsub#title": "Node 706f1a81-007e-4268-8a8d-9c62ad13ab60" } 2020-11-01 21:29:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:29:20 | [Mutex] waiting for: [received:nodes:acea783f-12fe-4898-ac47-716aa480aa8e:localhost] 2020-11-01 21:29:20 | [Mutex] received everything. 2020-11-01 21:29:20 | [Mutex] isItemNotified: received:node:acea783f-12fe-4898-ac47-716aa480aa8e:localhost:node-706f1a81-007e-4268-8a8d-9c62ad13ab60:Node 706f1a81-007e-4268-8a8d-9c62ad13ab60 :: true |
deleteNodes | 1.017s |
2020-11-01 21:29:25 |
2020-11-01 21:29:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:25 | ------------------------------------ 2020-11-01 21:29:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-706f1a81-007e-4268-8a8d-9c62ad13ab60" } 2020-11-01 21:29:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:29:26 | [Mutex] waiting for: [received:nodes:cd4cdd41-8a05-45e6-81ca-62bad0becd46:localhost] 2020-11-01 21:29:26 | [Mutex] received everything. 2020-11-01 21:29:26 | [Mutex] isItemNotified: received:node:cd4cdd41-8a05-45e6-81ca-62bad0becd46:localhost:node-706f1a81-007e-4268-8a8d-9c62ad13ab60:Node 706f1a81-007e-4268-8a8d-9c62ad13ab60 :: false |
deleteSubnodes | 1.027s |
2020-11-01 21:29:24 |
2020-11-01 21:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:24 | ------------------------------------ 2020-11-01 21:29:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6" } 2020-11-01 21:29:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-01 21:29:25 | [Mutex] waiting for: [received:nodes:e8b88b6b-af6e-458e-8580-98911d98683d:localhost] 2020-11-01 21:29:25 | [Mutex] waiting for: [received:nodes:e8b88b6b-af6e-458e-8580-98911d98683d:localhost] 2020-11-01 21:29:25 | [Mutex] waiting for: [received:nodes:e8b88b6b-af6e-458e-8580-98911d98683d:localhost] 2020-11-01 21:29:25 | [Mutex] received everything. 2020-11-01 21:29:25 | [Mutex] isItemNotified: received:node:e8b88b6b-af6e-458e-8580-98911d98683d:localhost:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:Node 6df1781e-377b-4923-aa36-00a3ce0e85c6 :: false 2020-11-01 21:29:25 | [Mutex] waiting for: [received:nodes:12838e2b-054c-442d-855d-02cc3372267e:localhost] 2020-11-01 21:29:25 | [Mutex] received everything. 2020-11-01 21:29:25 | [Mutex] isItemNotified: received:node:12838e2b-054c-442d-855d-02cc3372267e:localhost:node-6df1781e-377b-4923-aa36-00a3ce0e85c6:Node 6df1781e-377b-4923-aa36-00a3ce0e85c6 :: false |
publishItemsToNodes | 0.051s |
2020-11-01 21:29:23 |
2020-11-01 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:23 | ------------------------------------ 2020-11-01 21:29:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "entry": "<test>item-245837d4-760c-491f-9cd3-c0b59dc103fe</test>", "item-id": "item-245837d4-760c-491f-9cd3-c0b59dc103fe" } 2020-11-01 21:29:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-245837d4-760c-491f-9cd3-c0b59dc103fe" } 2020-11-01 21:29:23 | [Mutex] waiting for: [published:item:notifieditem-245837d4-760c-491f-9cd3-c0b59dc103fe:admin@test-domain.com] 2020-11-01 21:29:23 | [Mutex] received everything. 2020-11-01 21:29:23 | [Mutex] isItemNotified: published:item:notifieditem-245837d4-760c-491f-9cd3-c0b59dc103fe:admin@test-domain.com :: true |
retractItemsFromNodes | 0.079s |
2020-11-01 21:29:23 |
2020-11-01 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:23 | ------------------------------------ 2020-11-01 21:29:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "item-id": "item-245837d4-760c-491f-9cd3-c0b59dc103fe" } 2020-11-01 21:29:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-245837d4-760c-491f-9cd3-c0b59dc103fe" } 2020-11-01 21:29:23 | [Mutex] waiting for: [retracted:item:notifieditem-245837d4-760c-491f-9cd3-c0b59dc103fe:admin@test-domain.com] 2020-11-01 21:29:23 | [Mutex] received everything. 2020-11-01 21:29:23 | [Mutex] isItemNotified: retracted:item:notifieditem-245837d4-760c-491f-9cd3-c0b59dc103fe:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2020-11-01 21:29:23 |
2020-11-01 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:23 | ------------------------------------ 2020-11-01 21:29:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "item-id": "item-245837d4-760c-491f-9cd3-c0b59dc103fe" } 2020-11-01 21:29:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "item-id": "item-245837d4-760c-491f-9cd3-c0b59dc103fe", "item": [ "<item id=\"item-245837d4-760c-491f-9cd3-c0b59dc103fe\"><test>item-245837d4-760c-491f-9cd3-c0b59dc103fe</test></item>" ] } 2020-11-01 21:29:23 | [Mutex] notify: [retrieved:item:item-245837d4-760c-491f-9cd3-c0b59dc103fe:payload-matches:true:localhost] 2020-11-01 21:29:23 | [Mutex] received everything. 2020-11-01 21:29:23 | [Mutex] isItemNotified: retrieved:item:item-245837d4-760c-491f-9cd3-c0b59dc103fe:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-11-01 21:29:23 |
2020-11-01 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:23 | ------------------------------------ 2020-11-01 21:29:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-01 21:29:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-706f1a81-007e-4268-8a8d-9c62ad13ab60", "test", "node-6df1781e-377b-4923-aa36-00a3ce0e85c6" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-01 21:29:23 |
2020-11-01 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:23 | ------------------------------------ 2020-11-01 21:29:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6df1781e-377b-4923-aa36-00a3ce0e85c6)" } 2020-11-01 21:29:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-11-01 21:29:21 |
2020-11-01 21:29:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:21 | ------------------------------------ 2020-11-01 21:29:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "jids": [ "admin@test-domain.com" ] } 2020-11-01 21:29:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2020-11-01 21:29:23 |
2020-11-01 21:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-01 21:29:23 | ------------------------------------ 2020-11-01 21:29:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6df1781e-377b-4923-aa36-00a3ce0e85c6", "jids": [ "admin@test-domain.com" ] } 2020-11-01 21:29:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |