Test duration : 8.606s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.140s |
2023-03-26 22:30:38 |
2023-03-26 22:30:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:38 | ------------------------------------ 2023-03-26 22:30:38 | [Mutex] waiting for: [configured:node:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9] 2023-03-26 22:30:38 | [Mutex] received everything. 2023-03-26 22:30:38 | [Mutex] isItemNotified: configured:node:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9 :: true 2023-03-26 22:30:39 | [Mutex] waiting for: [received:nodes:750046fc-d44c-45c8-b674-43a3c77a6838:localhost] 2023-03-26 22:30:39 | [Mutex] received everything. 2023-03-26 22:30:39 | [Mutex] isItemNotified: received:node:750046fc-d44c-45c8-b674-43a3c77a6838:localhost:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:Node ecb5b9b0-0675-47d6-acec-7edc4b07229e :: true 2023-03-26 22:30:39 | [Mutex] waiting for: [received:nodes:efc8ca4a-f2e7-4ba4-a33a-0efbd5954573:localhost] 2023-03-26 22:30:39 | [Mutex] waiting for: [received:nodes:efc8ca4a-f2e7-4ba4-a33a-0efbd5954573:localhost] 2023-03-26 22:30:39 | [Mutex] waiting for: [received:nodes:efc8ca4a-f2e7-4ba4-a33a-0efbd5954573:localhost] 2023-03-26 22:30:39 | [Mutex] waiting for: [received:nodes:efc8ca4a-f2e7-4ba4-a33a-0efbd5954573:localhost] 2023-03-26 22:30:39 | [Mutex] received everything. 2023-03-26 22:30:39 | [Mutex] isItemNotified: received:node:efc8ca4a-f2e7-4ba4-a33a-0efbd5954573:localhost:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:Node ecb5b9b0-0675-47d6-acec-7edc4b07229e :: false |
createNodes | 1.584s |
2023-03-26 22:30:36 |
2023-03-26 22:30:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:36 | ------------------------------------ 2023-03-26 22:30:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "pubsub#title": "Node ecb5b9b0-0675-47d6-acec-7edc4b07229e" } 2023-03-26 22:30:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-26 22:30:37 | [Mutex] waiting for: [received:nodes:cea46b87-c0ae-42e2-970e-124b992777b0:localhost] 2023-03-26 22:30:37 | [Mutex] received everything. 2023-03-26 22:30:37 | [Mutex] isItemNotified: received:node:cea46b87-c0ae-42e2-970e-124b992777b0:localhost:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:Node ecb5b9b0-0675-47d6-acec-7edc4b07229e :: true |
createSubnodes | 1.022s |
2023-03-26 22:30:37 |
2023-03-26 22:30:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:37 | ------------------------------------ 2023-03-26 22:30:37 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9", "pubsub#title": "Node e81f175b-8ffd-4a1a-ad40-912afd48fdd9" } 2023-03-26 22:30:37 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-26 22:30:38 | [Mutex] waiting for: [received:nodes:df81ba85-7fba-44fc-9478-35793036f4d7:localhost] 2023-03-26 22:30:38 | [Mutex] waiting for: [received:nodes:df81ba85-7fba-44fc-9478-35793036f4d7:localhost] 2023-03-26 22:30:38 | [Mutex] waiting for: [received:nodes:df81ba85-7fba-44fc-9478-35793036f4d7:localhost] 2023-03-26 22:30:38 | [Mutex] waiting for: [received:nodes:df81ba85-7fba-44fc-9478-35793036f4d7:localhost] 2023-03-26 22:30:38 | [Mutex] waiting for: [received:nodes:df81ba85-7fba-44fc-9478-35793036f4d7:localhost] 2023-03-26 22:30:38 | [Mutex] received everything. 2023-03-26 22:30:38 | [Mutex] isItemNotified: received:node:df81ba85-7fba-44fc-9478-35793036f4d7:localhost:node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9:Node e81f175b-8ffd-4a1a-ad40-912afd48fdd9 :: true |
deleteNodes | 1.019s |
2023-03-26 22:30:43 |
2023-03-26 22:30:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:43 | ------------------------------------ 2023-03-26 22:30:43 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9" } 2023-03-26 22:30:43 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-26 22:30:44 | [Mutex] waiting for: [received:nodes:eca1d707-3768-4c45-b0f0-d646bb7ba6f9:localhost] 2023-03-26 22:30:44 | [Mutex] waiting for: [received:nodes:eca1d707-3768-4c45-b0f0-d646bb7ba6f9:localhost] 2023-03-26 22:30:44 | [Mutex] received everything. 2023-03-26 22:30:44 | [Mutex] isItemNotified: received:node:eca1d707-3768-4c45-b0f0-d646bb7ba6f9:localhost:node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9:Node e81f175b-8ffd-4a1a-ad40-912afd48fdd9 :: false |
deleteSubnodes | 1.032s |
2023-03-26 22:30:42 |
2023-03-26 22:30:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:42 | ------------------------------------ 2023-03-26 22:30:42 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e" } 2023-03-26 22:30:42 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2023-03-26 22:30:43 | [Mutex] waiting for: [received:nodes:c5b1324e-423c-46a6-b8d6-0f97a9e59635:localhost] 2023-03-26 22:30:43 | [Mutex] waiting for: [received:nodes:c5b1324e-423c-46a6-b8d6-0f97a9e59635:localhost] 2023-03-26 22:30:43 | [Mutex] waiting for: [received:nodes:c5b1324e-423c-46a6-b8d6-0f97a9e59635:localhost] 2023-03-26 22:30:43 | [Mutex] waiting for: [received:nodes:c5b1324e-423c-46a6-b8d6-0f97a9e59635:localhost] 2023-03-26 22:30:43 | [Mutex] received everything. 2023-03-26 22:30:43 | [Mutex] isItemNotified: received:node:c5b1324e-423c-46a6-b8d6-0f97a9e59635:localhost:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:Node ecb5b9b0-0675-47d6-acec-7edc4b07229e :: false 2023-03-26 22:30:43 | [Mutex] waiting for: [received:nodes:5afad660-64dd-408e-bda3-b26868088b73:localhost] 2023-03-26 22:30:43 | [Mutex] received everything. 2023-03-26 22:30:43 | [Mutex] isItemNotified: received:node:5afad660-64dd-408e-bda3-b26868088b73:localhost:node-ecb5b9b0-0675-47d6-acec-7edc4b07229e:Node ecb5b9b0-0675-47d6-acec-7edc4b07229e :: false |
publishItemsToNodes | 0.040s |
2023-03-26 22:30:40 |
2023-03-26 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:40 | ------------------------------------ 2023-03-26 22:30:40 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "entry": "<test>item-37e07449-490a-45bc-a14e-aad5e96af685</test>", "item-id": "item-37e07449-490a-45bc-a14e-aad5e96af685" } 2023-03-26 22:30:40 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-37e07449-490a-45bc-a14e-aad5e96af685" } 2023-03-26 22:30:40 | [Mutex] waiting for: [published:item:notifieditem-37e07449-490a-45bc-a14e-aad5e96af685:admin@test-domain.com] 2023-03-26 22:30:40 | [Mutex] received everything. 2023-03-26 22:30:40 | [Mutex] isItemNotified: published:item:notifieditem-37e07449-490a-45bc-a14e-aad5e96af685:admin@test-domain.com :: true |
retractItemsFromNodes | 0.058s |
2023-03-26 22:30:41 |
2023-03-26 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:41 | ------------------------------------ 2023-03-26 22:30:41 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "item-id": "item-37e07449-490a-45bc-a14e-aad5e96af685" } 2023-03-26 22:30:41 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-37e07449-490a-45bc-a14e-aad5e96af685" } 2023-03-26 22:30:41 | [Mutex] received everything. 2023-03-26 22:30:41 | [Mutex] isItemNotified: retracted:item:notifieditem-37e07449-490a-45bc-a14e-aad5e96af685:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.066s |
2023-03-26 22:30:40 |
2023-03-26 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:40 | ------------------------------------ 2023-03-26 22:30:40 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "item-id": "item-37e07449-490a-45bc-a14e-aad5e96af685" } 2023-03-26 22:30:40 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "item-id": "item-37e07449-490a-45bc-a14e-aad5e96af685", "item": [ "<item id=\"item-37e07449-490a-45bc-a14e-aad5e96af685\"><test>item-37e07449-490a-45bc-a14e-aad5e96af685</test></item>" ] } 2023-03-26 22:30:40 | [Mutex] notify: [retrieved:item:item-37e07449-490a-45bc-a14e-aad5e96af685:payload-matches:true:localhost] 2023-03-26 22:30:40 | [Mutex] received everything. 2023-03-26 22:30:40 | [Mutex] isItemNotified: retrieved:item:item-37e07449-490a-45bc-a14e-aad5e96af685:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2023-03-26 22:30:40 |
2023-03-26 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:40 | ------------------------------------ 2023-03-26 22:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2023-03-26 22:30:40 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "node-e81f175b-8ffd-4a1a-ad40-912afd48fdd9" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2023-03-26 22:30:40 |
2023-03-26 22:30:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:40 | ------------------------------------ 2023-03-26 22:30:40 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ecb5b9b0-0675-47d6-acec-7edc4b07229e)" } 2023-03-26 22:30:41 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2023-03-26 22:30:39 |
2023-03-26 22:30:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:39 | ------------------------------------ 2023-03-26 22:30:39 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "jids": [ "admin@test-domain.com" ] } 2023-03-26 22:30:39 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2023-03-26 22:30:41 |
2023-03-26 22:30:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2023-03-26 22:30:41 | ------------------------------------ 2023-03-26 22:30:41 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ecb5b9b0-0675-47d6-acec-7edc4b07229e", "jids": [ "admin@test-domain.com" ] } 2023-03-26 22:30:41 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |