Test duration : 9.189s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2021-01-18 21:39:03 |
2021-01-18 21:39:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:03 | ------------------------------------ 2021-01-18 21:39:03 | [Mutex] waiting for: [configured:node:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:node-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78] 2021-01-18 21:39:03 | [Mutex] received everything. 2021-01-18 21:39:03 | [Mutex] isItemNotified: configured:node:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:node-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78 :: true 2021-01-18 21:39:04 | [Mutex] waiting for: [received:nodes:bd997572-7b23-4228-adea-6cccb0f3ee8a:localhost] 2021-01-18 21:39:04 | [Mutex] received everything. 2021-01-18 21:39:04 | [Mutex] isItemNotified: received:node:bd997572-7b23-4228-adea-6cccb0f3ee8a:localhost:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:Node ba9a73e4-c5bf-4fdf-860a-ff0747331254 :: true 2021-01-18 21:39:04 | [Mutex] waiting for: [received:nodes:c804b2a3-3e84-49d3-9046-d18089c59e26:localhost] 2021-01-18 21:39:04 | [Mutex] received everything. 2021-01-18 21:39:04 | [Mutex] isItemNotified: received:node:c804b2a3-3e84-49d3-9046-d18089c59e26:localhost:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:Node ba9a73e4-c5bf-4fdf-860a-ff0747331254 :: false |
createNodes | 1.715s |
2021-01-18 21:39:00 |
2021-01-18 21:39:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:00 | ------------------------------------ 2021-01-18 21:39:00 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "pubsub#title": "Node ba9a73e4-c5bf-4fdf-860a-ff0747331254" } 2021-01-18 21:39:00 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:39:01 | [Mutex] waiting for: [received:nodes:ba4c2bf0-3ccb-452c-90c2-084e07d9f7ec:localhost] 2021-01-18 21:39:02 | [Mutex] received everything. 2021-01-18 21:39:02 | [Mutex] isItemNotified: received:node:ba4c2bf0-3ccb-452c-90c2-084e07d9f7ec:localhost:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:Node ba9a73e4-c5bf-4fdf-860a-ff0747331254 :: true |
createSubnodes | 1.025s |
2021-01-18 21:39:02 |
2021-01-18 21:39:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:02 | ------------------------------------ 2021-01-18 21:39: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-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78", "pubsub#title": "Node 7b0054c4-b4f1-4d08-aea3-e15e6bb46b78" } 2021-01-18 21:39:02 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:39:03 | [Mutex] waiting for: [received:nodes:111192aa-34e5-4863-ba81-0dc54f7c10ad:localhost] 2021-01-18 21:39:03 | [Mutex] received everything. 2021-01-18 21:39:03 | [Mutex] isItemNotified: received:node:111192aa-34e5-4863-ba81-0dc54f7c10ad:localhost:node-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78:Node 7b0054c4-b4f1-4d08-aea3-e15e6bb46b78 :: true |
deleteNodes | 1.027s |
2021-01-18 21:39:07 |
2021-01-18 21:39:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:07 | ------------------------------------ 2021-01-18 21:39:07 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78" } 2021-01-18 21:39:07 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:39:08 | [Mutex] waiting for: [received:nodes:5f6220cf-6947-49a9-a1d8-1fabff33ca65:localhost] 2021-01-18 21:39:08 | [Mutex] waiting for: [received:nodes:5f6220cf-6947-49a9-a1d8-1fabff33ca65:localhost] 2021-01-18 21:39:08 | [Mutex] received everything. 2021-01-18 21:39:08 | [Mutex] isItemNotified: received:node:5f6220cf-6947-49a9-a1d8-1fabff33ca65:localhost:node-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78:Node 7b0054c4-b4f1-4d08-aea3-e15e6bb46b78 :: false |
deleteSubnodes | 1.039s |
2021-01-18 21:39:06 |
2021-01-18 21:39:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:06 | ------------------------------------ 2021-01-18 21:39:06 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254" } 2021-01-18 21:39:06 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-01-18 21:39:07 | [Mutex] waiting for: [received:nodes:8536d15f-f93d-49f4-9583-cc9cd4faa8a8:localhost] 2021-01-18 21:39:07 | [Mutex] received everything. 2021-01-18 21:39:07 | [Mutex] isItemNotified: received:node:8536d15f-f93d-49f4-9583-cc9cd4faa8a8:localhost:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:Node ba9a73e4-c5bf-4fdf-860a-ff0747331254 :: false 2021-01-18 21:39:07 | [Mutex] waiting for: [received:nodes:b21a3b2c-419f-4543-955c-93e765c5abf3:localhost] 2021-01-18 21:39:07 | [Mutex] received everything. 2021-01-18 21:39:07 | [Mutex] isItemNotified: received:node:b21a3b2c-419f-4543-955c-93e765c5abf3:localhost:node-ba9a73e4-c5bf-4fdf-860a-ff0747331254:Node ba9a73e4-c5bf-4fdf-860a-ff0747331254 :: false |
publishItemsToNodes | 0.048s |
2021-01-18 21:39:05 |
2021-01-18 21:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:05 | ------------------------------------ 2021-01-18 21:39:05 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "entry": "<test>item-721fd6e1-fa99-4ffa-9683-d4a48603c081</test>", "item-id": "item-721fd6e1-fa99-4ffa-9683-d4a48603c081" } 2021-01-18 21:39:05 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-721fd6e1-fa99-4ffa-9683-d4a48603c081" } 2021-01-18 21:39:05 | [Mutex] received everything. 2021-01-18 21:39:05 | [Mutex] isItemNotified: published:item:notifieditem-721fd6e1-fa99-4ffa-9683-d4a48603c081:admin@test-domain.com :: true |
retractItemsFromNodes | 0.080s |
2021-01-18 21:39:05 |
2021-01-18 21:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:05 | ------------------------------------ 2021-01-18 21:39:05 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "item-id": "item-721fd6e1-fa99-4ffa-9683-d4a48603c081" } 2021-01-18 21:39:05 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-721fd6e1-fa99-4ffa-9683-d4a48603c081" } 2021-01-18 21:39:05 | [Mutex] received everything. 2021-01-18 21:39:05 | [Mutex] isItemNotified: retracted:item:notifieditem-721fd6e1-fa99-4ffa-9683-d4a48603c081:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.104s |
2021-01-18 21:39:05 |
2021-01-18 21:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:05 | ------------------------------------ 2021-01-18 21:39:05 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "item-id": "item-721fd6e1-fa99-4ffa-9683-d4a48603c081" } 2021-01-18 21:39:05 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "item-id": "item-721fd6e1-fa99-4ffa-9683-d4a48603c081", "item": [ "<item id=\"item-721fd6e1-fa99-4ffa-9683-d4a48603c081\"><test>item-721fd6e1-fa99-4ffa-9683-d4a48603c081</test></item>" ] } 2021-01-18 21:39:05 | [Mutex] notify: [retrieved:item:item-721fd6e1-fa99-4ffa-9683-d4a48603c081:payload-matches:true:localhost] 2021-01-18 21:39:05 | [Mutex] received everything. 2021-01-18 21:39:05 | [Mutex] isItemNotified: retrieved:item:item-721fd6e1-fa99-4ffa-9683-d4a48603c081:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-01-18 21:39:05 |
2021-01-18 21:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:05 | ------------------------------------ 2021-01-18 21:39:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-01-18 21:39:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-7b0054c4-b4f1-4d08-aea3-e15e6bb46b78", "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2021-01-18 21:39:05 |
2021-01-18 21:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:05 | ------------------------------------ 2021-01-18 21:39:05 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ba9a73e4-c5bf-4fdf-860a-ff0747331254)" } 2021-01-18 21:39:05 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2021-01-18 21:39:04 |
2021-01-18 21:39:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:04 | ------------------------------------ 2021-01-18 21:39:04 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "jids": [ "admin@test-domain.com" ] } 2021-01-18 21:39:04 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.096s |
2021-01-18 21:39:05 |
2021-01-18 21:39:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-01-18 21:39:05 | ------------------------------------ 2021-01-18 21:39:05 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ba9a73e4-c5bf-4fdf-860a-ff0747331254", "jids": [ "admin@test-domain.com" ] } 2021-01-18 21:39:05 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |