Test duration : 9.150s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.131s |
2021-03-08 22:06:13 |
2021-03-08 22:06:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:13 | ------------------------------------ 2021-03-08 22:06:13 | [Mutex] waiting for: [configured:node:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:node-5d166747-58af-4567-b55c-ddfb77eeca9c] 2021-03-08 22:06:13 | [Mutex] received everything. 2021-03-08 22:06:13 | [Mutex] isItemNotified: configured:node:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:node-5d166747-58af-4567-b55c-ddfb77eeca9c :: true 2021-03-08 22:06:14 | [Mutex] waiting for: [received:nodes:0d3eb1f2-38b4-438e-99ef-1dcfe4a81e5f:localhost] 2021-03-08 22:06:14 | [Mutex] received everything. 2021-03-08 22:06:14 | [Mutex] isItemNotified: received:node:0d3eb1f2-38b4-438e-99ef-1dcfe4a81e5f:localhost:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:Node b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e :: true 2021-03-08 22:06:14 | [Mutex] waiting for: [received:nodes:9469041b-5e9e-4ac2-b461-01111aebdc9f:localhost] 2021-03-08 22:06:14 | [Mutex] received everything. 2021-03-08 22:06:14 | [Mutex] isItemNotified: received:node:9469041b-5e9e-4ac2-b461-01111aebdc9f:localhost:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:Node b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e :: false |
createNodes | 1.668s |
2021-03-08 22:06:10 |
2021-03-08 22:06:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:10 | ------------------------------------ 2021-03-08 22:06:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "pubsub#title": "Node b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e" } 2021-03-08 22:06:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-08 22:06:12 | [Mutex] waiting for: [received:nodes:22def6ed-ddca-4ba1-bb52-1f7a51e802ac:localhost] 2021-03-08 22:06:12 | [Mutex] waiting for: [received:nodes:22def6ed-ddca-4ba1-bb52-1f7a51e802ac:localhost] 2021-03-08 22:06:12 | [Mutex] waiting for: [received:nodes:22def6ed-ddca-4ba1-bb52-1f7a51e802ac:localhost] 2021-03-08 22:06:12 | [Mutex] received everything. 2021-03-08 22:06:12 | [Mutex] isItemNotified: received:node:22def6ed-ddca-4ba1-bb52-1f7a51e802ac:localhost:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:Node b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e :: true |
createSubnodes | 1.039s |
2021-03-08 22:06:12 |
2021-03-08 22:06:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:12 | ------------------------------------ 2021-03-08 22:06:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5d166747-58af-4567-b55c-ddfb77eeca9c", "pubsub#title": "Node 5d166747-58af-4567-b55c-ddfb77eeca9c" } 2021-03-08 22:06:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-08 22:06:13 | [Mutex] waiting for: [received:nodes:ab709cba-931b-4f9a-81ae-90a13a1c4951:localhost] 2021-03-08 22:06:13 | [Mutex] received everything. 2021-03-08 22:06:13 | [Mutex] isItemNotified: received:node:ab709cba-931b-4f9a-81ae-90a13a1c4951:localhost:node-5d166747-58af-4567-b55c-ddfb77eeca9c:Node 5d166747-58af-4567-b55c-ddfb77eeca9c :: true |
deleteNodes | 1.029s |
2021-03-08 22:06:18 |
2021-03-08 22:06:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:18 | ------------------------------------ 2021-03-08 22:06:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5d166747-58af-4567-b55c-ddfb77eeca9c" } 2021-03-08 22:06:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-08 22:06:19 | [Mutex] waiting for: [received:nodes:be10b755-2c01-4b9c-8c3d-1a318be19362:localhost] 2021-03-08 22:06:19 | [Mutex] waiting for: [received:nodes:be10b755-2c01-4b9c-8c3d-1a318be19362:localhost] 2021-03-08 22:06:19 | [Mutex] received everything. 2021-03-08 22:06:19 | [Mutex] isItemNotified: received:node:be10b755-2c01-4b9c-8c3d-1a318be19362:localhost:node-5d166747-58af-4567-b55c-ddfb77eeca9c:Node 5d166747-58af-4567-b55c-ddfb77eeca9c :: false |
deleteSubnodes | 1.034s |
2021-03-08 22:06:16 |
2021-03-08 22:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:16 | ------------------------------------ 2021-03-08 22:06:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e" } 2021-03-08 22:06:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-03-08 22:06:18 | [Mutex] waiting for: [received:nodes:b02c12db-6a7f-4268-8732-fac412f96bab:localhost] 2021-03-08 22:06:18 | [Mutex] waiting for: [received:nodes:b02c12db-6a7f-4268-8732-fac412f96bab:localhost] 2021-03-08 22:06:18 | [Mutex] received everything. 2021-03-08 22:06:18 | [Mutex] isItemNotified: received:node:b02c12db-6a7f-4268-8732-fac412f96bab:localhost:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:Node b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e :: false 2021-03-08 22:06:18 | [Mutex] waiting for: [received:nodes:ecc0df7b-ba27-4966-9186-ddf6df814382:localhost] 2021-03-08 22:06:18 | [Mutex] received everything. 2021-03-08 22:06:18 | [Mutex] isItemNotified: received:node:ecc0df7b-ba27-4966-9186-ddf6df814382:localhost:node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e:Node b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e :: false |
publishItemsToNodes | 0.054s |
2021-03-08 22:06:15 |
2021-03-08 22:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:15 | ------------------------------------ 2021-03-08 22:06:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "entry": "<test>item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3</test>", "item-id": "item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3" } 2021-03-08 22:06:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3" } 2021-03-08 22:06:15 | [Mutex] waiting for: [published:item:notifieditem-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3:admin@test-domain.com] 2021-03-08 22:06:15 | [Mutex] received everything. 2021-03-08 22:06:15 | [Mutex] isItemNotified: published:item:notifieditem-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.073s |
2021-03-08 22:06:15 |
2021-03-08 22:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:15 | ------------------------------------ 2021-03-08 22:06:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "item-id": "item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3" } 2021-03-08 22:06:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3" } 2021-03-08 22:06:15 | [Mutex] received everything. 2021-03-08 22:06:15 | [Mutex] isItemNotified: retracted:item:notifieditem-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.058s |
2021-03-08 22:06:15 |
2021-03-08 22:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:15 | ------------------------------------ 2021-03-08 22:06:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "item-id": "item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3" } 2021-03-08 22:06:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "item-id": "item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3", "item": [ "<item id=\"item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3\"><test>item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3</test></item>" ] } 2021-03-08 22:06:15 | [Mutex] notify: [retrieved:item:item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3:payload-matches:true:localhost] 2021-03-08 22:06:15 | [Mutex] received everything. 2021-03-08 22:06:15 | [Mutex] isItemNotified: retrieved:item:item-29fd09ad-ab3c-4d2e-94d8-fba9a46dd9e3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2021-03-08 22:06:15 |
2021-03-08 22:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:15 | ------------------------------------ 2021-03-08 22:06:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-03-08 22:06:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "test", "node-5d166747-58af-4567-b55c-ddfb77eeca9c" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-03-08 22:06:15 |
2021-03-08 22:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:15 | ------------------------------------ 2021-03-08 22:06:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e)" } 2021-03-08 22:06:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-03-08 22:06:14 |
2021-03-08 22:06:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:14 | ------------------------------------ 2021-03-08 22:06:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "jids": [ "admin@test-domain.com" ] } 2021-03-08 22:06:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.123s |
2021-03-08 22:06:15 |
2021-03-08 22:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-03-08 22:06:15 | ------------------------------------ 2021-03-08 22:06:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b2b7aeeb-2f8f-48f5-9cd2-36fa9ef3ff5e", "jids": [ "admin@test-domain.com" ] } 2021-03-08 22:06:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |