Test duration : 9.023s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.113s |
2020-09-07 00:38:50 |
2020-09-07 00:38:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:50 | ------------------------------------ 2020-09-07 00:38:50 | [Mutex] waiting for: [configured:node:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:node-7e211646-d05d-4502-93c8-4850b2c6a155] 2020-09-07 00:38:50 | [Mutex] received everything. 2020-09-07 00:38:50 | [Mutex] isItemNotified: configured:node:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:node-7e211646-d05d-4502-93c8-4850b2c6a155 :: true 2020-09-07 00:38:51 | [Mutex] waiting for: [received:nodes:2a175ee5-3c54-4102-b106-0a3f0556447b:localhost] 2020-09-07 00:38:51 | [Mutex] received everything. 2020-09-07 00:38:51 | [Mutex] isItemNotified: received:node:2a175ee5-3c54-4102-b106-0a3f0556447b:localhost:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:Node 4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21 :: true 2020-09-07 00:38:51 | [Mutex] waiting for: [received:nodes:c9917015-6eaf-4190-b531-c016b6f6d1c7:localhost] 2020-09-07 00:38:51 | [Mutex] received everything. 2020-09-07 00:38:51 | [Mutex] isItemNotified: received:node:c9917015-6eaf-4190-b531-c016b6f6d1c7:localhost:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:Node 4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21 :: false |
createNodes | 1.559s |
2020-09-07 00:38:47 |
2020-09-07 00:38:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:47 | ------------------------------------ 2020-09-07 00:38:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "pubsub#title": "Node 4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21" } 2020-09-07 00:38:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-07 00:38:49 | [Mutex] waiting for: [received:nodes:b6c1116f-d18a-4b7c-85dd-bf3e99fb4853:localhost] 2020-09-07 00:38:49 | [Mutex] waiting for: [received:nodes:b6c1116f-d18a-4b7c-85dd-bf3e99fb4853:localhost] 2020-09-07 00:38:49 | [Mutex] received everything. 2020-09-07 00:38:49 | [Mutex] isItemNotified: received:node:b6c1116f-d18a-4b7c-85dd-bf3e99fb4853:localhost:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:Node 4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21 :: true |
createSubnodes | 1.027s |
2020-09-07 00:38:49 |
2020-09-07 00:38:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:49 | ------------------------------------ 2020-09-07 00:38:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-7e211646-d05d-4502-93c8-4850b2c6a155", "pubsub#title": "Node 7e211646-d05d-4502-93c8-4850b2c6a155" } 2020-09-07 00:38:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-07 00:38:50 | [Mutex] waiting for: [received:nodes:4ca91c4e-595f-44f2-9555-a6d6592dfd8e:localhost] 2020-09-07 00:38:50 | [Mutex] received everything. 2020-09-07 00:38:50 | [Mutex] isItemNotified: received:node:4ca91c4e-595f-44f2-9555-a6d6592dfd8e:localhost:node-7e211646-d05d-4502-93c8-4850b2c6a155:Node 7e211646-d05d-4502-93c8-4850b2c6a155 :: true |
deleteNodes | 1.023s |
2020-09-07 00:38:54 |
2020-09-07 00:38:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:54 | ------------------------------------ 2020-09-07 00:38:54 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7e211646-d05d-4502-93c8-4850b2c6a155" } 2020-09-07 00:38:54 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-07 00:38:55 | [Mutex] waiting for: [received:nodes:23d1922d-3b50-4a07-8ead-2a5f8b12ae55:localhost] 2020-09-07 00:38:55 | [Mutex] waiting for: [received:nodes:23d1922d-3b50-4a07-8ead-2a5f8b12ae55:localhost] 2020-09-07 00:38:55 | [Mutex] waiting for: [received:nodes:23d1922d-3b50-4a07-8ead-2a5f8b12ae55:localhost] 2020-09-07 00:38:55 | [Mutex] received everything. 2020-09-07 00:38:55 | [Mutex] isItemNotified: received:node:23d1922d-3b50-4a07-8ead-2a5f8b12ae55:localhost:node-7e211646-d05d-4502-93c8-4850b2c6a155:Node 7e211646-d05d-4502-93c8-4850b2c6a155 :: false |
deleteSubnodes | 1.031s |
2020-09-07 00:38:53 |
2020-09-07 00:38:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:53 | ------------------------------------ 2020-09-07 00:38:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21" } 2020-09-07 00:38:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-07 00:38:54 | [Mutex] waiting for: [received:nodes:44e79e2b-989c-42e2-a0f0-8b10dbb22f6b:localhost] 2020-09-07 00:38:54 | [Mutex] received everything. 2020-09-07 00:38:54 | [Mutex] isItemNotified: received:node:44e79e2b-989c-42e2-a0f0-8b10dbb22f6b:localhost:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:Node 4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21 :: false 2020-09-07 00:38:54 | [Mutex] waiting for: [received:nodes:06e0b0a2-ad6b-4587-a306-09c9ac235993:localhost] 2020-09-07 00:38:54 | [Mutex] received everything. 2020-09-07 00:38:54 | [Mutex] isItemNotified: received:node:06e0b0a2-ad6b-4587-a306-09c9ac235993:localhost:node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21:Node 4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21 :: false |
publishItemsToNodes | 0.053s |
2020-09-07 00:38:52 |
2020-09-07 00:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:52 | ------------------------------------ 2020-09-07 00:38:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "entry": "<test>item-572480c4-f76e-4e9e-82a3-e7bb88a07250</test>", "item-id": "item-572480c4-f76e-4e9e-82a3-e7bb88a07250" } 2020-09-07 00:38:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-572480c4-f76e-4e9e-82a3-e7bb88a07250" } 2020-09-07 00:38:52 | [Mutex] waiting for: [published:item:notifieditem-572480c4-f76e-4e9e-82a3-e7bb88a07250:admin@test-domain.com] 2020-09-07 00:38:52 | [Mutex] received everything. 2020-09-07 00:38:52 | [Mutex] isItemNotified: published:item:notifieditem-572480c4-f76e-4e9e-82a3-e7bb88a07250:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2020-09-07 00:38:52 |
2020-09-07 00:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:52 | ------------------------------------ 2020-09-07 00:38:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "item-id": "item-572480c4-f76e-4e9e-82a3-e7bb88a07250" } 2020-09-07 00:38:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-572480c4-f76e-4e9e-82a3-e7bb88a07250" } 2020-09-07 00:38:52 | [Mutex] received everything. 2020-09-07 00:38:52 | [Mutex] isItemNotified: retracted:item:notifieditem-572480c4-f76e-4e9e-82a3-e7bb88a07250:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.130s |
2020-09-07 00:38:52 |
2020-09-07 00:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:52 | ------------------------------------ 2020-09-07 00:38:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "item-id": "item-572480c4-f76e-4e9e-82a3-e7bb88a07250" } 2020-09-07 00:38:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "item-id": "item-572480c4-f76e-4e9e-82a3-e7bb88a07250", "item": [ "<item id=\"item-572480c4-f76e-4e9e-82a3-e7bb88a07250\"><test>item-572480c4-f76e-4e9e-82a3-e7bb88a07250</test></item>" ] } 2020-09-07 00:38:52 | [Mutex] notify: [retrieved:item:item-572480c4-f76e-4e9e-82a3-e7bb88a07250:payload-matches:true:localhost] 2020-09-07 00:38:52 | [Mutex] received everything. 2020-09-07 00:38:52 | [Mutex] isItemNotified: retrieved:item:item-572480c4-f76e-4e9e-82a3-e7bb88a07250:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-09-07 00:38:52 |
2020-09-07 00:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:52 | ------------------------------------ 2020-09-07 00:38:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-07 00:38:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "node-7e211646-d05d-4502-93c8-4850b2c6a155" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-09-07 00:38:52 |
2020-09-07 00:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:52 | ------------------------------------ 2020-09-07 00:38:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21)" } 2020-09-07 00:38:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2020-09-07 00:38:51 |
2020-09-07 00:38:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:51 | ------------------------------------ 2020-09-07 00:38:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "jids": [ "admin@test-domain.com" ] } 2020-09-07 00:38:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.070s |
2020-09-07 00:38:52 |
2020-09-07 00:38:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-07 00:38:52 | ------------------------------------ 2020-09-07 00:38:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4f26fd5d-2f94-4a9c-b4f5-eebdf8686e21", "jids": [ "admin@test-domain.com" ] } 2020-09-07 00:38:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |