Test duration : 9.141s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.152s |
2020-11-11 21:59:42 |
2020-11-11 21:59:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:42 | ------------------------------------ 2020-11-11 21:59:42 | [Mutex] waiting for: [configured:node:node-add68580-76a9-46e9-b012-01b8d11ca3e2:node-52ca554c-37a7-4e1c-a09b-f445fa47ca90] 2020-11-11 21:59:42 | [Mutex] received everything. 2020-11-11 21:59:42 | [Mutex] isItemNotified: configured:node:node-add68580-76a9-46e9-b012-01b8d11ca3e2:node-52ca554c-37a7-4e1c-a09b-f445fa47ca90 :: true 2020-11-11 21:59:43 | [Mutex] waiting for: [received:nodes:bdc68ec2-602c-4dfd-9a26-313792712360:localhost] 2020-11-11 21:59:43 | [Mutex] waiting for: [received:nodes:bdc68ec2-602c-4dfd-9a26-313792712360:localhost] 2020-11-11 21:59:43 | [Mutex] received everything. 2020-11-11 21:59:43 | [Mutex] isItemNotified: received:node:bdc68ec2-602c-4dfd-9a26-313792712360:localhost:node-add68580-76a9-46e9-b012-01b8d11ca3e2:Node add68580-76a9-46e9-b012-01b8d11ca3e2 :: true 2020-11-11 21:59:43 | [Mutex] waiting for: [received:nodes:8d9d1704-a764-4be8-8c4e-b7f572021742:localhost] 2020-11-11 21:59:43 | [Mutex] received everything. 2020-11-11 21:59:43 | [Mutex] isItemNotified: received:node:8d9d1704-a764-4be8-8c4e-b7f572021742:localhost:node-add68580-76a9-46e9-b012-01b8d11ca3e2:Node add68580-76a9-46e9-b012-01b8d11ca3e2 :: false |
createNodes | 1.710s |
2020-11-11 21:59:39 |
2020-11-11 21:59:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:39 | ------------------------------------ 2020-11-11 21:59:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "pubsub#title": "Node add68580-76a9-46e9-b012-01b8d11ca3e2" } 2020-11-11 21:59:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:59:41 | [Mutex] waiting for: [received:nodes:73127193-5e15-47f1-8f32-f3018578752e:localhost] 2020-11-11 21:59:41 | [Mutex] received everything. 2020-11-11 21:59:41 | [Mutex] isItemNotified: received:node:73127193-5e15-47f1-8f32-f3018578752e:localhost:node-add68580-76a9-46e9-b012-01b8d11ca3e2:Node add68580-76a9-46e9-b012-01b8d11ca3e2 :: true |
createSubnodes | 1.027s |
2020-11-11 21:59:41 |
2020-11-11 21:59:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:41 | ------------------------------------ 2020-11-11 21:59:41 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-52ca554c-37a7-4e1c-a09b-f445fa47ca90", "pubsub#title": "Node 52ca554c-37a7-4e1c-a09b-f445fa47ca90" } 2020-11-11 21:59:41 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:59:42 | [Mutex] waiting for: [received:nodes:7202e9cd-3ef0-49b4-a616-9f40aa0f5316:localhost] 2020-11-11 21:59:42 | [Mutex] waiting for: [received:nodes:7202e9cd-3ef0-49b4-a616-9f40aa0f5316:localhost] 2020-11-11 21:59:42 | [Mutex] received everything. 2020-11-11 21:59:42 | [Mutex] isItemNotified: received:node:7202e9cd-3ef0-49b4-a616-9f40aa0f5316:localhost:node-52ca554c-37a7-4e1c-a09b-f445fa47ca90:Node 52ca554c-37a7-4e1c-a09b-f445fa47ca90 :: true |
deleteNodes | 1.024s |
2020-11-11 21:59:47 |
2020-11-11 21:59:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:47 | ------------------------------------ 2020-11-11 21:59:47 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-52ca554c-37a7-4e1c-a09b-f445fa47ca90" } 2020-11-11 21:59:47 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:59:48 | [Mutex] waiting for: [received:nodes:1c0f71c6-243f-458f-b852-5b72a1b3b6d1:localhost] 2020-11-11 21:59:48 | [Mutex] received everything. 2020-11-11 21:59:48 | [Mutex] isItemNotified: received:node:1c0f71c6-243f-458f-b852-5b72a1b3b6d1:localhost:node-52ca554c-37a7-4e1c-a09b-f445fa47ca90:Node 52ca554c-37a7-4e1c-a09b-f445fa47ca90 :: false |
deleteSubnodes | 1.029s |
2020-11-11 21:59:46 |
2020-11-11 21:59:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:46 | ------------------------------------ 2020-11-11 21:59:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2" } 2020-11-11 21:59:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-11 21:59:47 | [Mutex] waiting for: [received:nodes:2d98e19a-5e3a-4dc0-9a32-8c610101a6b6:localhost] 2020-11-11 21:59:47 | [Mutex] received everything. 2020-11-11 21:59:47 | [Mutex] isItemNotified: received:node:2d98e19a-5e3a-4dc0-9a32-8c610101a6b6:localhost:node-add68580-76a9-46e9-b012-01b8d11ca3e2:Node add68580-76a9-46e9-b012-01b8d11ca3e2 :: false 2020-11-11 21:59:47 | [Mutex] waiting for: [received:nodes:78f7bcd7-0923-46eb-94fb-f2ce70b74a77:localhost] 2020-11-11 21:59:47 | [Mutex] received everything. 2020-11-11 21:59:47 | [Mutex] isItemNotified: received:node:78f7bcd7-0923-46eb-94fb-f2ce70b74a77:localhost:node-add68580-76a9-46e9-b012-01b8d11ca3e2:Node add68580-76a9-46e9-b012-01b8d11ca3e2 :: false |
publishItemsToNodes | 0.068s |
2020-11-11 21:59:44 |
2020-11-11 21:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:44 | ------------------------------------ 2020-11-11 21:59:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "entry": "<test>item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4</test>", "item-id": "item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4" } 2020-11-11 21:59:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4" } 2020-11-11 21:59:44 | [Mutex] waiting for: [published:item:notifieditem-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4:admin@test-domain.com] 2020-11-11 21:59:44 | [Mutex] received everything. 2020-11-11 21:59:44 | [Mutex] isItemNotified: published:item:notifieditem-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4:admin@test-domain.com :: true |
retractItemsFromNodes | 0.073s |
2020-11-11 21:59:45 |
2020-11-11 21:59:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:45 | ------------------------------------ 2020-11-11 21:59:45 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "item-id": "item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4" } 2020-11-11 21:59:45 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4" } 2020-11-11 21:59:45 | [Mutex] waiting for: [retracted:item:notifieditem-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4:admin@test-domain.com] 2020-11-11 21:59:45 | [Mutex] received everything. 2020-11-11 21:59:45 | [Mutex] isItemNotified: retracted:item:notifieditem-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.075s |
2020-11-11 21:59:44 |
2020-11-11 21:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:44 | ------------------------------------ 2020-11-11 21:59:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "item-id": "item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4" } 2020-11-11 21:59:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "item-id": "item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4", "item": [ "<item id=\"item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4\"><test>item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4</test></item>" ] } 2020-11-11 21:59:44 | [Mutex] notify: [retrieved:item:item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4:payload-matches:true:localhost] 2020-11-11 21:59:44 | [Mutex] received everything. 2020-11-11 21:59:44 | [Mutex] isItemNotified: retrieved:item:item-4ea6131f-f586-4bf8-a7ef-2c34bac10ba4:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.062s |
2020-11-11 21:59:44 |
2020-11-11 21:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:44 | ------------------------------------ 2020-11-11 21:59:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-11 21:59:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-52ca554c-37a7-4e1c-a09b-f445fa47ca90", "node-add68580-76a9-46e9-b012-01b8d11ca3e2" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-11-11 21:59:44 |
2020-11-11 21:59:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:44 | ------------------------------------ 2020-11-11 21:59:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-add68580-76a9-46e9-b012-01b8d11ca3e2)" } 2020-11-11 21:59:45 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.014s |
2020-11-11 21:59:43 |
2020-11-11 21:59:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:43 | ------------------------------------ 2020-11-11 21:59:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "jids": [ "admin@test-domain.com" ] } 2020-11-11 21:59:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.054s |
2020-11-11 21:59:45 |
2020-11-11 21:59:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-11 21:59:45 | ------------------------------------ 2020-11-11 21:59:45 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-add68580-76a9-46e9-b012-01b8d11ca3e2", "jids": [ "admin@test-domain.com" ] } 2020-11-11 21:59:45 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |