Test duration : 8.591s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.099s |
2022-05-10 23:15:56 |
2022-05-10 23:15:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:56 | ------------------------------------ 2022-05-10 23:15:56 | [Mutex] waiting for: [configured:node:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:node-89216791-feb5-4e2f-bf10-cc2b025b2a29] 2022-05-10 23:15:56 | [Mutex] received everything. 2022-05-10 23:15:56 | [Mutex] isItemNotified: configured:node:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:node-89216791-feb5-4e2f-bf10-cc2b025b2a29 :: true 2022-05-10 23:15:57 | [Mutex] waiting for: [received:nodes:d40a2539-1072-443e-adb2-00526cb7cd86:localhost] 2022-05-10 23:15:57 | [Mutex] received everything. 2022-05-10 23:15:57 | [Mutex] isItemNotified: received:node:d40a2539-1072-443e-adb2-00526cb7cd86:localhost:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:Node 44b5a5ad-8252-4dc5-bf82-0f80e46bbb47 :: true 2022-05-10 23:15:57 | [Mutex] waiting for: [received:nodes:ad99ec5a-6113-410b-bc79-b16a30eb496f:localhost] 2022-05-10 23:15:57 | [Mutex] received everything. 2022-05-10 23:15:57 | [Mutex] isItemNotified: received:node:ad99ec5a-6113-410b-bc79-b16a30eb496f:localhost:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:Node 44b5a5ad-8252-4dc5-bf82-0f80e46bbb47 :: false |
createNodes | 1.535s |
2022-05-10 23:15:53 |
2022-05-10 23:15:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:53 | ------------------------------------ 2022-05-10 23:15:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "pubsub#title": "Node 44b5a5ad-8252-4dc5-bf82-0f80e46bbb47" } 2022-05-10 23:15:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 23:15:55 | [Mutex] waiting for: [received:nodes:8f66196a-d9e2-4959-9733-70645e6e707d:localhost] 2022-05-10 23:15:55 | [Mutex] waiting for: [received:nodes:8f66196a-d9e2-4959-9733-70645e6e707d:localhost] 2022-05-10 23:15:55 | [Mutex] received everything. 2022-05-10 23:15:55 | [Mutex] isItemNotified: received:node:8f66196a-d9e2-4959-9733-70645e6e707d:localhost:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:Node 44b5a5ad-8252-4dc5-bf82-0f80e46bbb47 :: true |
createSubnodes | 1.019s |
2022-05-10 23:15:55 |
2022-05-10 23:15:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:55 | ------------------------------------ 2022-05-10 23:15:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-89216791-feb5-4e2f-bf10-cc2b025b2a29", "pubsub#title": "Node 89216791-feb5-4e2f-bf10-cc2b025b2a29" } 2022-05-10 23:15:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 23:15:56 | [Mutex] waiting for: [received:nodes:b74782d4-c800-467f-89ad-98e5a5eaff42:localhost] 2022-05-10 23:15:56 | [Mutex] received everything. 2022-05-10 23:15:56 | [Mutex] isItemNotified: received:node:b74782d4-c800-467f-89ad-98e5a5eaff42:localhost:node-89216791-feb5-4e2f-bf10-cc2b025b2a29:Node 89216791-feb5-4e2f-bf10-cc2b025b2a29 :: true |
deleteNodes | 1.023s |
2022-05-10 23:16:00 |
2022-05-10 23:16:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:16:00 | ------------------------------------ 2022-05-10 23:16:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-89216791-feb5-4e2f-bf10-cc2b025b2a29" } 2022-05-10 23:16:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 23:16:01 | [Mutex] waiting for: [received:nodes:275dcc2d-a15e-4545-96c3-8b9453ef9941:localhost] 2022-05-10 23:16:01 | [Mutex] received everything. 2022-05-10 23:16:01 | [Mutex] isItemNotified: received:node:275dcc2d-a15e-4545-96c3-8b9453ef9941:localhost:node-89216791-feb5-4e2f-bf10-cc2b025b2a29:Node 89216791-feb5-4e2f-bf10-cc2b025b2a29 :: false |
deleteSubnodes | 1.024s |
2022-05-10 23:15:59 |
2022-05-10 23:15:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:59 | ------------------------------------ 2022-05-10 23:15:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47" } 2022-05-10 23:15:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-10 23:16:00 | [Mutex] waiting for: [received:nodes:67d00aee-441a-4958-a7af-35035dbffdba:localhost] 2022-05-10 23:16:00 | [Mutex] received everything. 2022-05-10 23:16:00 | [Mutex] isItemNotified: received:node:67d00aee-441a-4958-a7af-35035dbffdba:localhost:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:Node 44b5a5ad-8252-4dc5-bf82-0f80e46bbb47 :: false 2022-05-10 23:16:00 | [Mutex] waiting for: [received:nodes:7eeb5b70-5690-4972-a023-7aa1474eecc0:localhost] 2022-05-10 23:16:00 | [Mutex] received everything. 2022-05-10 23:16:00 | [Mutex] isItemNotified: received:node:7eeb5b70-5690-4972-a023-7aa1474eecc0:localhost:node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47:Node 44b5a5ad-8252-4dc5-bf82-0f80e46bbb47 :: false |
publishItemsToNodes | 0.039s |
2022-05-10 23:15:58 |
2022-05-10 23:15:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:58 | ------------------------------------ 2022-05-10 23:15:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "entry": "<test>item-d20c738c-994a-45f7-9138-99c49c385e1c</test>", "item-id": "item-d20c738c-994a-45f7-9138-99c49c385e1c" } 2022-05-10 23:15:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d20c738c-994a-45f7-9138-99c49c385e1c" } 2022-05-10 23:15:58 | [Mutex] waiting for: [published:item:notifieditem-d20c738c-994a-45f7-9138-99c49c385e1c:admin@test-domain.com] 2022-05-10 23:15:58 | [Mutex] received everything. 2022-05-10 23:15:58 | [Mutex] isItemNotified: published:item:notifieditem-d20c738c-994a-45f7-9138-99c49c385e1c:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-05-10 23:15:58 |
2022-05-10 23:15:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:58 | ------------------------------------ 2022-05-10 23:15:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "item-id": "item-d20c738c-994a-45f7-9138-99c49c385e1c" } 2022-05-10 23:15:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-d20c738c-994a-45f7-9138-99c49c385e1c" } 2022-05-10 23:15:58 | [Mutex] received everything. 2022-05-10 23:15:58 | [Mutex] isItemNotified: retracted:item:notifieditem-d20c738c-994a-45f7-9138-99c49c385e1c:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.063s |
2022-05-10 23:15:58 |
2022-05-10 23:15:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:58 | ------------------------------------ 2022-05-10 23:15:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "item-id": "item-d20c738c-994a-45f7-9138-99c49c385e1c" } 2022-05-10 23:15:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "item-id": "item-d20c738c-994a-45f7-9138-99c49c385e1c", "item": [ "<item id=\"item-d20c738c-994a-45f7-9138-99c49c385e1c\"><test>item-d20c738c-994a-45f7-9138-99c49c385e1c</test></item>" ] } 2022-05-10 23:15:58 | [Mutex] notify: [retrieved:item:item-d20c738c-994a-45f7-9138-99c49c385e1c:payload-matches:true:localhost] 2022-05-10 23:15:58 | [Mutex] received everything. 2022-05-10 23:15:58 | [Mutex] isItemNotified: retrieved:item:item-d20c738c-994a-45f7-9138-99c49c385e1c:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2022-05-10 23:15:58 |
2022-05-10 23:15:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:58 | ------------------------------------ 2022-05-10 23:15:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-10 23:15:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-89216791-feb5-4e2f-bf10-cc2b025b2a29", "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-10 23:15:58 |
2022-05-10 23:15:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:58 | ------------------------------------ 2022-05-10 23:15:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47)" } 2022-05-10 23:15:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2022-05-10 23:15:57 |
2022-05-10 23:15:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:57 | ------------------------------------ 2022-05-10 23:15:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "jids": [ "admin@test-domain.com" ] } 2022-05-10 23:15:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2022-05-10 23:15:58 |
2022-05-10 23:15:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-10 23:15:58 | ------------------------------------ 2022-05-10 23:15:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-44b5a5ad-8252-4dc5-bf82-0f80e46bbb47", "jids": [ "admin@test-domain.com" ] } 2022-05-10 23:15:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |