Test duration : 8.748s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.121s |
2022-05-01 22:50:30 |
2022-05-01 22:50:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:30 | ------------------------------------ 2022-05-01 22:50:30 | [Mutex] waiting for: [configured:node:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:node-a46d101b-dc22-4398-b5dc-3270c023a4d7] 2022-05-01 22:50:30 | [Mutex] received everything. 2022-05-01 22:50:30 | [Mutex] isItemNotified: configured:node:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:node-a46d101b-dc22-4398-b5dc-3270c023a4d7 :: true 2022-05-01 22:50:31 | [Mutex] waiting for: [received:nodes:63a40836-6b12-4040-8b3d-4860525dde43:localhost] 2022-05-01 22:50:31 | [Mutex] received everything. 2022-05-01 22:50:31 | [Mutex] isItemNotified: received:node:63a40836-6b12-4040-8b3d-4860525dde43:localhost:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:Node b1f859e8-e7e8-4521-8749-6ec1ea8c7de4 :: true 2022-05-01 22:50:31 | [Mutex] waiting for: [received:nodes:10fc0f15-d34f-42e0-a416-8655ecd9725f:localhost] 2022-05-01 22:50:31 | [Mutex] waiting for: [received:nodes:10fc0f15-d34f-42e0-a416-8655ecd9725f:localhost] 2022-05-01 22:50:31 | [Mutex] waiting for: [received:nodes:10fc0f15-d34f-42e0-a416-8655ecd9725f:localhost] 2022-05-01 22:50:31 | [Mutex] waiting for: [received:nodes:10fc0f15-d34f-42e0-a416-8655ecd9725f:localhost] 2022-05-01 22:50:31 | [Mutex] received everything. 2022-05-01 22:50:31 | [Mutex] isItemNotified: received:node:10fc0f15-d34f-42e0-a416-8655ecd9725f:localhost:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:Node b1f859e8-e7e8-4521-8749-6ec1ea8c7de4 :: false |
createNodes | 1.527s |
2022-05-01 22:50:28 |
2022-05-01 22:50:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:28 | ------------------------------------ 2022-05-01 22:50:28 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "pubsub#title": "Node b1f859e8-e7e8-4521-8749-6ec1ea8c7de4" } 2022-05-01 22:50:28 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-01 22:50:29 | [Mutex] waiting for: [received:nodes:5a83d93a-7ca5-4beb-a4c3-22743cc8a264:localhost] 2022-05-01 22:50:29 | [Mutex] received everything. 2022-05-01 22:50:29 | [Mutex] isItemNotified: received:node:5a83d93a-7ca5-4beb-a4c3-22743cc8a264:localhost:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:Node b1f859e8-e7e8-4521-8749-6ec1ea8c7de4 :: true |
createSubnodes | 1.043s |
2022-05-01 22:50:29 |
2022-05-01 22:50:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:29 | ------------------------------------ 2022-05-01 22:50:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a46d101b-dc22-4398-b5dc-3270c023a4d7", "pubsub#title": "Node a46d101b-dc22-4398-b5dc-3270c023a4d7" } 2022-05-01 22:50:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-01 22:50:30 | [Mutex] waiting for: [received:nodes:6048ad5f-a22a-4bdf-b413-22dc1bd58b9c:localhost] 2022-05-01 22:50:30 | [Mutex] waiting for: [received:nodes:6048ad5f-a22a-4bdf-b413-22dc1bd58b9c:localhost] 2022-05-01 22:50:30 | [Mutex] received everything. 2022-05-01 22:50:30 | [Mutex] isItemNotified: received:node:6048ad5f-a22a-4bdf-b413-22dc1bd58b9c:localhost:node-a46d101b-dc22-4398-b5dc-3270c023a4d7:Node a46d101b-dc22-4398-b5dc-3270c023a4d7 :: true |
deleteNodes | 1.025s |
2022-05-01 22:50:35 |
2022-05-01 22:50:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:35 | ------------------------------------ 2022-05-01 22:50:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a46d101b-dc22-4398-b5dc-3270c023a4d7" } 2022-05-01 22:50:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-01 22:50:36 | [Mutex] waiting for: [received:nodes:ed7c626a-a96d-4b78-a7b6-bb1e0102df7e:localhost] 2022-05-01 22:50:36 | [Mutex] waiting for: [received:nodes:ed7c626a-a96d-4b78-a7b6-bb1e0102df7e:localhost] 2022-05-01 22:50:36 | [Mutex] received everything. 2022-05-01 22:50:36 | [Mutex] isItemNotified: received:node:ed7c626a-a96d-4b78-a7b6-bb1e0102df7e:localhost:node-a46d101b-dc22-4398-b5dc-3270c023a4d7:Node a46d101b-dc22-4398-b5dc-3270c023a4d7 :: false |
deleteSubnodes | 1.030s |
2022-05-01 22:50:34 |
2022-05-01 22:50:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:34 | ------------------------------------ 2022-05-01 22:50:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4" } 2022-05-01 22:50:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-01 22:50:35 | [Mutex] waiting for: [received:nodes:51b0b208-3b1b-46c4-b88e-2845c850900d:localhost] 2022-05-01 22:50:35 | [Mutex] received everything. 2022-05-01 22:50:35 | [Mutex] isItemNotified: received:node:51b0b208-3b1b-46c4-b88e-2845c850900d:localhost:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:Node b1f859e8-e7e8-4521-8749-6ec1ea8c7de4 :: false 2022-05-01 22:50:35 | [Mutex] waiting for: [received:nodes:12dab3ad-d52a-445e-ae56-18265ebd1af2:localhost] 2022-05-01 22:50:35 | [Mutex] received everything. 2022-05-01 22:50:35 | [Mutex] isItemNotified: received:node:12dab3ad-d52a-445e-ae56-18265ebd1af2:localhost:node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4:Node b1f859e8-e7e8-4521-8749-6ec1ea8c7de4 :: false |
publishItemsToNodes | 0.052s |
2022-05-01 22:50:32 |
2022-05-01 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:32 | ------------------------------------ 2022-05-01 22:50:32 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "entry": "<test>item-faa8bc78-ba3c-438c-af07-4121982550c9</test>", "item-id": "item-faa8bc78-ba3c-438c-af07-4121982550c9" } 2022-05-01 22:50:32 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-faa8bc78-ba3c-438c-af07-4121982550c9" } 2022-05-01 22:50:32 | [Mutex] waiting for: [published:item:notifieditem-faa8bc78-ba3c-438c-af07-4121982550c9:admin@test-domain.com] 2022-05-01 22:50:32 | [Mutex] received everything. 2022-05-01 22:50:32 | [Mutex] isItemNotified: published:item:notifieditem-faa8bc78-ba3c-438c-af07-4121982550c9:admin@test-domain.com :: true |
retractItemsFromNodes | 0.052s |
2022-05-01 22:50:32 |
2022-05-01 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:32 | ------------------------------------ 2022-05-01 22:50:32 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "item-id": "item-faa8bc78-ba3c-438c-af07-4121982550c9" } 2022-05-01 22:50:32 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-faa8bc78-ba3c-438c-af07-4121982550c9" } 2022-05-01 22:50:32 | [Mutex] waiting for: [retracted:item:notifieditem-faa8bc78-ba3c-438c-af07-4121982550c9:admin@test-domain.com] 2022-05-01 22:50:32 | [Mutex] received everything. 2022-05-01 22:50:32 | [Mutex] isItemNotified: retracted:item:notifieditem-faa8bc78-ba3c-438c-af07-4121982550c9:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.022s |
2022-05-01 22:50:32 |
2022-05-01 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:32 | ------------------------------------ 2022-05-01 22:50:32 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "item-id": "item-faa8bc78-ba3c-438c-af07-4121982550c9" } 2022-05-01 22:50:32 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "item-id": "item-faa8bc78-ba3c-438c-af07-4121982550c9", "item": [ "<item id=\"item-faa8bc78-ba3c-438c-af07-4121982550c9\"><test>item-faa8bc78-ba3c-438c-af07-4121982550c9</test></item>" ] } 2022-05-01 22:50:32 | [Mutex] notify: [retrieved:item:item-faa8bc78-ba3c-438c-af07-4121982550c9:payload-matches:true:localhost] 2022-05-01 22:50:32 | [Mutex] received everything. 2022-05-01 22:50:32 | [Mutex] isItemNotified: retrieved:item:item-faa8bc78-ba3c-438c-af07-4121982550c9:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.060s |
2022-05-01 22:50:32 |
2022-05-01 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:32 | ------------------------------------ 2022-05-01 22:50:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-01 22:50:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-a46d101b-dc22-4398-b5dc-3270c023a4d7", "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-01 22:50:32 |
2022-05-01 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:32 | ------------------------------------ 2022-05-01 22:50:32 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4)" } 2022-05-01 22:50:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2022-05-01 22:50:31 |
2022-05-01 22:50:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:31 | ------------------------------------ 2022-05-01 22:50:31 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "jids": [ "admin@test-domain.com" ] } 2022-05-01 22:50:31 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.078s |
2022-05-01 22:50:32 |
2022-05-01 22:50:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-01 22:50:32 | ------------------------------------ 2022-05-01 22:50:32 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-b1f859e8-e7e8-4521-8749-6ec1ea8c7de4", "jids": [ "admin@test-domain.com" ] } 2022-05-01 22:50:33 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |