Test duration : 9.107s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.167s |
2020-09-02 23:17:20 |
2020-09-02 23:17:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:20 | ------------------------------------ 2020-09-02 23:17:20 | [Mutex] waiting for: [configured:node:node-efe53884-14e8-40d6-bdf2-08646d3f116c:node-24191ce1-9bdc-426f-8fe6-cec4db0137a5] 2020-09-02 23:17:20 | [Mutex] received everything. 2020-09-02 23:17:20 | [Mutex] isItemNotified: configured:node:node-efe53884-14e8-40d6-bdf2-08646d3f116c:node-24191ce1-9bdc-426f-8fe6-cec4db0137a5 :: true 2020-09-02 23:17:21 | [Mutex] waiting for: [received:nodes:1db92af8-5274-436a-bbaa-50ea6523e30f:localhost] 2020-09-02 23:17:21 | [Mutex] received everything. 2020-09-02 23:17:21 | [Mutex] isItemNotified: received:node:1db92af8-5274-436a-bbaa-50ea6523e30f:localhost:node-efe53884-14e8-40d6-bdf2-08646d3f116c:Node efe53884-14e8-40d6-bdf2-08646d3f116c :: true 2020-09-02 23:17:21 | [Mutex] waiting for: [received:nodes:cbe532cb-60bf-4583-98c9-7aa11a7f367c:localhost] 2020-09-02 23:17:21 | [Mutex] waiting for: [received:nodes:cbe532cb-60bf-4583-98c9-7aa11a7f367c:localhost] 2020-09-02 23:17:21 | [Mutex] received everything. 2020-09-02 23:17:21 | [Mutex] isItemNotified: received:node:cbe532cb-60bf-4583-98c9-7aa11a7f367c:localhost:node-efe53884-14e8-40d6-bdf2-08646d3f116c:Node efe53884-14e8-40d6-bdf2-08646d3f116c :: false |
createNodes | 1.693s |
2020-09-02 23:17:17 |
2020-09-02 23:17:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:17 | ------------------------------------ 2020-09-02 23:17: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-efe53884-14e8-40d6-bdf2-08646d3f116c", "pubsub#title": "Node efe53884-14e8-40d6-bdf2-08646d3f116c" } 2020-09-02 23:17:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 23:17:19 | [Mutex] waiting for: [received:nodes:11d7150e-398d-4cc2-bb53-9097cf86aba9:localhost] 2020-09-02 23:17:19 | [Mutex] received everything. 2020-09-02 23:17:19 | [Mutex] isItemNotified: received:node:11d7150e-398d-4cc2-bb53-9097cf86aba9:localhost:node-efe53884-14e8-40d6-bdf2-08646d3f116c:Node efe53884-14e8-40d6-bdf2-08646d3f116c :: true |
createSubnodes | 1.031s |
2020-09-02 23:17:19 |
2020-09-02 23:17:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:19 | ------------------------------------ 2020-09-02 23:17: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-24191ce1-9bdc-426f-8fe6-cec4db0137a5", "pubsub#title": "Node 24191ce1-9bdc-426f-8fe6-cec4db0137a5" } 2020-09-02 23:17:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 23:17:20 | [Mutex] waiting for: [received:nodes:ca439689-77da-41c4-a7c1-a6259f9484a0:localhost] 2020-09-02 23:17:20 | [Mutex] received everything. 2020-09-02 23:17:20 | [Mutex] isItemNotified: received:node:ca439689-77da-41c4-a7c1-a6259f9484a0:localhost:node-24191ce1-9bdc-426f-8fe6-cec4db0137a5:Node 24191ce1-9bdc-426f-8fe6-cec4db0137a5 :: true |
deleteNodes | 1.021s |
2020-09-02 23:17:25 |
2020-09-02 23:17:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:25 | ------------------------------------ 2020-09-02 23:17:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-24191ce1-9bdc-426f-8fe6-cec4db0137a5" } 2020-09-02 23:17:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 23:17:26 | [Mutex] waiting for: [received:nodes:a35393e6-bc9a-4fc4-a6cd-cefcdd12d86d:localhost] 2020-09-02 23:17:26 | [Mutex] received everything. 2020-09-02 23:17:26 | [Mutex] isItemNotified: received:node:a35393e6-bc9a-4fc4-a6cd-cefcdd12d86d:localhost:node-24191ce1-9bdc-426f-8fe6-cec4db0137a5:Node 24191ce1-9bdc-426f-8fe6-cec4db0137a5 :: false |
deleteSubnodes | 1.026s |
2020-09-02 23:17:24 |
2020-09-02 23:17:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:24 | ------------------------------------ 2020-09-02 23:17:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c" } 2020-09-02 23:17:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-02 23:17:25 | [Mutex] waiting for: [received:nodes:09581554-1116-46ea-8fec-0ac8000bf0b4:localhost] 2020-09-02 23:17:25 | [Mutex] received everything. 2020-09-02 23:17:25 | [Mutex] isItemNotified: received:node:09581554-1116-46ea-8fec-0ac8000bf0b4:localhost:node-efe53884-14e8-40d6-bdf2-08646d3f116c:Node efe53884-14e8-40d6-bdf2-08646d3f116c :: false 2020-09-02 23:17:25 | [Mutex] waiting for: [received:nodes:e5d9f9b7-61d3-4f5b-97bb-82bc64262e7e:localhost] 2020-09-02 23:17:25 | [Mutex] received everything. 2020-09-02 23:17:25 | [Mutex] isItemNotified: received:node:e5d9f9b7-61d3-4f5b-97bb-82bc64262e7e:localhost:node-efe53884-14e8-40d6-bdf2-08646d3f116c:Node efe53884-14e8-40d6-bdf2-08646d3f116c :: false |
publishItemsToNodes | 0.061s |
2020-09-02 23:17:22 |
2020-09-02 23:17:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:22 | ------------------------------------ 2020-09-02 23:17:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c", "entry": "<test>item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3</test>", "item-id": "item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3" } 2020-09-02 23:17:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3" } 2020-09-02 23:17:22 | [Mutex] waiting for: [published:item:notifieditem-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3:admin@test-domain.com] 2020-09-02 23:17:22 | [Mutex] received everything. 2020-09-02 23:17:22 | [Mutex] isItemNotified: published:item:notifieditem-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.091s |
2020-09-02 23:17:22 |
2020-09-02 23:17:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:22 | ------------------------------------ 2020-09-02 23:17:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c", "item-id": "item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3" } 2020-09-02 23:17:23 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3" } 2020-09-02 23:17:23 | [Mutex] received everything. 2020-09-02 23:17:23 | [Mutex] isItemNotified: retracted:item:notifieditem-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.018s |
2020-09-02 23:17:22 |
2020-09-02 23:17:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:22 | ------------------------------------ 2020-09-02 23:17:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c", "item-id": "item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3" } 2020-09-02 23:17:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c", "item-id": "item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3", "item": [ "<item id=\"item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3\"><test>item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3</test></item>" ] } 2020-09-02 23:17:22 | [Mutex] notify: [retrieved:item:item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3:payload-matches:true:localhost] 2020-09-02 23:17:22 | [Mutex] received everything. 2020-09-02 23:17:22 | [Mutex] isItemNotified: retrieved:item:item-c9eb7dd8-c4f6-4ad4-bc00-31b6f0ba9ea3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.071s |
2020-09-02 23:17:22 |
2020-09-02 23:17:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:22 | ------------------------------------ 2020-09-02 23:17:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-02 23:17:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-24191ce1-9bdc-426f-8fe6-cec4db0137a5", "node-efe53884-14e8-40d6-bdf2-08646d3f116c" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-02 23:17:22 |
2020-09-02 23:17:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:22 | ------------------------------------ 2020-09-02 23:17:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-efe53884-14e8-40d6-bdf2-08646d3f116c)" } 2020-09-02 23:17:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.024s |
2020-09-02 23:17:21 |
2020-09-02 23:17:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:21 | ------------------------------------ 2020-09-02 23:17:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c", "jids": [ "admin@test-domain.com" ] } 2020-09-02 23:17:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-02 23:17:23 |
2020-09-02 23:17:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-02 23:17:23 | ------------------------------------ 2020-09-02 23:17:23 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-efe53884-14e8-40d6-bdf2-08646d3f116c", "jids": [ "admin@test-domain.com" ] } 2020-09-02 23:17:23 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |