Test duration : 9.096s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.120s |
2021-05-27 22:45:16 |
2021-05-27 22:45:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:16 | ------------------------------------ 2021-05-27 22:45:16 | [Mutex] waiting for: [configured:node:node-823184d7-3831-48e1-a236-f1399c9fbbf1:node-25015093-dfc3-4d20-be96-c22e18880e99] 2021-05-27 22:45:16 | [Mutex] received everything. 2021-05-27 22:45:16 | [Mutex] isItemNotified: configured:node:node-823184d7-3831-48e1-a236-f1399c9fbbf1:node-25015093-dfc3-4d20-be96-c22e18880e99 :: true 2021-05-27 22:45:17 | [Mutex] waiting for: [received:nodes:41e10c81-c9d4-49a0-9ed2-29fe3bedcf3b:localhost] 2021-05-27 22:45:17 | [Mutex] received everything. 2021-05-27 22:45:17 | [Mutex] isItemNotified: received:node:41e10c81-c9d4-49a0-9ed2-29fe3bedcf3b:localhost:node-823184d7-3831-48e1-a236-f1399c9fbbf1:Node 823184d7-3831-48e1-a236-f1399c9fbbf1 :: true 2021-05-27 22:45:17 | [Mutex] waiting for: [received:nodes:561d509a-67c9-4bd1-a3e7-93fe563622b3:localhost] 2021-05-27 22:45:17 | [Mutex] received everything. 2021-05-27 22:45:17 | [Mutex] isItemNotified: received:node:561d509a-67c9-4bd1-a3e7-93fe563622b3:localhost:node-823184d7-3831-48e1-a236-f1399c9fbbf1:Node 823184d7-3831-48e1-a236-f1399c9fbbf1 :: false |
createNodes | 1.736s |
2021-05-27 22:45:13 |
2021-05-27 22:45:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:13 | ------------------------------------ 2021-05-27 22:45:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "pubsub#title": "Node 823184d7-3831-48e1-a236-f1399c9fbbf1" } 2021-05-27 22:45:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 22:45:15 | [Mutex] waiting for: [received:nodes:4e254a44-cd2e-4643-a809-94d50690eff9:localhost] 2021-05-27 22:45:15 | [Mutex] received everything. 2021-05-27 22:45:15 | [Mutex] isItemNotified: received:node:4e254a44-cd2e-4643-a809-94d50690eff9:localhost:node-823184d7-3831-48e1-a236-f1399c9fbbf1:Node 823184d7-3831-48e1-a236-f1399c9fbbf1 :: true |
createSubnodes | 1.030s |
2021-05-27 22:45:15 |
2021-05-27 22:45:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:15 | ------------------------------------ 2021-05-27 22:45:15 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-25015093-dfc3-4d20-be96-c22e18880e99", "pubsub#title": "Node 25015093-dfc3-4d20-be96-c22e18880e99" } 2021-05-27 22:45:15 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 22:45:16 | [Mutex] waiting for: [received:nodes:16b0c824-4b09-4ff0-b370-efaf2f8ae65c:localhost] 2021-05-27 22:45:16 | [Mutex] received everything. 2021-05-27 22:45:16 | [Mutex] isItemNotified: received:node:16b0c824-4b09-4ff0-b370-efaf2f8ae65c:localhost:node-25015093-dfc3-4d20-be96-c22e18880e99:Node 25015093-dfc3-4d20-be96-c22e18880e99 :: true |
deleteNodes | 1.026s |
2021-05-27 22:45:21 |
2021-05-27 22:45:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:21 | ------------------------------------ 2021-05-27 22:45:21 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-25015093-dfc3-4d20-be96-c22e18880e99" } 2021-05-27 22:45:21 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 22:45:22 | [Mutex] waiting for: [received:nodes:038c9b79-3cb4-48c9-a523-7b565dd471f9:localhost] 2021-05-27 22:45:22 | [Mutex] waiting for: [received:nodes:038c9b79-3cb4-48c9-a523-7b565dd471f9:localhost] 2021-05-27 22:45:22 | [Mutex] received everything. 2021-05-27 22:45:22 | [Mutex] isItemNotified: received:node:038c9b79-3cb4-48c9-a523-7b565dd471f9:localhost:node-25015093-dfc3-4d20-be96-c22e18880e99:Node 25015093-dfc3-4d20-be96-c22e18880e99 :: false |
deleteSubnodes | 1.032s |
2021-05-27 22:45:20 |
2021-05-27 22:45:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:20 | ------------------------------------ 2021-05-27 22:45:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1" } 2021-05-27 22:45:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 22:45:21 | [Mutex] waiting for: [received:nodes:4fec9a80-c84c-4c54-8a70-4dc10157a692:localhost] 2021-05-27 22:45:21 | [Mutex] received everything. 2021-05-27 22:45:21 | [Mutex] isItemNotified: received:node:4fec9a80-c84c-4c54-8a70-4dc10157a692:localhost:node-823184d7-3831-48e1-a236-f1399c9fbbf1:Node 823184d7-3831-48e1-a236-f1399c9fbbf1 :: false 2021-05-27 22:45:21 | [Mutex] waiting for: [received:nodes:7a82743e-d3f3-4389-9bff-e06779de294f:localhost] 2021-05-27 22:45:21 | [Mutex] received everything. 2021-05-27 22:45:21 | [Mutex] isItemNotified: received:node:7a82743e-d3f3-4389-9bff-e06779de294f:localhost:node-823184d7-3831-48e1-a236-f1399c9fbbf1:Node 823184d7-3831-48e1-a236-f1399c9fbbf1 :: false |
publishItemsToNodes | 0.067s |
2021-05-27 22:45:18 |
2021-05-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:18 | ------------------------------------ 2021-05-27 22:45:18 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "entry": "<test>item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2</test>", "item-id": "item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2" } 2021-05-27 22:45:18 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2" } 2021-05-27 22:45:18 | [Mutex] waiting for: [published:item:notifieditem-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2:admin@test-domain.com] 2021-05-27 22:45:18 | [Mutex] received everything. 2021-05-27 22:45:18 | [Mutex] isItemNotified: published:item:notifieditem-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2:admin@test-domain.com :: true |
retractItemsFromNodes | 0.055s |
2021-05-27 22:45:18 |
2021-05-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:18 | ------------------------------------ 2021-05-27 22:45:18 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "item-id": "item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2" } 2021-05-27 22:45:18 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2" } 2021-05-27 22:45:18 | [Mutex] received everything. 2021-05-27 22:45:18 | [Mutex] isItemNotified: retracted:item:notifieditem-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.150s |
2021-05-27 22:45:18 |
2021-05-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:18 | ------------------------------------ 2021-05-27 22:45:18 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "item-id": "item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2" } 2021-05-27 22:45:18 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "item-id": "item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2", "item": [ "<item id=\"item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2\"><test>item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2</test></item>" ] } 2021-05-27 22:45:18 | [Mutex] notify: [retrieved:item:item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2:payload-matches:true:localhost] 2021-05-27 22:45:18 | [Mutex] received everything. 2021-05-27 22:45:18 | [Mutex] isItemNotified: retrieved:item:item-15a01c0b-5719-4edc-8e9a-e2a15f6c1ad2:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-05-27 22:45:18 |
2021-05-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:18 | ------------------------------------ 2021-05-27 22:45:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-27 22:45:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "node-25015093-dfc3-4d20-be96-c22e18880e99" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-05-27 22:45:18 |
2021-05-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:18 | ------------------------------------ 2021-05-27 22:45:18 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-823184d7-3831-48e1-a236-f1399c9fbbf1)" } 2021-05-27 22:45:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-05-27 22:45:17 |
2021-05-27 22:45:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:17 | ------------------------------------ 2021-05-27 22:45:17 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "jids": [ "admin@test-domain.com" ] } 2021-05-27 22:45:17 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2021-05-27 22:45:18 |
2021-05-27 22:45:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 22:45:18 | ------------------------------------ 2021-05-27 22:45:18 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-823184d7-3831-48e1-a236-f1399c9fbbf1", "jids": [ "admin@test-domain.com" ] } 2021-05-27 22:45:19 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |