Test duration : 8.855s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2022-05-09 23:15:13 |
2022-05-09 23:15:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:13 | ------------------------------------ 2022-05-09 23:15:13 | [Mutex] waiting for: [configured:node:node-2ebc7e26-bacc-45eb-805c-596676285184:node-b7881475-a751-497d-a1f0-f4d6a7f16f8d] 2022-05-09 23:15:13 | [Mutex] received everything. 2022-05-09 23:15:13 | [Mutex] isItemNotified: configured:node:node-2ebc7e26-bacc-45eb-805c-596676285184:node-b7881475-a751-497d-a1f0-f4d6a7f16f8d :: true 2022-05-09 23:15:14 | [Mutex] waiting for: [received:nodes:78b9ff9a-97e9-4d6e-8074-b839adfe5bf8:localhost] 2022-05-09 23:15:14 | [Mutex] received everything. 2022-05-09 23:15:14 | [Mutex] isItemNotified: received:node:78b9ff9a-97e9-4d6e-8074-b839adfe5bf8:localhost:node-2ebc7e26-bacc-45eb-805c-596676285184:Node 2ebc7e26-bacc-45eb-805c-596676285184 :: true 2022-05-09 23:15:14 | [Mutex] waiting for: [received:nodes:d0728627-e1da-488e-89f8-34b1274073e9:localhost] 2022-05-09 23:15:14 | [Mutex] received everything. 2022-05-09 23:15:14 | [Mutex] isItemNotified: received:node:d0728627-e1da-488e-89f8-34b1274073e9:localhost:node-2ebc7e26-bacc-45eb-805c-596676285184:Node 2ebc7e26-bacc-45eb-805c-596676285184 :: false |
createNodes | 1.639s |
2022-05-09 23:15:10 |
2022-05-09 23:15:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:10 | ------------------------------------ 2022-05-09 23:15:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "pubsub#title": "Node 2ebc7e26-bacc-45eb-805c-596676285184" } 2022-05-09 23:15:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 23:15:12 | [Mutex] waiting for: [received:nodes:956943cf-f52e-4776-b53a-6660517bafac:localhost] 2022-05-09 23:15:12 | [Mutex] waiting for: [received:nodes:956943cf-f52e-4776-b53a-6660517bafac:localhost] 2022-05-09 23:15:12 | [Mutex] received everything. 2022-05-09 23:15:12 | [Mutex] isItemNotified: received:node:956943cf-f52e-4776-b53a-6660517bafac:localhost:node-2ebc7e26-bacc-45eb-805c-596676285184:Node 2ebc7e26-bacc-45eb-805c-596676285184 :: true |
createSubnodes | 1.023s |
2022-05-09 23:15:12 |
2022-05-09 23:15:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:12 | ------------------------------------ 2022-05-09 23:15:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-b7881475-a751-497d-a1f0-f4d6a7f16f8d", "pubsub#title": "Node b7881475-a751-497d-a1f0-f4d6a7f16f8d" } 2022-05-09 23:15:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 23:15:13 | [Mutex] waiting for: [received:nodes:0d8ffaab-a3cb-4319-b1a8-2553b552d33b:localhost] 2022-05-09 23:15:13 | [Mutex] received everything. 2022-05-09 23:15:13 | [Mutex] isItemNotified: received:node:0d8ffaab-a3cb-4319-b1a8-2553b552d33b:localhost:node-b7881475-a751-497d-a1f0-f4d6a7f16f8d:Node b7881475-a751-497d-a1f0-f4d6a7f16f8d :: true |
deleteNodes | 1.018s |
2022-05-09 23:15:17 |
2022-05-09 23:15:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:17 | ------------------------------------ 2022-05-09 23:15:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b7881475-a751-497d-a1f0-f4d6a7f16f8d" } 2022-05-09 23:15:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 23:15:18 | [Mutex] waiting for: [received:nodes:e5a65dc3-c4f5-493a-a802-464f4efdb63f:localhost] 2022-05-09 23:15:18 | [Mutex] received everything. 2022-05-09 23:15:18 | [Mutex] isItemNotified: received:node:e5a65dc3-c4f5-493a-a802-464f4efdb63f:localhost:node-b7881475-a751-497d-a1f0-f4d6a7f16f8d:Node b7881475-a751-497d-a1f0-f4d6a7f16f8d :: false |
deleteSubnodes | 1.033s |
2022-05-09 23:15:16 |
2022-05-09 23:15:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:16 | ------------------------------------ 2022-05-09 23:15:16 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2ebc7e26-bacc-45eb-805c-596676285184" } 2022-05-09 23:15:16 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-09 23:15:17 | [Mutex] waiting for: [received:nodes:54c9a292-5004-4c24-87f8-77c30a267ec2:localhost] 2022-05-09 23:15:17 | [Mutex] received everything. 2022-05-09 23:15:17 | [Mutex] isItemNotified: received:node:54c9a292-5004-4c24-87f8-77c30a267ec2:localhost:node-2ebc7e26-bacc-45eb-805c-596676285184:Node 2ebc7e26-bacc-45eb-805c-596676285184 :: false 2022-05-09 23:15:17 | [Mutex] waiting for: [received:nodes:c55f2c3f-931b-4828-8938-395f737666d5:localhost] 2022-05-09 23:15:17 | [Mutex] received everything. 2022-05-09 23:15:17 | [Mutex] isItemNotified: received:node:c55f2c3f-931b-4828-8938-395f737666d5:localhost:node-2ebc7e26-bacc-45eb-805c-596676285184:Node 2ebc7e26-bacc-45eb-805c-596676285184 :: false |
publishItemsToNodes | 0.047s |
2022-05-09 23:15:15 |
2022-05-09 23:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:15 | ------------------------------------ 2022-05-09 23:15:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "entry": "<test>item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec</test>", "item-id": "item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec" } 2022-05-09 23:15:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec" } 2022-05-09 23:15:15 | [Mutex] waiting for: [published:item:notifieditem-15a615e7-3962-4c3b-b4e7-bad18d95b6ec:admin@test-domain.com] 2022-05-09 23:15:15 | [Mutex] received everything. 2022-05-09 23:15:15 | [Mutex] isItemNotified: published:item:notifieditem-15a615e7-3962-4c3b-b4e7-bad18d95b6ec:admin@test-domain.com :: true |
retractItemsFromNodes | 0.087s |
2022-05-09 23:15:15 |
2022-05-09 23:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:15 | ------------------------------------ 2022-05-09 23:15:15 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "item-id": "item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec" } 2022-05-09 23:15:15 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec" } 2022-05-09 23:15:15 | [Mutex] waiting for: [retracted:item:notifieditem-15a615e7-3962-4c3b-b4e7-bad18d95b6ec:admin@test-domain.com] 2022-05-09 23:15:15 | [Mutex] received everything. 2022-05-09 23:15:15 | [Mutex] isItemNotified: retracted:item:notifieditem-15a615e7-3962-4c3b-b4e7-bad18d95b6ec:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.059s |
2022-05-09 23:15:15 |
2022-05-09 23:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:15 | ------------------------------------ 2022-05-09 23:15:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "item-id": "item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec" } 2022-05-09 23:15:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "item-id": "item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec", "item": [ "<item id=\"item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec\"><test>item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec</test></item>" ] } 2022-05-09 23:15:15 | [Mutex] notify: [retrieved:item:item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec:payload-matches:true:localhost] 2022-05-09 23:15:15 | [Mutex] received everything. 2022-05-09 23:15:15 | [Mutex] isItemNotified: retrieved:item:item-15a615e7-3962-4c3b-b4e7-bad18d95b6ec:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2022-05-09 23:15:15 |
2022-05-09 23:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:15 | ------------------------------------ 2022-05-09 23:15:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-09 23:15:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-b7881475-a751-497d-a1f0-f4d6a7f16f8d", "test", "node-2ebc7e26-bacc-45eb-805c-596676285184" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2022-05-09 23:15:15 |
2022-05-09 23:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:15 | ------------------------------------ 2022-05-09 23:15:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-2ebc7e26-bacc-45eb-805c-596676285184)" } 2022-05-09 23:15:15 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-05-09 23:15:14 |
2022-05-09 23:15:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:14 | ------------------------------------ 2022-05-09 23:15:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "jids": [ "admin@test-domain.com" ] } 2022-05-09 23:15:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2022-05-09 23:15:15 |
2022-05-09 23:15:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-09 23:15:15 | ------------------------------------ 2022-05-09 23:15:15 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-2ebc7e26-bacc-45eb-805c-596676285184", "jids": [ "admin@test-domain.com" ] } 2022-05-09 23:15:15 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |