Test duration : 9.211s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-01-16 21:45:44 |
2022-01-16 21:45:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:44 | ------------------------------------ 2022-01-16 21:45:44 | [Mutex] waiting for: [configured:node:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:node-0b02eade-403c-4bb5-ab03-de511b556c88] 2022-01-16 21:45:44 | [Mutex] received everything. 2022-01-16 21:45:44 | [Mutex] isItemNotified: configured:node:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:node-0b02eade-403c-4bb5-ab03-de511b556c88 :: true 2022-01-16 21:45:45 | [Mutex] waiting for: [received:nodes:497b8cdc-dee6-43d4-acbd-d522cc28a517:localhost] 2022-01-16 21:45:45 | [Mutex] received everything. 2022-01-16 21:45:45 | [Mutex] isItemNotified: received:node:497b8cdc-dee6-43d4-acbd-d522cc28a517:localhost:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:Node e88c3b0d-eca3-4117-b476-81e5ad05ed33 :: true 2022-01-16 21:45:45 | [Mutex] waiting for: [received:nodes:b2bc341f-6687-485a-8f94-0db66e718129:localhost] 2022-01-16 21:45:45 | [Mutex] waiting for: [received:nodes:b2bc341f-6687-485a-8f94-0db66e718129:localhost] 2022-01-16 21:45:45 | [Mutex] received everything. 2022-01-16 21:45:45 | [Mutex] isItemNotified: received:node:b2bc341f-6687-485a-8f94-0db66e718129:localhost:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:Node e88c3b0d-eca3-4117-b476-81e5ad05ed33 :: false |
createNodes | 1.769s |
2022-01-16 21:45:41 |
2022-01-16 21:45:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:41 | ------------------------------------ 2022-01-16 21:45:42 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "pubsub#title": "Node e88c3b0d-eca3-4117-b476-81e5ad05ed33" } 2022-01-16 21:45:42 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 21:45:43 | [Mutex] waiting for: [received:nodes:43d0d89c-fb39-49d7-8d50-703a23d87be5:localhost] 2022-01-16 21:45:43 | [Mutex] received everything. 2022-01-16 21:45:43 | [Mutex] isItemNotified: received:node:43d0d89c-fb39-49d7-8d50-703a23d87be5:localhost:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:Node e88c3b0d-eca3-4117-b476-81e5ad05ed33 :: true |
createSubnodes | 1.045s |
2022-01-16 21:45:43 |
2022-01-16 21:45:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:43 | ------------------------------------ 2022-01-16 21:45:43 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0b02eade-403c-4bb5-ab03-de511b556c88", "pubsub#title": "Node 0b02eade-403c-4bb5-ab03-de511b556c88" } 2022-01-16 21:45:43 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 21:45:44 | [Mutex] waiting for: [received:nodes:df7ee012-5517-4480-ac91-f796fd5ea510:localhost] 2022-01-16 21:45:44 | [Mutex] received everything. 2022-01-16 21:45:44 | [Mutex] isItemNotified: received:node:df7ee012-5517-4480-ac91-f796fd5ea510:localhost:node-0b02eade-403c-4bb5-ab03-de511b556c88:Node 0b02eade-403c-4bb5-ab03-de511b556c88 :: true |
deleteNodes | 1.027s |
2022-01-16 21:45:49 |
2022-01-16 21:45:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:49 | ------------------------------------ 2022-01-16 21:45:49 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0b02eade-403c-4bb5-ab03-de511b556c88" } 2022-01-16 21:45:49 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 21:45:50 | [Mutex] waiting for: [received:nodes:55c0d3e4-a3bb-4093-97d6-beff97bf4d99:localhost] 2022-01-16 21:45:50 | [Mutex] received everything. 2022-01-16 21:45:50 | [Mutex] isItemNotified: received:node:55c0d3e4-a3bb-4093-97d6-beff97bf4d99:localhost:node-0b02eade-403c-4bb5-ab03-de511b556c88:Node 0b02eade-403c-4bb5-ab03-de511b556c88 :: false |
deleteSubnodes | 1.033s |
2022-01-16 21:45:48 |
2022-01-16 21:45:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:48 | ------------------------------------ 2022-01-16 21:45:48 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33" } 2022-01-16 21:45:48 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-01-16 21:45:49 | [Mutex] waiting for: [received:nodes:fe44278d-bb6e-441b-bf68-6dff65aa8e82:localhost] 2022-01-16 21:45:49 | [Mutex] waiting for: [received:nodes:fe44278d-bb6e-441b-bf68-6dff65aa8e82:localhost] 2022-01-16 21:45:49 | [Mutex] received everything. 2022-01-16 21:45:49 | [Mutex] isItemNotified: received:node:fe44278d-bb6e-441b-bf68-6dff65aa8e82:localhost:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:Node e88c3b0d-eca3-4117-b476-81e5ad05ed33 :: false 2022-01-16 21:45:49 | [Mutex] waiting for: [received:nodes:db551227-289f-4957-9084-b9f65259cac0:localhost] 2022-01-16 21:45:49 | [Mutex] received everything. 2022-01-16 21:45:49 | [Mutex] isItemNotified: received:node:db551227-289f-4957-9084-b9f65259cac0:localhost:node-e88c3b0d-eca3-4117-b476-81e5ad05ed33:Node e88c3b0d-eca3-4117-b476-81e5ad05ed33 :: false |
publishItemsToNodes | 0.050s |
2022-01-16 21:45:46 |
2022-01-16 21:45:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:46 | ------------------------------------ 2022-01-16 21:45:46 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "entry": "<test>item-88ca3043-c3ff-4665-be79-ac60c340b7b3</test>", "item-id": "item-88ca3043-c3ff-4665-be79-ac60c340b7b3" } 2022-01-16 21:45:46 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-88ca3043-c3ff-4665-be79-ac60c340b7b3" } 2022-01-16 21:45:46 | [Mutex] waiting for: [published:item:notifieditem-88ca3043-c3ff-4665-be79-ac60c340b7b3:admin@test-domain.com] 2022-01-16 21:45:46 | [Mutex] received everything. 2022-01-16 21:45:46 | [Mutex] isItemNotified: published:item:notifieditem-88ca3043-c3ff-4665-be79-ac60c340b7b3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.075s |
2022-01-16 21:45:47 |
2022-01-16 21:45:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:47 | ------------------------------------ 2022-01-16 21:45:47 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "item-id": "item-88ca3043-c3ff-4665-be79-ac60c340b7b3" } 2022-01-16 21:45:47 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-88ca3043-c3ff-4665-be79-ac60c340b7b3" } 2022-01-16 21:45:47 | [Mutex] waiting for: [retracted:item:notifieditem-88ca3043-c3ff-4665-be79-ac60c340b7b3:admin@test-domain.com] 2022-01-16 21:45:47 | [Mutex] received everything. 2022-01-16 21:45:47 | [Mutex] isItemNotified: retracted:item:notifieditem-88ca3043-c3ff-4665-be79-ac60c340b7b3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.107s |
2022-01-16 21:45:46 |
2022-01-16 21:45:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:46 | ------------------------------------ 2022-01-16 21:45:46 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "item-id": "item-88ca3043-c3ff-4665-be79-ac60c340b7b3" } 2022-01-16 21:45:46 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "item-id": "item-88ca3043-c3ff-4665-be79-ac60c340b7b3", "item": [ "<item id=\"item-88ca3043-c3ff-4665-be79-ac60c340b7b3\"><test>item-88ca3043-c3ff-4665-be79-ac60c340b7b3</test></item>" ] } 2022-01-16 21:45:46 | [Mutex] notify: [retrieved:item:item-88ca3043-c3ff-4665-be79-ac60c340b7b3:payload-matches:true:localhost] 2022-01-16 21:45:46 | [Mutex] received everything. 2022-01-16 21:45:46 | [Mutex] isItemNotified: retrieved:item:item-88ca3043-c3ff-4665-be79-ac60c340b7b3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2022-01-16 21:45:46 |
2022-01-16 21:45:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:46 | ------------------------------------ 2022-01-16 21:45:46 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-01-16 21:45:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "test", "node-0b02eade-403c-4bb5-ab03-de511b556c88" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-01-16 21:45:47 |
2022-01-16 21:45:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:47 | ------------------------------------ 2022-01-16 21:45:47 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-e88c3b0d-eca3-4117-b476-81e5ad05ed33)" } 2022-01-16 21:45:47 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-01-16 21:45:45 |
2022-01-16 21:45:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:45 | ------------------------------------ 2022-01-16 21:45:45 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "jids": [ "admin@test-domain.com" ] } 2022-01-16 21:45:45 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.091s |
2022-01-16 21:45:47 |
2022-01-16 21:45:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-01-16 21:45:47 | ------------------------------------ 2022-01-16 21:45:47 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-e88c3b0d-eca3-4117-b476-81e5ad05ed33", "jids": [ "admin@test-domain.com" ] } 2022-01-16 21:45:47 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |