Test duration : 8.893s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2021-01-04 21:30:08 |
2021-01-04 21:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:08 | ------------------------------------ 2021-01-04 21:30:08 | [Mutex] waiting for: [configured:node:node-f56f16ab-3109-402a-970d-dd6587b7db25:node-977be72f-8e3b-4219-ba0f-c61a00eeba9a] 2021-01-04 21:30:08 | [Mutex] received everything. 2021-01-04 21:30:08 | [Mutex] isItemNotified: configured:node:node-f56f16ab-3109-402a-970d-dd6587b7db25:node-977be72f-8e3b-4219-ba0f-c61a00eeba9a :: true 2021-01-04 21:30:09 | [Mutex] waiting for: [received:nodes:32f50598-27ca-4d5f-9c4e-589fbafca534:localhost] 2021-01-04 21:30:09 | [Mutex] waiting for: [received:nodes:32f50598-27ca-4d5f-9c4e-589fbafca534:localhost] 2021-01-04 21:30:09 | [Mutex] received everything. 2021-01-04 21:30:09 | [Mutex] isItemNotified: received:node:32f50598-27ca-4d5f-9c4e-589fbafca534:localhost:node-f56f16ab-3109-402a-970d-dd6587b7db25:Node f56f16ab-3109-402a-970d-dd6587b7db25 :: true 2021-01-04 21:30:09 | [Mutex] waiting for: [received:nodes:d4e13eda-addf-4a4d-ac48-67ef738727b4:localhost] 2021-01-04 21:30:09 | [Mutex] waiting for: [received:nodes:d4e13eda-addf-4a4d-ac48-67ef738727b4:localhost] 2021-01-04 21:30:09 | [Mutex] waiting for: [received:nodes:d4e13eda-addf-4a4d-ac48-67ef738727b4:localhost] 2021-01-04 21:30:09 | [Mutex] received everything. 2021-01-04 21:30:09 | [Mutex] isItemNotified: received:node:d4e13eda-addf-4a4d-ac48-67ef738727b4:localhost:node-f56f16ab-3109-402a-970d-dd6587b7db25:Node f56f16ab-3109-402a-970d-dd6587b7db25 :: false |
createNodes | 1.557s |
2021-01-04 21:30:05 |
2021-01-04 21:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:05 | ------------------------------------ 2021-01-04 21:30:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "pubsub#title": "Node f56f16ab-3109-402a-970d-dd6587b7db25" } 2021-01-04 21:30:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-04 21:30:07 | [Mutex] waiting for: [received:nodes:a644cc1c-3ab0-42df-b0c2-ba3f0fbec1c2:localhost] 2021-01-04 21:30:07 | [Mutex] waiting for: [received:nodes:a644cc1c-3ab0-42df-b0c2-ba3f0fbec1c2:localhost] 2021-01-04 21:30:07 | [Mutex] received everything. 2021-01-04 21:30:07 | [Mutex] isItemNotified: received:node:a644cc1c-3ab0-42df-b0c2-ba3f0fbec1c2:localhost:node-f56f16ab-3109-402a-970d-dd6587b7db25:Node f56f16ab-3109-402a-970d-dd6587b7db25 :: true |
createSubnodes | 1.022s |
2021-01-04 21:30:07 |
2021-01-04 21:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:07 | ------------------------------------ 2021-01-04 21:30:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-977be72f-8e3b-4219-ba0f-c61a00eeba9a", "pubsub#title": "Node 977be72f-8e3b-4219-ba0f-c61a00eeba9a" } 2021-01-04 21:30:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-04 21:30:08 | [Mutex] waiting for: [received:nodes:6845ca48-8d31-4cd8-8bf4-83e875fe8668:localhost] 2021-01-04 21:30:08 | [Mutex] waiting for: [received:nodes:6845ca48-8d31-4cd8-8bf4-83e875fe8668:localhost] 2021-01-04 21:30:08 | [Mutex] waiting for: [received:nodes:6845ca48-8d31-4cd8-8bf4-83e875fe8668:localhost] 2021-01-04 21:30:08 | [Mutex] received everything. 2021-01-04 21:30:08 | [Mutex] isItemNotified: received:node:6845ca48-8d31-4cd8-8bf4-83e875fe8668:localhost:node-977be72f-8e3b-4219-ba0f-c61a00eeba9a:Node 977be72f-8e3b-4219-ba0f-c61a00eeba9a :: true |
deleteNodes | 1.020s |
2021-01-04 21:30:12 |
2021-01-04 21:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:12 | ------------------------------------ 2021-01-04 21:30:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-977be72f-8e3b-4219-ba0f-c61a00eeba9a" } 2021-01-04 21:30:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-04 21:30:13 | [Mutex] waiting for: [received:nodes:9a34c399-70e9-4d03-afaa-e4c7ecf10e31:localhost] 2021-01-04 21:30:13 | [Mutex] received everything. 2021-01-04 21:30:13 | [Mutex] isItemNotified: received:node:9a34c399-70e9-4d03-afaa-e4c7ecf10e31:localhost:node-977be72f-8e3b-4219-ba0f-c61a00eeba9a:Node 977be72f-8e3b-4219-ba0f-c61a00eeba9a :: false |
deleteSubnodes | 1.028s |
2021-01-04 21:30:11 |
2021-01-04 21:30:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:11 | ------------------------------------ 2021-01-04 21:30:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25" } 2021-01-04 21:30:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-04 21:30:12 | [Mutex] waiting for: [received:nodes:d2f99758-3518-4200-a25f-19ddf2462626:localhost] 2021-01-04 21:30:12 | [Mutex] received everything. 2021-01-04 21:30:12 | [Mutex] isItemNotified: received:node:d2f99758-3518-4200-a25f-19ddf2462626:localhost:node-f56f16ab-3109-402a-970d-dd6587b7db25:Node f56f16ab-3109-402a-970d-dd6587b7db25 :: false 2021-01-04 21:30:12 | [Mutex] waiting for: [received:nodes:ece4a7ae-7cc9-40a6-8a44-8f14b0705986:localhost] 2021-01-04 21:30:12 | [Mutex] received everything. 2021-01-04 21:30:12 | [Mutex] isItemNotified: received:node:ece4a7ae-7cc9-40a6-8a44-8f14b0705986:localhost:node-f56f16ab-3109-402a-970d-dd6587b7db25:Node f56f16ab-3109-402a-970d-dd6587b7db25 :: false |
publishItemsToNodes | 0.069s |
2021-01-04 21:30:10 |
2021-01-04 21:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:10 | ------------------------------------ 2021-01-04 21:30:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "entry": "<test>item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3</test>", "item-id": "item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3" } 2021-01-04 21:30:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3" } 2021-01-04 21:30:10 | [Mutex] waiting for: [published:item:notifieditem-a0625854-8c9b-4e39-81e4-d8c88f38a9b3:admin@test-domain.com] 2021-01-04 21:30:10 | [Mutex] received everything. 2021-01-04 21:30:10 | [Mutex] isItemNotified: published:item:notifieditem-a0625854-8c9b-4e39-81e4-d8c88f38a9b3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.089s |
2021-01-04 21:30:10 |
2021-01-04 21:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:10 | ------------------------------------ 2021-01-04 21:30:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "item-id": "item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3" } 2021-01-04 21:30:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3" } 2021-01-04 21:30:10 | [Mutex] waiting for: [retracted:item:notifieditem-a0625854-8c9b-4e39-81e4-d8c88f38a9b3:admin@test-domain.com] 2021-01-04 21:30:10 | [Mutex] received everything. 2021-01-04 21:30:10 | [Mutex] isItemNotified: retracted:item:notifieditem-a0625854-8c9b-4e39-81e4-d8c88f38a9b3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.085s |
2021-01-04 21:30:10 |
2021-01-04 21:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:10 | ------------------------------------ 2021-01-04 21:30:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "item-id": "item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3" } 2021-01-04 21:30:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "item-id": "item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3", "item": [ "<item id=\"item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3\"><test>item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3</test></item>" ] } 2021-01-04 21:30:10 | [Mutex] notify: [retrieved:item:item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3:payload-matches:true:localhost] 2021-01-04 21:30:10 | [Mutex] received everything. 2021-01-04 21:30:10 | [Mutex] isItemNotified: retrieved:item:item-a0625854-8c9b-4e39-81e4-d8c88f38a9b3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2021-01-04 21:30:10 |
2021-01-04 21:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:10 | ------------------------------------ 2021-01-04 21:30:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-04 21:30:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-977be72f-8e3b-4219-ba0f-c61a00eeba9a", "node-f56f16ab-3109-402a-970d-dd6587b7db25" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-01-04 21:30:10 |
2021-01-04 21:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:10 | ------------------------------------ 2021-01-04 21:30:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f56f16ab-3109-402a-970d-dd6587b7db25)" } 2021-01-04 21:30:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-01-04 21:30:09 |
2021-01-04 21:30:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:09 | ------------------------------------ 2021-01-04 21:30:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "jids": [ "admin@test-domain.com" ] } 2021-01-04 21:30:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.018s |
2021-01-04 21:30:10 |
2021-01-04 21:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-04 21:30:10 | ------------------------------------ 2021-01-04 21:30:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f56f16ab-3109-402a-970d-dd6587b7db25", "jids": [ "admin@test-domain.com" ] } 2021-01-04 21:30:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |