Test duration : 9.132s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.148s |
2021-01-26 21:45:03 |
2021-01-26 21:45:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:03 | ------------------------------------ 2021-01-26 21:45:03 | [Mutex] waiting for: [configured:node:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:node-be442c4a-281a-4ebb-9f6a-58c57ae9728f] 2021-01-26 21:45:04 | [Mutex] received everything. 2021-01-26 21:45:04 | [Mutex] isItemNotified: configured:node:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:node-be442c4a-281a-4ebb-9f6a-58c57ae9728f :: true 2021-01-26 21:45:05 | [Mutex] waiting for: [received:nodes:1280ca42-4acf-4188-9960-b95b39fc1c6b:localhost] 2021-01-26 21:45:05 | [Mutex] received everything. 2021-01-26 21:45:05 | [Mutex] isItemNotified: received:node:1280ca42-4acf-4188-9960-b95b39fc1c6b:localhost:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:Node 338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a :: true 2021-01-26 21:45:05 | [Mutex] waiting for: [received:nodes:fd6d581e-5ab1-4893-ba72-a3b50e1c68e8:localhost] 2021-01-26 21:45:05 | [Mutex] received everything. 2021-01-26 21:45:05 | [Mutex] isItemNotified: received:node:fd6d581e-5ab1-4893-ba72-a3b50e1c68e8:localhost:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:Node 338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a :: false |
createNodes | 1.694s |
2021-01-26 21:45:01 |
2021-01-26 21:45:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:01 | ------------------------------------ 2021-01-26 21:45:01 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "pubsub#title": "Node 338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a" } 2021-01-26 21:45:01 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:45:02 | [Mutex] waiting for: [received:nodes:7b53d16d-da8b-4fca-a3b9-b1289f39900e:localhost] 2021-01-26 21:45:02 | [Mutex] received everything. 2021-01-26 21:45:02 | [Mutex] isItemNotified: received:node:7b53d16d-da8b-4fca-a3b9-b1289f39900e:localhost:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:Node 338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a :: true |
createSubnodes | 1.030s |
2021-01-26 21:45:02 |
2021-01-26 21:45:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:02 | ------------------------------------ 2021-01-26 21:45:02 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-be442c4a-281a-4ebb-9f6a-58c57ae9728f", "pubsub#title": "Node be442c4a-281a-4ebb-9f6a-58c57ae9728f" } 2021-01-26 21:45:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:45:03 | [Mutex] waiting for: [received:nodes:735edf4d-4084-4aa0-959a-cf6ce0533ee6:localhost] 2021-01-26 21:45:03 | [Mutex] received everything. 2021-01-26 21:45:03 | [Mutex] isItemNotified: received:node:735edf4d-4084-4aa0-959a-cf6ce0533ee6:localhost:node-be442c4a-281a-4ebb-9f6a-58c57ae9728f:Node be442c4a-281a-4ebb-9f6a-58c57ae9728f :: true |
deleteNodes | 1.022s |
2021-01-26 21:45:08 |
2021-01-26 21:45:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:08 | ------------------------------------ 2021-01-26 21:45:08 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-be442c4a-281a-4ebb-9f6a-58c57ae9728f" } 2021-01-26 21:45:08 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:45:09 | [Mutex] waiting for: [received:nodes:7426e220-f20d-4f4d-962b-1ccb63b9914a:localhost] 2021-01-26 21:45:09 | [Mutex] received everything. 2021-01-26 21:45:09 | [Mutex] isItemNotified: received:node:7426e220-f20d-4f4d-962b-1ccb63b9914a:localhost:node-be442c4a-281a-4ebb-9f6a-58c57ae9728f:Node be442c4a-281a-4ebb-9f6a-58c57ae9728f :: false |
deleteSubnodes | 1.031s |
2021-01-26 21:45:07 |
2021-01-26 21:45:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:07 | ------------------------------------ 2021-01-26 21:45:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a" } 2021-01-26 21:45:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-26 21:45:08 | [Mutex] waiting for: [received:nodes:c2b49e14-24af-4978-a8c2-f02715b2402c:localhost] 2021-01-26 21:45:08 | [Mutex] received everything. 2021-01-26 21:45:08 | [Mutex] isItemNotified: received:node:c2b49e14-24af-4978-a8c2-f02715b2402c:localhost:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:Node 338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a :: false 2021-01-26 21:45:08 | [Mutex] waiting for: [received:nodes:07fc5871-9b4d-4e14-9d92-f1ea5d3da9f3:localhost] 2021-01-26 21:45:08 | [Mutex] received everything. 2021-01-26 21:45:08 | [Mutex] isItemNotified: received:node:07fc5871-9b4d-4e14-9d92-f1ea5d3da9f3:localhost:node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a:Node 338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a :: false |
publishItemsToNodes | 0.051s |
2021-01-26 21:45:06 |
2021-01-26 21:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:06 | ------------------------------------ 2021-01-26 21:45:06 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "entry": "<test>item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd</test>", "item-id": "item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd" } 2021-01-26 21:45:06 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd" } 2021-01-26 21:45:06 | [Mutex] waiting for: [published:item:notifieditem-e91000b7-f9ad-4a5e-abb2-58e69d8afccd:admin@test-domain.com] 2021-01-26 21:45:06 | [Mutex] received everything. 2021-01-26 21:45:06 | [Mutex] isItemNotified: published:item:notifieditem-e91000b7-f9ad-4a5e-abb2-58e69d8afccd:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-01-26 21:45:06 |
2021-01-26 21:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:06 | ------------------------------------ 2021-01-26 21:45:06 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "item-id": "item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd" } 2021-01-26 21:45:06 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd" } 2021-01-26 21:45:06 | [Mutex] waiting for: [retracted:item:notifieditem-e91000b7-f9ad-4a5e-abb2-58e69d8afccd:admin@test-domain.com] 2021-01-26 21:45:06 | [Mutex] received everything. 2021-01-26 21:45:06 | [Mutex] isItemNotified: retracted:item:notifieditem-e91000b7-f9ad-4a5e-abb2-58e69d8afccd:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.029s |
2021-01-26 21:45:06 |
2021-01-26 21:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:06 | ------------------------------------ 2021-01-26 21:45:06 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "item-id": "item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd" } 2021-01-26 21:45:06 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "item-id": "item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd", "item": [ "<item id=\"item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd\"><test>item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd</test></item>" ] } 2021-01-26 21:45:06 | [Mutex] notify: [retrieved:item:item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd:payload-matches:true:localhost] 2021-01-26 21:45:06 | [Mutex] received everything. 2021-01-26 21:45:06 | [Mutex] isItemNotified: retrieved:item:item-e91000b7-f9ad-4a5e-abb2-58e69d8afccd:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.074s |
2021-01-26 21:45:06 |
2021-01-26 21:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:06 | ------------------------------------ 2021-01-26 21:45:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-26 21:45:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-be442c4a-281a-4ebb-9f6a-58c57ae9728f", "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a" ] } |
retrieveUserSubscriptionsWithRegex | 0.055s |
2021-01-26 21:45:06 |
2021-01-26 21:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:06 | ------------------------------------ 2021-01-26 21:45:06 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a)" } 2021-01-26 21:45:06 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2021-01-26 21:45:05 |
2021-01-26 21:45:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:05 | ------------------------------------ 2021-01-26 21:45:05 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "jids": [ "admin@test-domain.com" ] } 2021-01-26 21:45:05 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.088s |
2021-01-26 21:45:06 |
2021-01-26 21:45:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-26 21:45:06 | ------------------------------------ 2021-01-26 21:45:06 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-338b5d0e-0ffe-4d2a-b67d-bf9a664eb60a", "jids": [ "admin@test-domain.com" ] } 2021-01-26 21:45:06 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |