Test duration : 8.984s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.114s |
2021-10-12 22:42:50 |
2021-10-12 22:42:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:50 | ------------------------------------ 2021-10-12 22:42:50 | [Mutex] waiting for: [configured:node:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:node-a48669fc-17e4-4180-a1af-db74964f813b] 2021-10-12 22:42:50 | [Mutex] received everything. 2021-10-12 22:42:50 | [Mutex] isItemNotified: configured:node:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:node-a48669fc-17e4-4180-a1af-db74964f813b :: true 2021-10-12 22:42:51 | [Mutex] waiting for: [received:nodes:9ce25d8d-b52a-4498-a975-ab5ed3a543a1:localhost] 2021-10-12 22:42:51 | [Mutex] received everything. 2021-10-12 22:42:51 | [Mutex] isItemNotified: received:node:9ce25d8d-b52a-4498-a975-ab5ed3a543a1:localhost:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:Node 78519a3d-d12b-4ef4-9bfe-420734cc442e :: true 2021-10-12 22:42:51 | [Mutex] waiting for: [received:nodes:2662786a-eec6-4bda-9a99-5c02107b991e:localhost] 2021-10-12 22:42:51 | [Mutex] received everything. 2021-10-12 22:42:51 | [Mutex] isItemNotified: received:node:2662786a-eec6-4bda-9a99-5c02107b991e:localhost:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:Node 78519a3d-d12b-4ef4-9bfe-420734cc442e :: false |
createNodes | 1.541s |
2021-10-12 22:42:47 |
2021-10-12 22:42:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:47 | ------------------------------------ 2021-10-12 22:42:48 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "pubsub#title": "Node 78519a3d-d12b-4ef4-9bfe-420734cc442e" } 2021-10-12 22:42:48 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:42:49 | [Mutex] waiting for: [received:nodes:553ddeed-6fc4-426b-b260-1c3d2d66d1fe:localhost] 2021-10-12 22:42:49 | [Mutex] received everything. 2021-10-12 22:42:49 | [Mutex] isItemNotified: received:node:553ddeed-6fc4-426b-b260-1c3d2d66d1fe:localhost:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:Node 78519a3d-d12b-4ef4-9bfe-420734cc442e :: true |
createSubnodes | 1.034s |
2021-10-12 22:42:49 |
2021-10-12 22:42:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:49 | ------------------------------------ 2021-10-12 22:42:49 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-a48669fc-17e4-4180-a1af-db74964f813b", "pubsub#title": "Node a48669fc-17e4-4180-a1af-db74964f813b" } 2021-10-12 22:42:49 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:42:50 | [Mutex] waiting for: [received:nodes:853f4a41-d8e3-420c-9934-00f3914aef09:localhost] 2021-10-12 22:42:50 | [Mutex] received everything. 2021-10-12 22:42:50 | [Mutex] isItemNotified: received:node:853f4a41-d8e3-420c-9934-00f3914aef09:localhost:node-a48669fc-17e4-4180-a1af-db74964f813b:Node a48669fc-17e4-4180-a1af-db74964f813b :: true |
deleteNodes | 1.033s |
2021-10-12 22:42:55 |
2021-10-12 22:42:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:55 | ------------------------------------ 2021-10-12 22:42:55 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a48669fc-17e4-4180-a1af-db74964f813b" } 2021-10-12 22:42:55 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:42:56 | [Mutex] waiting for: [received:nodes:a6487afc-3286-449f-b7ba-0f54beb21e30:localhost] 2021-10-12 22:42:56 | [Mutex] received everything. 2021-10-12 22:42:56 | [Mutex] isItemNotified: received:node:a6487afc-3286-449f-b7ba-0f54beb21e30:localhost:node-a48669fc-17e4-4180-a1af-db74964f813b:Node a48669fc-17e4-4180-a1af-db74964f813b :: false |
deleteSubnodes | 1.033s |
2021-10-12 22:42:53 |
2021-10-12 22:42:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:53 | ------------------------------------ 2021-10-12 22:42:53 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e" } 2021-10-12 22:42:53 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-10-12 22:42:54 | [Mutex] waiting for: [received:nodes:b1bed548-cb4e-4084-bad9-84fe49d5c4e3:localhost] 2021-10-12 22:42:55 | [Mutex] waiting for: [received:nodes:b1bed548-cb4e-4084-bad9-84fe49d5c4e3:localhost] 2021-10-12 22:42:55 | [Mutex] received everything. 2021-10-12 22:42:55 | [Mutex] isItemNotified: received:node:b1bed548-cb4e-4084-bad9-84fe49d5c4e3:localhost:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:Node 78519a3d-d12b-4ef4-9bfe-420734cc442e :: false 2021-10-12 22:42:55 | [Mutex] waiting for: [received:nodes:29089a01-470a-460f-9267-a93aaaab2165:localhost] 2021-10-12 22:42:55 | [Mutex] received everything. 2021-10-12 22:42:55 | [Mutex] isItemNotified: received:node:29089a01-470a-460f-9267-a93aaaab2165:localhost:node-78519a3d-d12b-4ef4-9bfe-420734cc442e:Node 78519a3d-d12b-4ef4-9bfe-420734cc442e :: false |
publishItemsToNodes | 0.096s |
2021-10-12 22:42:52 |
2021-10-12 22:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:52 | ------------------------------------ 2021-10-12 22:42:52 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "entry": "<test>item-e62aa74e-65e9-4001-8661-daa3575eea51</test>", "item-id": "item-e62aa74e-65e9-4001-8661-daa3575eea51" } 2021-10-12 22:42:52 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e62aa74e-65e9-4001-8661-daa3575eea51" } 2021-10-12 22:42:52 | [Mutex] waiting for: [published:item:notifieditem-e62aa74e-65e9-4001-8661-daa3575eea51:admin@test-domain.com] 2021-10-12 22:42:52 | [Mutex] received everything. 2021-10-12 22:42:52 | [Mutex] isItemNotified: published:item:notifieditem-e62aa74e-65e9-4001-8661-daa3575eea51:admin@test-domain.com :: true |
retractItemsFromNodes | 0.061s |
2021-10-12 22:42:52 |
2021-10-12 22:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:52 | ------------------------------------ 2021-10-12 22:42:52 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "item-id": "item-e62aa74e-65e9-4001-8661-daa3575eea51" } 2021-10-12 22:42:52 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e62aa74e-65e9-4001-8661-daa3575eea51" } 2021-10-12 22:42:52 | [Mutex] waiting for: [retracted:item:notifieditem-e62aa74e-65e9-4001-8661-daa3575eea51:admin@test-domain.com] 2021-10-12 22:42:52 | [Mutex] received everything. 2021-10-12 22:42:52 | [Mutex] isItemNotified: retracted:item:notifieditem-e62aa74e-65e9-4001-8661-daa3575eea51:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.089s |
2021-10-12 22:42:52 |
2021-10-12 22:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:52 | ------------------------------------ 2021-10-12 22:42:52 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "item-id": "item-e62aa74e-65e9-4001-8661-daa3575eea51" } 2021-10-12 22:42:52 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "item-id": "item-e62aa74e-65e9-4001-8661-daa3575eea51", "item": [ "<item id=\"item-e62aa74e-65e9-4001-8661-daa3575eea51\"><test>item-e62aa74e-65e9-4001-8661-daa3575eea51</test></item>" ] } 2021-10-12 22:42:52 | [Mutex] notify: [retrieved:item:item-e62aa74e-65e9-4001-8661-daa3575eea51:payload-matches:true:localhost] 2021-10-12 22:42:52 | [Mutex] received everything. 2021-10-12 22:42:52 | [Mutex] isItemNotified: retrieved:item:item-e62aa74e-65e9-4001-8661-daa3575eea51:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2021-10-12 22:42:52 |
2021-10-12 22:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:52 | ------------------------------------ 2021-10-12 22:42:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-10-12 22:42:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "node-a48669fc-17e4-4180-a1af-db74964f813b", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2021-10-12 22:42:52 |
2021-10-12 22:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:52 | ------------------------------------ 2021-10-12 22:42:52 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-78519a3d-d12b-4ef4-9bfe-420734cc442e)" } 2021-10-12 22:42:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.019s |
2021-10-12 22:42:51 |
2021-10-12 22:42:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:51 | ------------------------------------ 2021-10-12 22:42:51 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "jids": [ "admin@test-domain.com" ] } 2021-10-12 22:42:51 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.071s |
2021-10-12 22:42:52 |
2021-10-12 22:42:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-10-12 22:42:52 | ------------------------------------ 2021-10-12 22:42:52 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-78519a3d-d12b-4ef4-9bfe-420734cc442e", "jids": [ "admin@test-domain.com" ] } 2021-10-12 22:42:52 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |