Test duration : 8.640s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.104s |
2022-06-22 23:02:26 |
2022-06-22 23:02:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:26 | ------------------------------------ 2022-06-22 23:02:26 | [Mutex] waiting for: [configured:node:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:node-fdb9bbc9-0cba-4655-8941-5d09844f28f4] 2022-06-22 23:02:26 | [Mutex] received everything. 2022-06-22 23:02:26 | [Mutex] isItemNotified: configured:node:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:node-fdb9bbc9-0cba-4655-8941-5d09844f28f4 :: true 2022-06-22 23:02:27 | [Mutex] waiting for: [received:nodes:7d883aa7-c537-4a2a-8640-700470538c31:localhost] 2022-06-22 23:02:27 | [Mutex] received everything. 2022-06-22 23:02:27 | [Mutex] isItemNotified: received:node:7d883aa7-c537-4a2a-8640-700470538c31:localhost:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:Node 175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f :: true 2022-06-22 23:02:27 | [Mutex] waiting for: [received:nodes:d1e9699e-1739-43f3-8940-e584f7b30dee:localhost] 2022-06-22 23:02:27 | [Mutex] waiting for: [received:nodes:d1e9699e-1739-43f3-8940-e584f7b30dee:localhost] 2022-06-22 23:02:27 | [Mutex] received everything. 2022-06-22 23:02:27 | [Mutex] isItemNotified: received:node:d1e9699e-1739-43f3-8940-e584f7b30dee:localhost:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:Node 175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f :: false |
createNodes | 1.534s |
2022-06-22 23:02:24 |
2022-06-22 23:02:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:24 | ------------------------------------ 2022-06-22 23:02:24 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "pubsub#title": "Node 175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f" } 2022-06-22 23:02:24 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-22 23:02:25 | [Mutex] waiting for: [received:nodes:a4e1b613-0495-402e-8a07-cdc4d40e7226:localhost] 2022-06-22 23:02:25 | [Mutex] received everything. 2022-06-22 23:02:25 | [Mutex] isItemNotified: received:node:a4e1b613-0495-402e-8a07-cdc4d40e7226:localhost:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:Node 175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f :: true |
createSubnodes | 1.062s |
2022-06-22 23:02:25 |
2022-06-22 23:02:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:25 | ------------------------------------ 2022-06-22 23:02:25 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-fdb9bbc9-0cba-4655-8941-5d09844f28f4", "pubsub#title": "Node fdb9bbc9-0cba-4655-8941-5d09844f28f4" } 2022-06-22 23:02:25 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-22 23:02:26 | [Mutex] waiting for: [received:nodes:bffde8a8-0ebd-493f-ad5a-d439426b7da2:localhost] 2022-06-22 23:02:26 | [Mutex] waiting for: [received:nodes:bffde8a8-0ebd-493f-ad5a-d439426b7da2:localhost] 2022-06-22 23:02:26 | [Mutex] received everything. 2022-06-22 23:02:26 | [Mutex] isItemNotified: received:node:bffde8a8-0ebd-493f-ad5a-d439426b7da2:localhost:node-fdb9bbc9-0cba-4655-8941-5d09844f28f4:Node fdb9bbc9-0cba-4655-8941-5d09844f28f4 :: true |
deleteNodes | 1.028s |
2022-06-22 23:02:31 |
2022-06-22 23:02:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:31 | ------------------------------------ 2022-06-22 23:02:31 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-fdb9bbc9-0cba-4655-8941-5d09844f28f4" } 2022-06-22 23:02:31 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-22 23:02:32 | [Mutex] waiting for: [received:nodes:c0ca5cc9-b6a4-4c2c-9088-280548a0dffc:localhost] 2022-06-22 23:02:32 | [Mutex] received everything. 2022-06-22 23:02:32 | [Mutex] isItemNotified: received:node:c0ca5cc9-b6a4-4c2c-9088-280548a0dffc:localhost:node-fdb9bbc9-0cba-4655-8941-5d09844f28f4:Node fdb9bbc9-0cba-4655-8941-5d09844f28f4 :: false |
deleteSubnodes | 1.024s |
2022-06-22 23:02:30 |
2022-06-22 23:02:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:30 | ------------------------------------ 2022-06-22 23:02:30 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f" } 2022-06-22 23:02:30 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-06-22 23:02:31 | [Mutex] waiting for: [received:nodes:f44ee42d-259e-47f2-bdbf-a754a9953bb6:localhost] 2022-06-22 23:02:31 | [Mutex] received everything. 2022-06-22 23:02:31 | [Mutex] isItemNotified: received:node:f44ee42d-259e-47f2-bdbf-a754a9953bb6:localhost:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:Node 175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f :: false 2022-06-22 23:02:31 | [Mutex] waiting for: [received:nodes:2b6886d4-60e9-4101-93ea-a32b93e316bd:localhost] 2022-06-22 23:02:31 | [Mutex] received everything. 2022-06-22 23:02:31 | [Mutex] isItemNotified: received:node:2b6886d4-60e9-4101-93ea-a32b93e316bd:localhost:node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f:Node 175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f :: false |
publishItemsToNodes | 0.026s |
2022-06-22 23:02:28 |
2022-06-22 23:02:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:28 | ------------------------------------ 2022-06-22 23:02:28 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "entry": "<test>item-a4330adf-93c4-4da5-8288-8bd29695616b</test>", "item-id": "item-a4330adf-93c4-4da5-8288-8bd29695616b" } 2022-06-22 23:02:28 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a4330adf-93c4-4da5-8288-8bd29695616b" } 2022-06-22 23:02:28 | [Mutex] waiting for: [published:item:notifieditem-a4330adf-93c4-4da5-8288-8bd29695616b:admin@test-domain.com] 2022-06-22 23:02:28 | [Mutex] received everything. 2022-06-22 23:02:28 | [Mutex] isItemNotified: published:item:notifieditem-a4330adf-93c4-4da5-8288-8bd29695616b:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2022-06-22 23:02:29 |
2022-06-22 23:02:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:29 | ------------------------------------ 2022-06-22 23:02:29 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "item-id": "item-a4330adf-93c4-4da5-8288-8bd29695616b" } 2022-06-22 23:02:29 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a4330adf-93c4-4da5-8288-8bd29695616b" } 2022-06-22 23:02:29 | [Mutex] received everything. 2022-06-22 23:02:29 | [Mutex] isItemNotified: retracted:item:notifieditem-a4330adf-93c4-4da5-8288-8bd29695616b:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2022-06-22 23:02:28 |
2022-06-22 23:02:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:28 | ------------------------------------ 2022-06-22 23:02:28 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "item-id": "item-a4330adf-93c4-4da5-8288-8bd29695616b" } 2022-06-22 23:02:28 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "item-id": "item-a4330adf-93c4-4da5-8288-8bd29695616b", "item": [ "<item id=\"item-a4330adf-93c4-4da5-8288-8bd29695616b\"><test>item-a4330adf-93c4-4da5-8288-8bd29695616b</test></item>" ] } 2022-06-22 23:02:28 | [Mutex] notify: [retrieved:item:item-a4330adf-93c4-4da5-8288-8bd29695616b:payload-matches:true:localhost] 2022-06-22 23:02:28 | [Mutex] received everything. 2022-06-22 23:02:28 | [Mutex] isItemNotified: retrieved:item:item-a4330adf-93c4-4da5-8288-8bd29695616b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2022-06-22 23:02:28 |
2022-06-22 23:02:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:28 | ------------------------------------ 2022-06-22 23:02:28 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-06-22 23:02:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-fdb9bbc9-0cba-4655-8941-5d09844f28f4", "test", "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2022-06-22 23:02:29 |
2022-06-22 23:02:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:29 | ------------------------------------ 2022-06-22 23:02:29 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f)" } 2022-06-22 23:02:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.008s |
2022-06-22 23:02:27 |
2022-06-22 23:02:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:27 | ------------------------------------ 2022-06-22 23:02:27 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "jids": [ "admin@test-domain.com" ] } 2022-06-22 23:02:27 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-06-22 23:02:29 |
2022-06-22 23:02:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-06-22 23:02:29 | ------------------------------------ 2022-06-22 23:02:29 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-175dc2f8-dc29-42b4-b8a5-bc5d694c2c2f", "jids": [ "admin@test-domain.com" ] } 2022-06-22 23:02:29 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |