Test duration : 8.614s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.093s |
2022-08-26 07:48:26 |
2022-08-26 07:48:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:26 | ------------------------------------ 2022-08-26 07:48:26 | [Mutex] waiting for: [configured:node:node-b787cc11-ecc8-45d4-8766-708555a9a121:node-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0] 2022-08-26 07:48:26 | [Mutex] received everything. 2022-08-26 07:48:26 | [Mutex] isItemNotified: configured:node:node-b787cc11-ecc8-45d4-8766-708555a9a121:node-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0 :: true 2022-08-26 07:48:27 | [Mutex] waiting for: [received:nodes:feb1184e-904f-4930-aaf4-62cb4c46d198:localhost] 2022-08-26 07:48:27 | [Mutex] received everything. 2022-08-26 07:48:27 | [Mutex] isItemNotified: received:node:feb1184e-904f-4930-aaf4-62cb4c46d198:localhost:node-b787cc11-ecc8-45d4-8766-708555a9a121:Node b787cc11-ecc8-45d4-8766-708555a9a121 :: true 2022-08-26 07:48:27 | [Mutex] waiting for: [received:nodes:e525f309-f561-4500-865e-2b67b8dd668c:localhost] 2022-08-26 07:48:27 | [Mutex] received everything. 2022-08-26 07:48:27 | [Mutex] isItemNotified: received:node:e525f309-f561-4500-865e-2b67b8dd668c:localhost:node-b787cc11-ecc8-45d4-8766-708555a9a121:Node b787cc11-ecc8-45d4-8766-708555a9a121 :: false |
createNodes | 1.545s |
2022-08-26 07:48:24 |
2022-08-26 07:48:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:24 | ------------------------------------ 2022-08-26 07:48: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-b787cc11-ecc8-45d4-8766-708555a9a121", "pubsub#title": "Node b787cc11-ecc8-45d4-8766-708555a9a121" } 2022-08-26 07:48:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:48:25 | [Mutex] waiting for: [received:nodes:ddef7af8-9982-46be-8b9d-e4663a7ecd57:localhost] 2022-08-26 07:48:25 | [Mutex] received everything. 2022-08-26 07:48:25 | [Mutex] isItemNotified: received:node:ddef7af8-9982-46be-8b9d-e4663a7ecd57:localhost:node-b787cc11-ecc8-45d4-8766-708555a9a121:Node b787cc11-ecc8-45d4-8766-708555a9a121 :: true |
createSubnodes | 1.021s |
2022-08-26 07:48:25 |
2022-08-26 07:48:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:25 | ------------------------------------ 2022-08-26 07:48: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-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0", "pubsub#title": "Node b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0" } 2022-08-26 07:48:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:48:26 | [Mutex] waiting for: [received:nodes:d5f4af36-97b2-4428-8b56-6b41abde85b2:localhost] 2022-08-26 07:48:26 | [Mutex] received everything. 2022-08-26 07:48:26 | [Mutex] isItemNotified: received:node:d5f4af36-97b2-4428-8b56-6b41abde85b2:localhost:node-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0:Node b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0 :: true |
deleteNodes | 1.023s |
2022-08-26 07:48:31 |
2022-08-26 07:48:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:31 | ------------------------------------ 2022-08-26 07:48:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0" } 2022-08-26 07:48:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:48:32 | [Mutex] waiting for: [received:nodes:bd7cea76-4f84-4805-97a3-ace21f904cd6:localhost] 2022-08-26 07:48:32 | [Mutex] received everything. 2022-08-26 07:48:32 | [Mutex] isItemNotified: received:node:bd7cea76-4f84-4805-97a3-ace21f904cd6:localhost:node-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0:Node b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0 :: false |
deleteSubnodes | 1.027s |
2022-08-26 07:48:30 |
2022-08-26 07:48:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:30 | ------------------------------------ 2022-08-26 07:48:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121" } 2022-08-26 07:48:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-08-26 07:48:31 | [Mutex] waiting for: [received:nodes:c8b78ae4-447f-404b-a059-16ba0bc460ef:localhost] 2022-08-26 07:48:31 | [Mutex] received everything. 2022-08-26 07:48:31 | [Mutex] isItemNotified: received:node:c8b78ae4-447f-404b-a059-16ba0bc460ef:localhost:node-b787cc11-ecc8-45d4-8766-708555a9a121:Node b787cc11-ecc8-45d4-8766-708555a9a121 :: false 2022-08-26 07:48:31 | [Mutex] waiting for: [received:nodes:da0c9a93-b41d-4ed8-8637-efae46bcf55e:localhost] 2022-08-26 07:48:31 | [Mutex] received everything. 2022-08-26 07:48:31 | [Mutex] isItemNotified: received:node:da0c9a93-b41d-4ed8-8637-efae46bcf55e:localhost:node-b787cc11-ecc8-45d4-8766-708555a9a121:Node b787cc11-ecc8-45d4-8766-708555a9a121 :: false |
publishItemsToNodes | 0.040s |
2022-08-26 07:48:28 |
2022-08-26 07:48:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:28 | ------------------------------------ 2022-08-26 07:48:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121", "entry": "<test>item-f89081b3-282f-4bb6-97b6-fe3395fc3112</test>", "item-id": "item-f89081b3-282f-4bb6-97b6-fe3395fc3112" } 2022-08-26 07:48:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f89081b3-282f-4bb6-97b6-fe3395fc3112" } 2022-08-26 07:48:28 | [Mutex] waiting for: [published:item:notifieditem-f89081b3-282f-4bb6-97b6-fe3395fc3112:admin@test-domain.com] 2022-08-26 07:48:28 | [Mutex] received everything. 2022-08-26 07:48:28 | [Mutex] isItemNotified: published:item:notifieditem-f89081b3-282f-4bb6-97b6-fe3395fc3112:admin@test-domain.com :: true |
retractItemsFromNodes | 0.079s |
2022-08-26 07:48:29 |
2022-08-26 07:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:29 | ------------------------------------ 2022-08-26 07:48:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121", "item-id": "item-f89081b3-282f-4bb6-97b6-fe3395fc3112" } 2022-08-26 07:48:29 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f89081b3-282f-4bb6-97b6-fe3395fc3112" } 2022-08-26 07:48:29 | [Mutex] waiting for: [retracted:item:notifieditem-f89081b3-282f-4bb6-97b6-fe3395fc3112:admin@test-domain.com] 2022-08-26 07:48:29 | [Mutex] received everything. 2022-08-26 07:48:29 | [Mutex] isItemNotified: retracted:item:notifieditem-f89081b3-282f-4bb6-97b6-fe3395fc3112:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.084s |
2022-08-26 07:48:28 |
2022-08-26 07:48:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:28 | ------------------------------------ 2022-08-26 07:48:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121", "item-id": "item-f89081b3-282f-4bb6-97b6-fe3395fc3112" } 2022-08-26 07:48:29 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121", "item-id": "item-f89081b3-282f-4bb6-97b6-fe3395fc3112", "item": [ "<item id=\"item-f89081b3-282f-4bb6-97b6-fe3395fc3112\"><test>item-f89081b3-282f-4bb6-97b6-fe3395fc3112</test></item>" ] } 2022-08-26 07:48:29 | [Mutex] notify: [retrieved:item:item-f89081b3-282f-4bb6-97b6-fe3395fc3112:payload-matches:true:localhost] 2022-08-26 07:48:29 | [Mutex] received everything. 2022-08-26 07:48:29 | [Mutex] isItemNotified: retrieved:item:item-f89081b3-282f-4bb6-97b6-fe3395fc3112:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2022-08-26 07:48:29 |
2022-08-26 07:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:29 | ------------------------------------ 2022-08-26 07:48:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-08-26 07:48:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-b787cc11-ecc8-45d4-8766-708555a9a121", "test", "node-b01cd2a0-54bb-47ab-ba7e-2a7cbb36d5f0" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2022-08-26 07:48:29 |
2022-08-26 07:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:29 | ------------------------------------ 2022-08-26 07:48:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b787cc11-ecc8-45d4-8766-708555a9a121)" } 2022-08-26 07:48:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-08-26 07:48:27 |
2022-08-26 07:48:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:27 | ------------------------------------ 2022-08-26 07:48:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121", "jids": [ "admin@test-domain.com" ] } 2022-08-26 07:48:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-08-26 07:48:29 |
2022-08-26 07:48:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-08-26 07:48:29 | ------------------------------------ 2022-08-26 07:48:29 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b787cc11-ecc8-45d4-8766-708555a9a121", "jids": [ "admin@test-domain.com" ] } 2022-08-26 07:48:29 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |