Test duration : 8.872s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.100s |
2020-09-20 22:30:08 |
2020-09-20 22:30:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:08 | ------------------------------------ 2020-09-20 22:30:08 | [Mutex] waiting for: [configured:node:node-8a4cb647-1f46-4230-9c17-d66def54a384:node-96be6609-1ca6-44be-9240-22f47cc63143] 2020-09-20 22:30:08 | [Mutex] received everything. 2020-09-20 22:30:08 | [Mutex] isItemNotified: configured:node:node-8a4cb647-1f46-4230-9c17-d66def54a384:node-96be6609-1ca6-44be-9240-22f47cc63143 :: true 2020-09-20 22:30:09 | [Mutex] waiting for: [received:nodes:952e3031-91fa-4bac-a245-0970e289ebf4:localhost] 2020-09-20 22:30:09 | [Mutex] received everything. 2020-09-20 22:30:09 | [Mutex] isItemNotified: received:node:952e3031-91fa-4bac-a245-0970e289ebf4:localhost:node-8a4cb647-1f46-4230-9c17-d66def54a384:Node 8a4cb647-1f46-4230-9c17-d66def54a384 :: true 2020-09-20 22:30:09 | [Mutex] waiting for: [received:nodes:2828c137-77e5-49d0-887b-c4d3d14d61bb:localhost] 2020-09-20 22:30:09 | [Mutex] received everything. 2020-09-20 22:30:09 | [Mutex] isItemNotified: received:node:2828c137-77e5-49d0-887b-c4d3d14d61bb:localhost:node-8a4cb647-1f46-4230-9c17-d66def54a384:Node 8a4cb647-1f46-4230-9c17-d66def54a384 :: false |
createNodes | 1.524s |
2020-09-20 22:30:05 |
2020-09-20 22:30:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:05 | ------------------------------------ 2020-09-20 22:30:06 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "pubsub#title": "Node 8a4cb647-1f46-4230-9c17-d66def54a384" } 2020-09-20 22:30:06 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 22:30:07 | [Mutex] waiting for: [received:nodes:bf80b286-0d12-43a0-9d54-25f1d84127bc:localhost] 2020-09-20 22:30:07 | [Mutex] received everything. 2020-09-20 22:30:07 | [Mutex] isItemNotified: received:node:bf80b286-0d12-43a0-9d54-25f1d84127bc:localhost:node-8a4cb647-1f46-4230-9c17-d66def54a384:Node 8a4cb647-1f46-4230-9c17-d66def54a384 :: true |
createSubnodes | 1.023s |
2020-09-20 22:30:07 |
2020-09-20 22:30:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:07 | ------------------------------------ 2020-09-20 22:30:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-96be6609-1ca6-44be-9240-22f47cc63143", "pubsub#title": "Node 96be6609-1ca6-44be-9240-22f47cc63143" } 2020-09-20 22:30:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 22:30:08 | [Mutex] waiting for: [received:nodes:61a39c46-1923-49fb-aa0f-a321bcea38ea:localhost] 2020-09-20 22:30:08 | [Mutex] received everything. 2020-09-20 22:30:08 | [Mutex] isItemNotified: received:node:61a39c46-1923-49fb-aa0f-a321bcea38ea:localhost:node-96be6609-1ca6-44be-9240-22f47cc63143:Node 96be6609-1ca6-44be-9240-22f47cc63143 :: true |
deleteNodes | 1.018s |
2020-09-20 22:30:12 |
2020-09-20 22:30:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:12 | ------------------------------------ 2020-09-20 22:30:12 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-96be6609-1ca6-44be-9240-22f47cc63143" } 2020-09-20 22:30:12 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 22:30:13 | [Mutex] waiting for: [received:nodes:ed41df63-5fdd-4b1e-9dbc-f4bcd64e8872:localhost] 2020-09-20 22:30:13 | [Mutex] received everything. 2020-09-20 22:30:13 | [Mutex] isItemNotified: received:node:ed41df63-5fdd-4b1e-9dbc-f4bcd64e8872:localhost:node-96be6609-1ca6-44be-9240-22f47cc63143:Node 96be6609-1ca6-44be-9240-22f47cc63143 :: false |
deleteSubnodes | 1.027s |
2020-09-20 22:30:11 |
2020-09-20 22:30:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:11 | ------------------------------------ 2020-09-20 22:30:11 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384" } 2020-09-20 22:30:11 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-20 22:30:12 | [Mutex] waiting for: [received:nodes:1d226ad5-2226-46c0-97d6-ee8b7a45910c:localhost] 2020-09-20 22:30:12 | [Mutex] received everything. 2020-09-20 22:30:12 | [Mutex] isItemNotified: received:node:1d226ad5-2226-46c0-97d6-ee8b7a45910c:localhost:node-8a4cb647-1f46-4230-9c17-d66def54a384:Node 8a4cb647-1f46-4230-9c17-d66def54a384 :: false 2020-09-20 22:30:12 | [Mutex] waiting for: [received:nodes:65c9dbe4-c3a3-42d1-8ec1-22c765065a52:localhost] 2020-09-20 22:30:12 | [Mutex] received everything. 2020-09-20 22:30:12 | [Mutex] isItemNotified: received:node:65c9dbe4-c3a3-42d1-8ec1-22c765065a52:localhost:node-8a4cb647-1f46-4230-9c17-d66def54a384:Node 8a4cb647-1f46-4230-9c17-d66def54a384 :: false |
publishItemsToNodes | 0.029s |
2020-09-20 22:30:10 |
2020-09-20 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:10 | ------------------------------------ 2020-09-20 22:30:10 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "entry": "<test>item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3</test>", "item-id": "item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3" } 2020-09-20 22:30:10 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3" } 2020-09-20 22:30:10 | [Mutex] waiting for: [published:item:notifieditem-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3:admin@test-domain.com] 2020-09-20 22:30:10 | [Mutex] received everything. 2020-09-20 22:30:10 | [Mutex] isItemNotified: published:item:notifieditem-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3:admin@test-domain.com :: true |
retractItemsFromNodes | 0.056s |
2020-09-20 22:30:10 |
2020-09-20 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:10 | ------------------------------------ 2020-09-20 22:30:10 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "item-id": "item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3" } 2020-09-20 22:30:10 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3" } 2020-09-20 22:30:10 | [Mutex] received everything. 2020-09-20 22:30:10 | [Mutex] isItemNotified: retracted:item:notifieditem-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2020-09-20 22:30:10 |
2020-09-20 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:10 | ------------------------------------ 2020-09-20 22:30:10 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "item-id": "item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3" } 2020-09-20 22:30:10 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "item-id": "item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3", "item": [ "<item id=\"item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3\"><test>item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3</test></item>" ] } 2020-09-20 22:30:10 | [Mutex] notify: [retrieved:item:item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3:payload-matches:true:localhost] 2020-09-20 22:30:10 | [Mutex] received everything. 2020-09-20 22:30:10 | [Mutex] isItemNotified: retrieved:item:item-ab87f67e-1443-455d-ba9a-e7aa6f5d33a3:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.052s |
2020-09-20 22:30:10 |
2020-09-20 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:10 | ------------------------------------ 2020-09-20 22:30:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-20 22:30:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-96be6609-1ca6-44be-9240-22f47cc63143", "node-8a4cb647-1f46-4230-9c17-d66def54a384" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-09-20 22:30:10 |
2020-09-20 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:10 | ------------------------------------ 2020-09-20 22:30:10 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8a4cb647-1f46-4230-9c17-d66def54a384)" } 2020-09-20 22:30:10 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2020-09-20 22:30:09 |
2020-09-20 22:30:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:09 | ------------------------------------ 2020-09-20 22:30:09 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "jids": [ "admin@test-domain.com" ] } 2020-09-20 22:30:09 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.116s |
2020-09-20 22:30:10 |
2020-09-20 22:30:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-20 22:30:10 | ------------------------------------ 2020-09-20 22:30:10 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8a4cb647-1f46-4230-9c17-d66def54a384", "jids": [ "admin@test-domain.com" ] } 2020-09-20 22:30:10 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |