Test duration : 9.103s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.096s |
2020-09-11 22:58:24 |
2020-09-11 22:58:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:24 | ------------------------------------ 2020-09-11 22:58:24 | [Mutex] waiting for: [configured:node:node-122236b5-0bfe-4fa1-aade-01904b12529b:node-306f6a57-4c47-45f7-b18e-fb24e706e9c5] 2020-09-11 22:58:24 | [Mutex] received everything. 2020-09-11 22:58:24 | [Mutex] isItemNotified: configured:node:node-122236b5-0bfe-4fa1-aade-01904b12529b:node-306f6a57-4c47-45f7-b18e-fb24e706e9c5 :: true 2020-09-11 22:58:25 | [Mutex] waiting for: [received:nodes:700b07f3-86f3-4796-b95f-d07e27c28ab1:localhost] 2020-09-11 22:58:25 | [Mutex] received everything. 2020-09-11 22:58:25 | [Mutex] isItemNotified: received:node:700b07f3-86f3-4796-b95f-d07e27c28ab1:localhost:node-122236b5-0bfe-4fa1-aade-01904b12529b:Node 122236b5-0bfe-4fa1-aade-01904b12529b :: true 2020-09-11 22:58:25 | [Mutex] waiting for: [received:nodes:7cdb97af-243b-4b0d-9888-ede4895da060:localhost] 2020-09-11 22:58:25 | [Mutex] received everything. 2020-09-11 22:58:25 | [Mutex] isItemNotified: received:node:7cdb97af-243b-4b0d-9888-ede4895da060:localhost:node-122236b5-0bfe-4fa1-aade-01904b12529b:Node 122236b5-0bfe-4fa1-aade-01904b12529b :: false |
createNodes | 1.806s |
2020-09-11 22:58:21 |
2020-09-11 22:58:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:21 | ------------------------------------ 2020-09-11 22:58:22 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "pubsub#title": "Node 122236b5-0bfe-4fa1-aade-01904b12529b" } 2020-09-11 22:58:22 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:58:23 | [Mutex] waiting for: [received:nodes:24a4bb5b-b630-4305-b265-af5a66bbccf6:localhost] 2020-09-11 22:58:23 | [Mutex] waiting for: [received:nodes:24a4bb5b-b630-4305-b265-af5a66bbccf6:localhost] 2020-09-11 22:58:23 | [Mutex] waiting for: [received:nodes:24a4bb5b-b630-4305-b265-af5a66bbccf6:localhost] 2020-09-11 22:58:23 | [Mutex] received everything. 2020-09-11 22:58:23 | [Mutex] isItemNotified: received:node:24a4bb5b-b630-4305-b265-af5a66bbccf6:localhost:node-122236b5-0bfe-4fa1-aade-01904b12529b:Node 122236b5-0bfe-4fa1-aade-01904b12529b :: true |
createSubnodes | 1.035s |
2020-09-11 22:58:23 |
2020-09-11 22:58:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:23 | ------------------------------------ 2020-09-11 22:58:23 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-306f6a57-4c47-45f7-b18e-fb24e706e9c5", "pubsub#title": "Node 306f6a57-4c47-45f7-b18e-fb24e706e9c5" } 2020-09-11 22:58:23 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:58:24 | [Mutex] waiting for: [received:nodes:e3f2fd98-686a-4ea3-9880-6c0fee09735d:localhost] 2020-09-11 22:58:24 | [Mutex] received everything. 2020-09-11 22:58:24 | [Mutex] isItemNotified: received:node:e3f2fd98-686a-4ea3-9880-6c0fee09735d:localhost:node-306f6a57-4c47-45f7-b18e-fb24e706e9c5:Node 306f6a57-4c47-45f7-b18e-fb24e706e9c5 :: true |
deleteNodes | 1.024s |
2020-09-11 22:58:29 |
2020-09-11 22:58:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:29 | ------------------------------------ 2020-09-11 22:58:29 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-306f6a57-4c47-45f7-b18e-fb24e706e9c5" } 2020-09-11 22:58:29 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:58:30 | [Mutex] waiting for: [received:nodes:9969faef-ca20-4fce-972e-021eef0dda11:localhost] 2020-09-11 22:58:30 | [Mutex] waiting for: [received:nodes:9969faef-ca20-4fce-972e-021eef0dda11:localhost] 2020-09-11 22:58:30 | [Mutex] received everything. 2020-09-11 22:58:30 | [Mutex] isItemNotified: received:node:9969faef-ca20-4fce-972e-021eef0dda11:localhost:node-306f6a57-4c47-45f7-b18e-fb24e706e9c5:Node 306f6a57-4c47-45f7-b18e-fb24e706e9c5 :: false |
deleteSubnodes | 1.031s |
2020-09-11 22:58:28 |
2020-09-11 22:58:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:28 | ------------------------------------ 2020-09-11 22:58:28 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b" } 2020-09-11 22:58:28 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:58:29 | [Mutex] waiting for: [received:nodes:ff57302d-52c1-4d50-8375-ee6b295c76f6:localhost] 2020-09-11 22:58:29 | [Mutex] waiting for: [received:nodes:ff57302d-52c1-4d50-8375-ee6b295c76f6:localhost] 2020-09-11 22:58:29 | [Mutex] received everything. 2020-09-11 22:58:29 | [Mutex] isItemNotified: received:node:ff57302d-52c1-4d50-8375-ee6b295c76f6:localhost:node-122236b5-0bfe-4fa1-aade-01904b12529b:Node 122236b5-0bfe-4fa1-aade-01904b12529b :: false 2020-09-11 22:58:29 | [Mutex] waiting for: [received:nodes:ba912f29-3580-4cc0-84df-5ab95a9e7238:localhost] 2020-09-11 22:58:29 | [Mutex] received everything. 2020-09-11 22:58:29 | [Mutex] isItemNotified: received:node:ba912f29-3580-4cc0-84df-5ab95a9e7238:localhost:node-122236b5-0bfe-4fa1-aade-01904b12529b:Node 122236b5-0bfe-4fa1-aade-01904b12529b :: false |
publishItemsToNodes | 0.047s |
2020-09-11 22:58:26 |
2020-09-11 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:26 | ------------------------------------ 2020-09-11 22:58:26 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "entry": "<test>item-b6515e6a-710c-45ce-9c20-f046df50a5e8</test>", "item-id": "item-b6515e6a-710c-45ce-9c20-f046df50a5e8" } 2020-09-11 22:58:26 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b6515e6a-710c-45ce-9c20-f046df50a5e8" } 2020-09-11 22:58:26 | [Mutex] waiting for: [published:item:notifieditem-b6515e6a-710c-45ce-9c20-f046df50a5e8:admin@test-domain.com] 2020-09-11 22:58:26 | [Mutex] received everything. 2020-09-11 22:58:26 | [Mutex] isItemNotified: published:item:notifieditem-b6515e6a-710c-45ce-9c20-f046df50a5e8:admin@test-domain.com :: true |
retractItemsFromNodes | 0.051s |
2020-09-11 22:58:26 |
2020-09-11 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:26 | ------------------------------------ 2020-09-11 22:58:26 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "item-id": "item-b6515e6a-710c-45ce-9c20-f046df50a5e8" } 2020-09-11 22:58:26 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b6515e6a-710c-45ce-9c20-f046df50a5e8" } 2020-09-11 22:58:26 | [Mutex] received everything. 2020-09-11 22:58:26 | [Mutex] isItemNotified: retracted:item:notifieditem-b6515e6a-710c-45ce-9c20-f046df50a5e8:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.065s |
2020-09-11 22:58:26 |
2020-09-11 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:26 | ------------------------------------ 2020-09-11 22:58:26 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "item-id": "item-b6515e6a-710c-45ce-9c20-f046df50a5e8" } 2020-09-11 22:58:26 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "item-id": "item-b6515e6a-710c-45ce-9c20-f046df50a5e8", "item": [ "<item id=\"item-b6515e6a-710c-45ce-9c20-f046df50a5e8\"><test>item-b6515e6a-710c-45ce-9c20-f046df50a5e8</test></item>" ] } 2020-09-11 22:58:26 | [Mutex] notify: [retrieved:item:item-b6515e6a-710c-45ce-9c20-f046df50a5e8:payload-matches:true:localhost] 2020-09-11 22:58:26 | [Mutex] received everything. 2020-09-11 22:58:26 | [Mutex] isItemNotified: retrieved:item:item-b6515e6a-710c-45ce-9c20-f046df50a5e8:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-11 22:58:26 |
2020-09-11 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:26 | ------------------------------------ 2020-09-11 22:58:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-11 22:58:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-122236b5-0bfe-4fa1-aade-01904b12529b", "node-306f6a57-4c47-45f7-b18e-fb24e706e9c5" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-11 22:58:26 |
2020-09-11 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:26 | ------------------------------------ 2020-09-11 22:58:26 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-122236b5-0bfe-4fa1-aade-01904b12529b)" } 2020-09-11 22:58:26 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-09-11 22:58:25 |
2020-09-11 22:58:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:25 | ------------------------------------ 2020-09-11 22:58:25 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "jids": [ "admin@test-domain.com" ] } 2020-09-11 22:58:25 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.111s |
2020-09-11 22:58:26 |
2020-09-11 22:58:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:58:26 | ------------------------------------ 2020-09-11 22:58:26 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-122236b5-0bfe-4fa1-aade-01904b12529b", "jids": [ "admin@test-domain.com" ] } 2020-09-11 22:58:27 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |