Test duration : 9.346s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.123s |
2020-10-29 22:28:20 |
2020-10-29 22:28:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:20 | ------------------------------------ 2020-10-29 22:28:20 | [Mutex] waiting for: [configured:node:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:node-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5] 2020-10-29 22:28:20 | [Mutex] received everything. 2020-10-29 22:28:20 | [Mutex] isItemNotified: configured:node:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:node-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5 :: true 2020-10-29 22:28:21 | [Mutex] waiting for: [received:nodes:376049e5-d5af-4624-ad42-1fcc8407d850:localhost] 2020-10-29 22:28:21 | [Mutex] received everything. 2020-10-29 22:28:21 | [Mutex] isItemNotified: received:node:376049e5-d5af-4624-ad42-1fcc8407d850:localhost:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:Node 7d6bbfad-23e9-4ba5-aca9-4ebdad055330 :: true 2020-10-29 22:28:21 | [Mutex] waiting for: [received:nodes:dbd6744c-7228-4b35-a45f-20ede48898bc:localhost] 2020-10-29 22:28:21 | [Mutex] received everything. 2020-10-29 22:28:21 | [Mutex] isItemNotified: received:node:dbd6744c-7228-4b35-a45f-20ede48898bc:localhost:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:Node 7d6bbfad-23e9-4ba5-aca9-4ebdad055330 :: false |
createNodes | 1.814s |
2020-10-29 22:28:17 |
2020-10-29 22:28:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:17 | ------------------------------------ 2020-10-29 22:28: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-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "pubsub#title": "Node 7d6bbfad-23e9-4ba5-aca9-4ebdad055330" } 2020-10-29 22:28:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:28:19 | [Mutex] waiting for: [received:nodes:36eeb43f-b956-43fa-beb7-e6a752118a28:localhost] 2020-10-29 22:28:19 | [Mutex] received everything. 2020-10-29 22:28:19 | [Mutex] isItemNotified: received:node:36eeb43f-b956-43fa-beb7-e6a752118a28:localhost:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:Node 7d6bbfad-23e9-4ba5-aca9-4ebdad055330 :: true |
createSubnodes | 1.032s |
2020-10-29 22:28:19 |
2020-10-29 22:28:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:19 | ------------------------------------ 2020-10-29 22:28: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-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5", "pubsub#title": "Node d69394b4-fd4d-4ef4-a59b-396bbee0b3d5" } 2020-10-29 22:28:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:28:20 | [Mutex] waiting for: [received:nodes:e65454d0-6ed4-43a4-8bd9-2bd1f0500a97:localhost] 2020-10-29 22:28:20 | [Mutex] received everything. 2020-10-29 22:28:20 | [Mutex] isItemNotified: received:node:e65454d0-6ed4-43a4-8bd9-2bd1f0500a97:localhost:node-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5:Node d69394b4-fd4d-4ef4-a59b-396bbee0b3d5 :: true |
deleteNodes | 1.026s |
2020-10-29 22:28:25 |
2020-10-29 22:28:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:25 | ------------------------------------ 2020-10-29 22:28:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5" } 2020-10-29 22:28:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:28:26 | [Mutex] waiting for: [received:nodes:0bb5f2d7-a480-4f65-bbc7-f9943172e80f:localhost] 2020-10-29 22:28:26 | [Mutex] received everything. 2020-10-29 22:28:26 | [Mutex] isItemNotified: received:node:0bb5f2d7-a480-4f65-bbc7-f9943172e80f:localhost:node-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5:Node d69394b4-fd4d-4ef4-a59b-396bbee0b3d5 :: false |
deleteSubnodes | 1.054s |
2020-10-29 22:28:24 |
2020-10-29 22:28:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:24 | ------------------------------------ 2020-10-29 22:28:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330" } 2020-10-29 22:28:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-29 22:28:25 | [Mutex] waiting for: [received:nodes:d4c554b3-028d-48f9-85bf-4f8b9e30ecad:localhost] 2020-10-29 22:28:25 | [Mutex] waiting for: [received:nodes:d4c554b3-028d-48f9-85bf-4f8b9e30ecad:localhost] 2020-10-29 22:28:25 | [Mutex] received everything. 2020-10-29 22:28:25 | [Mutex] isItemNotified: received:node:d4c554b3-028d-48f9-85bf-4f8b9e30ecad:localhost:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:Node 7d6bbfad-23e9-4ba5-aca9-4ebdad055330 :: false 2020-10-29 22:28:25 | [Mutex] waiting for: [received:nodes:d4fa0212-7bc2-4b15-92ba-b8952277ab45:localhost] 2020-10-29 22:28:25 | [Mutex] received everything. 2020-10-29 22:28:25 | [Mutex] isItemNotified: received:node:d4fa0212-7bc2-4b15-92ba-b8952277ab45:localhost:node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330:Node 7d6bbfad-23e9-4ba5-aca9-4ebdad055330 :: false |
publishItemsToNodes | 0.054s |
2020-10-29 22:28:22 |
2020-10-29 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:22 | ------------------------------------ 2020-10-29 22:28:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "entry": "<test>item-28d22bc8-3349-4108-9dac-e2dbac988d77</test>", "item-id": "item-28d22bc8-3349-4108-9dac-e2dbac988d77" } 2020-10-29 22:28:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-28d22bc8-3349-4108-9dac-e2dbac988d77" } 2020-10-29 22:28:22 | [Mutex] received everything. 2020-10-29 22:28:22 | [Mutex] isItemNotified: published:item:notifieditem-28d22bc8-3349-4108-9dac-e2dbac988d77:admin@test-domain.com :: true |
retractItemsFromNodes | 0.085s |
2020-10-29 22:28:23 |
2020-10-29 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:23 | ------------------------------------ 2020-10-29 22:28:23 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "item-id": "item-28d22bc8-3349-4108-9dac-e2dbac988d77" } 2020-10-29 22:28:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-28d22bc8-3349-4108-9dac-e2dbac988d77" } 2020-10-29 22:28:23 | [Mutex] waiting for: [retracted:item:notifieditem-28d22bc8-3349-4108-9dac-e2dbac988d77:admin@test-domain.com] 2020-10-29 22:28:23 | [Mutex] received everything. 2020-10-29 22:28:23 | [Mutex] isItemNotified: retracted:item:notifieditem-28d22bc8-3349-4108-9dac-e2dbac988d77:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.083s |
2020-10-29 22:28:22 |
2020-10-29 22:28:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:22 | ------------------------------------ 2020-10-29 22:28:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "item-id": "item-28d22bc8-3349-4108-9dac-e2dbac988d77" } 2020-10-29 22:28:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "item-id": "item-28d22bc8-3349-4108-9dac-e2dbac988d77", "item": [ "<item id=\"item-28d22bc8-3349-4108-9dac-e2dbac988d77\"><test>item-28d22bc8-3349-4108-9dac-e2dbac988d77</test></item>" ] } 2020-10-29 22:28:23 | [Mutex] notify: [retrieved:item:item-28d22bc8-3349-4108-9dac-e2dbac988d77:payload-matches:true:localhost] 2020-10-29 22:28:23 | [Mutex] received everything. 2020-10-29 22:28:23 | [Mutex] isItemNotified: retrieved:item:item-28d22bc8-3349-4108-9dac-e2dbac988d77:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-29 22:28:23 |
2020-10-29 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:23 | ------------------------------------ 2020-10-29 22:28:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-29 22:28:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d69394b4-fd4d-4ef4-a59b-396bbee0b3d5", "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-10-29 22:28:23 |
2020-10-29 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:23 | ------------------------------------ 2020-10-29 22:28:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330)" } 2020-10-29 22:28:23 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.018s |
2020-10-29 22:28:21 |
2020-10-29 22:28:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:21 | ------------------------------------ 2020-10-29 22:28:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "jids": [ "admin@test-domain.com" ] } 2020-10-29 22:28:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.081s |
2020-10-29 22:28:23 |
2020-10-29 22:28:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-29 22:28:23 | ------------------------------------ 2020-10-29 22:28:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-7d6bbfad-23e9-4ba5-aca9-4ebdad055330", "jids": [ "admin@test-domain.com" ] } 2020-10-29 22:28:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |