Test duration : 8.953s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.092s |
2020-09-28 22:41:51 |
2020-09-28 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:51 | ------------------------------------ 2020-09-28 22:41:51 | [Mutex] waiting for: [configured:node:node-5368f83a-049a-4fff-83f5-731ed25c899b:node-e4fe7d1b-338b-4131-8e21-24737bfe40f0] 2020-09-28 22:41:51 | [Mutex] received everything. 2020-09-28 22:41:51 | [Mutex] isItemNotified: configured:node:node-5368f83a-049a-4fff-83f5-731ed25c899b:node-e4fe7d1b-338b-4131-8e21-24737bfe40f0 :: true 2020-09-28 22:41:52 | [Mutex] waiting for: [received:nodes:2ebe9e01-3863-4ebe-b3e1-78c1f675613d:localhost] 2020-09-28 22:41:52 | [Mutex] received everything. 2020-09-28 22:41:52 | [Mutex] isItemNotified: received:node:2ebe9e01-3863-4ebe-b3e1-78c1f675613d:localhost:node-5368f83a-049a-4fff-83f5-731ed25c899b:Node 5368f83a-049a-4fff-83f5-731ed25c899b :: true 2020-09-28 22:41:52 | [Mutex] waiting for: [received:nodes:47f78fba-9acc-492e-a69e-90b426bfdecd:localhost] 2020-09-28 22:41:52 | [Mutex] waiting for: [received:nodes:47f78fba-9acc-492e-a69e-90b426bfdecd:localhost] 2020-09-28 22:41:52 | [Mutex] received everything. 2020-09-28 22:41:52 | [Mutex] isItemNotified: received:node:47f78fba-9acc-492e-a69e-90b426bfdecd:localhost:node-5368f83a-049a-4fff-83f5-731ed25c899b:Node 5368f83a-049a-4fff-83f5-731ed25c899b :: false |
createNodes | 1.672s |
2020-09-28 22:41:48 |
2020-09-28 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:48 | ------------------------------------ 2020-09-28 22:41:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "pubsub#title": "Node 5368f83a-049a-4fff-83f5-731ed25c899b" } 2020-09-28 22:41:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 22:41:50 | [Mutex] waiting for: [received:nodes:2e147d85-b56f-4051-9b03-8695ad7d4859:localhost] 2020-09-28 22:41:50 | [Mutex] waiting for: [received:nodes:2e147d85-b56f-4051-9b03-8695ad7d4859:localhost] 2020-09-28 22:41:50 | [Mutex] received everything. 2020-09-28 22:41:50 | [Mutex] isItemNotified: received:node:2e147d85-b56f-4051-9b03-8695ad7d4859:localhost:node-5368f83a-049a-4fff-83f5-731ed25c899b:Node 5368f83a-049a-4fff-83f5-731ed25c899b :: true |
createSubnodes | 1.023s |
2020-09-28 22:41:50 |
2020-09-28 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:50 | ------------------------------------ 2020-09-28 22:41:50 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-e4fe7d1b-338b-4131-8e21-24737bfe40f0", "pubsub#title": "Node e4fe7d1b-338b-4131-8e21-24737bfe40f0" } 2020-09-28 22:41:50 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 22:41:51 | [Mutex] waiting for: [received:nodes:fec85d28-b336-4711-b6ca-fa1f343aa93d:localhost] 2020-09-28 22:41:51 | [Mutex] waiting for: [received:nodes:fec85d28-b336-4711-b6ca-fa1f343aa93d:localhost] 2020-09-28 22:41:51 | [Mutex] received everything. 2020-09-28 22:41:51 | [Mutex] isItemNotified: received:node:fec85d28-b336-4711-b6ca-fa1f343aa93d:localhost:node-e4fe7d1b-338b-4131-8e21-24737bfe40f0:Node e4fe7d1b-338b-4131-8e21-24737bfe40f0 :: true |
deleteNodes | 1.019s |
2020-09-28 22:41:55 |
2020-09-28 22:41:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:55 | ------------------------------------ 2020-09-28 22:41:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e4fe7d1b-338b-4131-8e21-24737bfe40f0" } 2020-09-28 22:41:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 22:41:56 | [Mutex] waiting for: [received:nodes:c92fb2c4-9739-4ed4-9f42-899ac0cd0400:localhost] 2020-09-28 22:41:57 | [Mutex] received everything. 2020-09-28 22:41:57 | [Mutex] isItemNotified: received:node:c92fb2c4-9739-4ed4-9f42-899ac0cd0400:localhost:node-e4fe7d1b-338b-4131-8e21-24737bfe40f0:Node e4fe7d1b-338b-4131-8e21-24737bfe40f0 :: false |
deleteSubnodes | 1.031s |
2020-09-28 22:41:54 |
2020-09-28 22:41:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:54 | ------------------------------------ 2020-09-28 22:41:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b" } 2020-09-28 22:41:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-28 22:41:55 | [Mutex] waiting for: [received:nodes:63bbf0e7-c2a3-4e60-97a4-1b990d6cf00c:localhost] 2020-09-28 22:41:55 | [Mutex] received everything. 2020-09-28 22:41:55 | [Mutex] isItemNotified: received:node:63bbf0e7-c2a3-4e60-97a4-1b990d6cf00c:localhost:node-5368f83a-049a-4fff-83f5-731ed25c899b:Node 5368f83a-049a-4fff-83f5-731ed25c899b :: false 2020-09-28 22:41:55 | [Mutex] waiting for: [received:nodes:21b2aeb3-2df3-4ab4-9169-b31ad23b296b:localhost] 2020-09-28 22:41:55 | [Mutex] received everything. 2020-09-28 22:41:55 | [Mutex] isItemNotified: received:node:21b2aeb3-2df3-4ab4-9169-b31ad23b296b:localhost:node-5368f83a-049a-4fff-83f5-731ed25c899b:Node 5368f83a-049a-4fff-83f5-731ed25c899b :: false |
publishItemsToNodes | 0.048s |
2020-09-28 22:41:53 |
2020-09-28 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:53 | ------------------------------------ 2020-09-28 22:41:53 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "entry": "<test>item-db637def-456a-4c69-83ff-26c75fbc83f3</test>", "item-id": "item-db637def-456a-4c69-83ff-26c75fbc83f3" } 2020-09-28 22:41:53 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-db637def-456a-4c69-83ff-26c75fbc83f3" } 2020-09-28 22:41:53 | [Mutex] waiting for: [published:item:notifieditem-db637def-456a-4c69-83ff-26c75fbc83f3:admin@test-domain.com] 2020-09-28 22:41:53 | [Mutex] received everything. 2020-09-28 22:41:53 | [Mutex] isItemNotified: published:item:notifieditem-db637def-456a-4c69-83ff-26c75fbc83f3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.071s |
2020-09-28 22:41:53 |
2020-09-28 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:53 | ------------------------------------ 2020-09-28 22:41:53 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "item-id": "item-db637def-456a-4c69-83ff-26c75fbc83f3" } 2020-09-28 22:41:53 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-db637def-456a-4c69-83ff-26c75fbc83f3" } 2020-09-28 22:41:53 | [Mutex] received everything. 2020-09-28 22:41:53 | [Mutex] isItemNotified: retracted:item:notifieditem-db637def-456a-4c69-83ff-26c75fbc83f3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.062s |
2020-09-28 22:41:53 |
2020-09-28 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:53 | ------------------------------------ 2020-09-28 22:41:53 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "item-id": "item-db637def-456a-4c69-83ff-26c75fbc83f3" } 2020-09-28 22:41:53 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "item-id": "item-db637def-456a-4c69-83ff-26c75fbc83f3", "item": [ "<item id=\"item-db637def-456a-4c69-83ff-26c75fbc83f3\"><test>item-db637def-456a-4c69-83ff-26c75fbc83f3</test></item>" ] } 2020-09-28 22:41:53 | [Mutex] notify: [retrieved:item:item-db637def-456a-4c69-83ff-26c75fbc83f3:payload-matches:true:localhost] 2020-09-28 22:41:53 | [Mutex] received everything. 2020-09-28 22:41:53 | [Mutex] isItemNotified: retrieved:item:item-db637def-456a-4c69-83ff-26c75fbc83f3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.075s |
2020-09-28 22:41:53 |
2020-09-28 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:53 | ------------------------------------ 2020-09-28 22:41:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-28 22:41:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e4fe7d1b-338b-4131-8e21-24737bfe40f0", "test", "node-5368f83a-049a-4fff-83f5-731ed25c899b" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-28 22:41:53 |
2020-09-28 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:53 | ------------------------------------ 2020-09-28 22:41:53 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-5368f83a-049a-4fff-83f5-731ed25c899b)" } 2020-09-28 22:41:53 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-09-28 22:41:52 |
2020-09-28 22:41:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:52 | ------------------------------------ 2020-09-28 22:41:52 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "jids": [ "admin@test-domain.com" ] } 2020-09-28 22:41:52 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-09-28 22:41:53 |
2020-09-28 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-28 22:41:53 | ------------------------------------ 2020-09-28 22:41:53 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-5368f83a-049a-4fff-83f5-731ed25c899b", "jids": [ "admin@test-domain.com" ] } 2020-09-28 22:41:53 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |