Test duration : 8.978s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.144s |
2022-02-16 22:15:26 |
2022-02-16 22:15:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:26 | ------------------------------------ 2022-02-16 22:15:26 | [Mutex] waiting for: [configured:node:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:node-dfd4f324-8bf1-4cba-848a-d7794977a5a1] 2022-02-16 22:15:26 | [Mutex] received everything. 2022-02-16 22:15:26 | [Mutex] isItemNotified: configured:node:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:node-dfd4f324-8bf1-4cba-848a-d7794977a5a1 :: true 2022-02-16 22:15:27 | [Mutex] waiting for: [received:nodes:ae50bf19-4fcc-48af-a5ed-cb0b21f48981:localhost] 2022-02-16 22:15:27 | [Mutex] received everything. 2022-02-16 22:15:27 | [Mutex] isItemNotified: received:node:ae50bf19-4fcc-48af-a5ed-cb0b21f48981:localhost:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:Node 390cdd0e-4f19-447a-9a7a-da5fe7def2de :: true 2022-02-16 22:15:27 | [Mutex] waiting for: [received:nodes:3320b513-5414-42c1-8888-1ccfedfceb50:localhost] 2022-02-16 22:15:27 | [Mutex] received everything. 2022-02-16 22:15:27 | [Mutex] isItemNotified: received:node:3320b513-5414-42c1-8888-1ccfedfceb50:localhost:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:Node 390cdd0e-4f19-447a-9a7a-da5fe7def2de :: false |
createNodes | 1.721s |
2022-02-16 22:15:23 |
2022-02-16 22:15:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:23 | ------------------------------------ 2022-02-16 22:15:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "pubsub#title": "Node 390cdd0e-4f19-447a-9a7a-da5fe7def2de" } 2022-02-16 22:15:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:15:25 | [Mutex] waiting for: [received:nodes:9f65e872-374c-44c1-9621-9fd7e6705b88:localhost] 2022-02-16 22:15:25 | [Mutex] received everything. 2022-02-16 22:15:25 | [Mutex] isItemNotified: received:node:9f65e872-374c-44c1-9621-9fd7e6705b88:localhost:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:Node 390cdd0e-4f19-447a-9a7a-da5fe7def2de :: true |
createSubnodes | 1.025s |
2022-02-16 22:15:25 |
2022-02-16 22:15:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:25 | ------------------------------------ 2022-02-16 22:15:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-dfd4f324-8bf1-4cba-848a-d7794977a5a1", "pubsub#title": "Node dfd4f324-8bf1-4cba-848a-d7794977a5a1" } 2022-02-16 22:15:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:15:26 | [Mutex] waiting for: [received:nodes:43a16b63-a3a6-45e8-8381-7dc4bc55c81f:localhost] 2022-02-16 22:15:26 | [Mutex] waiting for: [received:nodes:43a16b63-a3a6-45e8-8381-7dc4bc55c81f:localhost] 2022-02-16 22:15:26 | [Mutex] received everything. 2022-02-16 22:15:26 | [Mutex] isItemNotified: received:node:43a16b63-a3a6-45e8-8381-7dc4bc55c81f:localhost:node-dfd4f324-8bf1-4cba-848a-d7794977a5a1:Node dfd4f324-8bf1-4cba-848a-d7794977a5a1 :: true |
deleteNodes | 1.020s |
2022-02-16 22:15:30 |
2022-02-16 22:15:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:30 | ------------------------------------ 2022-02-16 22:15:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dfd4f324-8bf1-4cba-848a-d7794977a5a1" } 2022-02-16 22:15:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:15:31 | [Mutex] waiting for: [received:nodes:84ace991-e8be-4b02-ab2d-5a8dfcefb4a1:localhost] 2022-02-16 22:15:32 | [Mutex] waiting for: [received:nodes:84ace991-e8be-4b02-ab2d-5a8dfcefb4a1:localhost] 2022-02-16 22:15:32 | [Mutex] received everything. 2022-02-16 22:15:32 | [Mutex] isItemNotified: received:node:84ace991-e8be-4b02-ab2d-5a8dfcefb4a1:localhost:node-dfd4f324-8bf1-4cba-848a-d7794977a5a1:Node dfd4f324-8bf1-4cba-848a-d7794977a5a1 :: false |
deleteSubnodes | 1.033s |
2022-02-16 22:15:29 |
2022-02-16 22:15:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:29 | ------------------------------------ 2022-02-16 22:15:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de" } 2022-02-16 22:15:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-02-16 22:15:30 | [Mutex] waiting for: [received:nodes:9a07acb8-e62c-44e8-95ea-2703ca76060d:localhost] 2022-02-16 22:15:30 | [Mutex] received everything. 2022-02-16 22:15:30 | [Mutex] isItemNotified: received:node:9a07acb8-e62c-44e8-95ea-2703ca76060d:localhost:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:Node 390cdd0e-4f19-447a-9a7a-da5fe7def2de :: false 2022-02-16 22:15:30 | [Mutex] waiting for: [received:nodes:7f27f8e1-7b24-4d9d-8c8a-d47c549fd826:localhost] 2022-02-16 22:15:30 | [Mutex] received everything. 2022-02-16 22:15:30 | [Mutex] isItemNotified: received:node:7f27f8e1-7b24-4d9d-8c8a-d47c549fd826:localhost:node-390cdd0e-4f19-447a-9a7a-da5fe7def2de:Node 390cdd0e-4f19-447a-9a7a-da5fe7def2de :: false |
publishItemsToNodes | 0.065s |
2022-02-16 22:15:28 |
2022-02-16 22:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:28 | ------------------------------------ 2022-02-16 22:15:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "entry": "<test>item-fafb75bc-f926-46f0-8923-3c4b0ef01fda</test>", "item-id": "item-fafb75bc-f926-46f0-8923-3c4b0ef01fda" } 2022-02-16 22:15:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fafb75bc-f926-46f0-8923-3c4b0ef01fda" } 2022-02-16 22:15:28 | [Mutex] waiting for: [published:item:notifieditem-fafb75bc-f926-46f0-8923-3c4b0ef01fda:admin@test-domain.com] 2022-02-16 22:15:28 | [Mutex] received everything. 2022-02-16 22:15:28 | [Mutex] isItemNotified: published:item:notifieditem-fafb75bc-f926-46f0-8923-3c4b0ef01fda:admin@test-domain.com :: true |
retractItemsFromNodes | 0.076s |
2022-02-16 22:15:28 |
2022-02-16 22:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:28 | ------------------------------------ 2022-02-16 22:15:28 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "item-id": "item-fafb75bc-f926-46f0-8923-3c4b0ef01fda" } 2022-02-16 22:15:28 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fafb75bc-f926-46f0-8923-3c4b0ef01fda" } 2022-02-16 22:15:28 | [Mutex] received everything. 2022-02-16 22:15:28 | [Mutex] isItemNotified: retracted:item:notifieditem-fafb75bc-f926-46f0-8923-3c4b0ef01fda:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.044s |
2022-02-16 22:15:28 |
2022-02-16 22:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:28 | ------------------------------------ 2022-02-16 22:15:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "item-id": "item-fafb75bc-f926-46f0-8923-3c4b0ef01fda" } 2022-02-16 22:15:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "item-id": "item-fafb75bc-f926-46f0-8923-3c4b0ef01fda", "item": [ "<item id=\"item-fafb75bc-f926-46f0-8923-3c4b0ef01fda\"><test>item-fafb75bc-f926-46f0-8923-3c4b0ef01fda</test></item>" ] } 2022-02-16 22:15:28 | [Mutex] notify: [retrieved:item:item-fafb75bc-f926-46f0-8923-3c4b0ef01fda:payload-matches:true:localhost] 2022-02-16 22:15:28 | [Mutex] received everything. 2022-02-16 22:15:28 | [Mutex] isItemNotified: retrieved:item:item-fafb75bc-f926-46f0-8923-3c4b0ef01fda:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2022-02-16 22:15:28 |
2022-02-16 22:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:28 | ------------------------------------ 2022-02-16 22:15:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-02-16 22:15:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "node-dfd4f324-8bf1-4cba-848a-d7794977a5a1" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-02-16 22:15:28 |
2022-02-16 22:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:28 | ------------------------------------ 2022-02-16 22:15:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-390cdd0e-4f19-447a-9a7a-da5fe7def2de)" } 2022-02-16 22:15:28 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-02-16 22:15:27 |
2022-02-16 22:15:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:27 | ------------------------------------ 2022-02-16 22:15:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "jids": [ "admin@test-domain.com" ] } 2022-02-16 22:15:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2022-02-16 22:15:28 |
2022-02-16 22:15:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-02-16 22:15:28 | ------------------------------------ 2022-02-16 22:15:28 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-390cdd0e-4f19-447a-9a7a-da5fe7def2de", "jids": [ "admin@test-domain.com" ] } 2022-02-16 22:15:28 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |