Test duration : 9.276s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.117s |
2020-10-04 22:41:48 |
2020-10-04 22:41:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:48 | ------------------------------------ 2020-10-04 22:41:48 | [Mutex] waiting for: [configured:node:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:node-4d738ab2-e4c6-4884-9528-52265364ae75] 2020-10-04 22:41:48 | [Mutex] received everything. 2020-10-04 22:41:48 | [Mutex] isItemNotified: configured:node:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:node-4d738ab2-e4c6-4884-9528-52265364ae75 :: true 2020-10-04 22:41:49 | [Mutex] waiting for: [received:nodes:75283189-bd55-484a-8f60-2b50638eb316:localhost] 2020-10-04 22:41:49 | [Mutex] received everything. 2020-10-04 22:41:49 | [Mutex] isItemNotified: received:node:75283189-bd55-484a-8f60-2b50638eb316:localhost:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:Node 8d76dbe9-54ee-4c45-ac3d-16737837596a :: true 2020-10-04 22:41:49 | [Mutex] waiting for: [received:nodes:f7c8aa64-3af6-491c-bb1d-cf9812847815:localhost] 2020-10-04 22:41:49 | [Mutex] waiting for: [received:nodes:f7c8aa64-3af6-491c-bb1d-cf9812847815:localhost] 2020-10-04 22:41:49 | [Mutex] received everything. 2020-10-04 22:41:49 | [Mutex] isItemNotified: received:node:f7c8aa64-3af6-491c-bb1d-cf9812847815:localhost:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:Node 8d76dbe9-54ee-4c45-ac3d-16737837596a :: false |
createNodes | 1.826s |
2020-10-04 22:41:45 |
2020-10-04 22:41:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:45 | ------------------------------------ 2020-10-04 22:41:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "pubsub#title": "Node 8d76dbe9-54ee-4c45-ac3d-16737837596a" } 2020-10-04 22:41:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-04 22:41:47 | [Mutex] waiting for: [received:nodes:b6f349b1-1dce-4e05-9e2f-d76ad322d48c:localhost] 2020-10-04 22:41:47 | [Mutex] received everything. 2020-10-04 22:41:47 | [Mutex] isItemNotified: received:node:b6f349b1-1dce-4e05-9e2f-d76ad322d48c:localhost:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:Node 8d76dbe9-54ee-4c45-ac3d-16737837596a :: true |
createSubnodes | 1.027s |
2020-10-04 22:41:47 |
2020-10-04 22:41:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:47 | ------------------------------------ 2020-10-04 22:41:47 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4d738ab2-e4c6-4884-9528-52265364ae75", "pubsub#title": "Node 4d738ab2-e4c6-4884-9528-52265364ae75" } 2020-10-04 22:41:47 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-04 22:41:48 | [Mutex] waiting for: [received:nodes:a139bce0-3228-41f4-a80f-5fc8e0e41497:localhost] 2020-10-04 22:41:48 | [Mutex] waiting for: [received:nodes:a139bce0-3228-41f4-a80f-5fc8e0e41497:localhost] 2020-10-04 22:41:48 | [Mutex] received everything. 2020-10-04 22:41:48 | [Mutex] isItemNotified: received:node:a139bce0-3228-41f4-a80f-5fc8e0e41497:localhost:node-4d738ab2-e4c6-4884-9528-52265364ae75:Node 4d738ab2-e4c6-4884-9528-52265364ae75 :: true |
deleteNodes | 1.021s |
2020-10-04 22:41:53 |
2020-10-04 22:41:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:53 | ------------------------------------ 2020-10-04 22:41:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4d738ab2-e4c6-4884-9528-52265364ae75" } 2020-10-04 22:41:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-04 22:41:54 | [Mutex] waiting for: [received:nodes:07cb7f9b-1b02-4e15-9fb6-b0946d3abd78:localhost] 2020-10-04 22:41:54 | [Mutex] received everything. 2020-10-04 22:41:54 | [Mutex] isItemNotified: received:node:07cb7f9b-1b02-4e15-9fb6-b0946d3abd78:localhost:node-4d738ab2-e4c6-4884-9528-52265364ae75:Node 4d738ab2-e4c6-4884-9528-52265364ae75 :: false |
deleteSubnodes | 1.028s |
2020-10-04 22:41:52 |
2020-10-04 22:41:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:52 | ------------------------------------ 2020-10-04 22:41:52 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a" } 2020-10-04 22:41:52 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-04 22:41:53 | [Mutex] waiting for: [received:nodes:544e52f5-432e-44ab-bffa-32ed6d1910a0:localhost] 2020-10-04 22:41:53 | [Mutex] received everything. 2020-10-04 22:41:53 | [Mutex] isItemNotified: received:node:544e52f5-432e-44ab-bffa-32ed6d1910a0:localhost:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:Node 8d76dbe9-54ee-4c45-ac3d-16737837596a :: false 2020-10-04 22:41:53 | [Mutex] waiting for: [received:nodes:a9fac6bf-bd40-40fe-b8a9-8c4f9d9741eb:localhost] 2020-10-04 22:41:53 | [Mutex] received everything. 2020-10-04 22:41:53 | [Mutex] isItemNotified: received:node:a9fac6bf-bd40-40fe-b8a9-8c4f9d9741eb:localhost:node-8d76dbe9-54ee-4c45-ac3d-16737837596a:Node 8d76dbe9-54ee-4c45-ac3d-16737837596a :: false |
publishItemsToNodes | 0.095s |
2020-10-04 22:41:50 |
2020-10-04 22:41:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:50 | ------------------------------------ 2020-10-04 22:41:50 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "entry": "<test>item-a9515d30-c7ec-4747-a4a9-20245e237506</test>", "item-id": "item-a9515d30-c7ec-4747-a4a9-20245e237506" } 2020-10-04 22:41:50 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a9515d30-c7ec-4747-a4a9-20245e237506" } 2020-10-04 22:41:50 | [Mutex] waiting for: [published:item:notifieditem-a9515d30-c7ec-4747-a4a9-20245e237506:admin@test-domain.com] 2020-10-04 22:41:51 | [Mutex] received everything. 2020-10-04 22:41:51 | [Mutex] isItemNotified: published:item:notifieditem-a9515d30-c7ec-4747-a4a9-20245e237506:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-10-04 22:41:51 |
2020-10-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:51 | ------------------------------------ 2020-10-04 22:41:51 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "item-id": "item-a9515d30-c7ec-4747-a4a9-20245e237506" } 2020-10-04 22:41:51 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-a9515d30-c7ec-4747-a4a9-20245e237506" } 2020-10-04 22:41:51 | [Mutex] received everything. 2020-10-04 22:41:51 | [Mutex] isItemNotified: retracted:item:notifieditem-a9515d30-c7ec-4747-a4a9-20245e237506:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.020s |
2020-10-04 22:41:51 |
2020-10-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:51 | ------------------------------------ 2020-10-04 22:41:51 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "item-id": "item-a9515d30-c7ec-4747-a4a9-20245e237506" } 2020-10-04 22:41:51 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "item-id": "item-a9515d30-c7ec-4747-a4a9-20245e237506", "item": [ "<item id=\"item-a9515d30-c7ec-4747-a4a9-20245e237506\"><test>item-a9515d30-c7ec-4747-a4a9-20245e237506</test></item>" ] } 2020-10-04 22:41:51 | [Mutex] notify: [retrieved:item:item-a9515d30-c7ec-4747-a4a9-20245e237506:payload-matches:true:localhost] 2020-10-04 22:41:51 | [Mutex] received everything. 2020-10-04 22:41:51 | [Mutex] isItemNotified: retrieved:item:item-a9515d30-c7ec-4747-a4a9-20245e237506:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.049s |
2020-10-04 22:41:51 |
2020-10-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:51 | ------------------------------------ 2020-10-04 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-04 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-4d738ab2-e4c6-4884-9528-52265364ae75", "node-8d76dbe9-54ee-4c45-ac3d-16737837596a" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-10-04 22:41:51 |
2020-10-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:51 | ------------------------------------ 2020-10-04 22:41:51 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-8d76dbe9-54ee-4c45-ac3d-16737837596a)" } 2020-10-04 22:41:51 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2020-10-04 22:41:49 |
2020-10-04 22:41:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:49 | ------------------------------------ 2020-10-04 22:41:49 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "jids": [ "admin@test-domain.com" ] } 2020-10-04 22:41:49 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.055s |
2020-10-04 22:41:51 |
2020-10-04 22:41:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-04 22:41:51 | ------------------------------------ 2020-10-04 22:41:51 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-8d76dbe9-54ee-4c45-ac3d-16737837596a", "jids": [ "admin@test-domain.com" ] } 2020-10-04 22:41:51 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |