Test duration : 9.061s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.121s |
2020-10-21 22:59:21 |
2020-10-21 22:59:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:21 | ------------------------------------ 2020-10-21 22:59:21 | [Mutex] waiting for: [configured:node:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:node-6b7b1ffd-3cfa-4488-a982-8284434bb011] 2020-10-21 22:59:21 | [Mutex] received everything. 2020-10-21 22:59:21 | [Mutex] isItemNotified: configured:node:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:node-6b7b1ffd-3cfa-4488-a982-8284434bb011 :: true 2020-10-21 22:59:22 | [Mutex] waiting for: [received:nodes:15d645be-04f3-4226-8a1e-4144719346a3:localhost] 2020-10-21 22:59:22 | [Mutex] received everything. 2020-10-21 22:59:22 | [Mutex] isItemNotified: received:node:15d645be-04f3-4226-8a1e-4144719346a3:localhost:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:Node a1cdd5e0-154c-4fa5-9136-bba69f24dcc3 :: true 2020-10-21 22:59:22 | [Mutex] waiting for: [received:nodes:32ce33d1-3030-44c4-bba5-be38bdfe0039:localhost] 2020-10-21 22:59:22 | [Mutex] received everything. 2020-10-21 22:59:22 | [Mutex] isItemNotified: received:node:32ce33d1-3030-44c4-bba5-be38bdfe0039:localhost:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:Node a1cdd5e0-154c-4fa5-9136-bba69f24dcc3 :: false |
createNodes | 1.664s |
2020-10-21 22:59:18 |
2020-10-21 22:59:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:18 | ------------------------------------ 2020-10-21 22:59:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "pubsub#title": "Node a1cdd5e0-154c-4fa5-9136-bba69f24dcc3" } 2020-10-21 22:59:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:59:20 | [Mutex] waiting for: [received:nodes:14929b2e-cb4f-4e11-8ca7-3d0fcc5ac202:localhost] 2020-10-21 22:59:20 | [Mutex] received everything. 2020-10-21 22:59:20 | [Mutex] isItemNotified: received:node:14929b2e-cb4f-4e11-8ca7-3d0fcc5ac202:localhost:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:Node a1cdd5e0-154c-4fa5-9136-bba69f24dcc3 :: true |
createSubnodes | 1.042s |
2020-10-21 22:59:20 |
2020-10-21 22:59:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:20 | ------------------------------------ 2020-10-21 22:59:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-6b7b1ffd-3cfa-4488-a982-8284434bb011", "pubsub#title": "Node 6b7b1ffd-3cfa-4488-a982-8284434bb011" } 2020-10-21 22:59:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:59:21 | [Mutex] waiting for: [received:nodes:035817e3-104b-42e2-bd7f-fc1d05947ad4:localhost] 2020-10-21 22:59:21 | [Mutex] received everything. 2020-10-21 22:59:21 | [Mutex] isItemNotified: received:node:035817e3-104b-42e2-bd7f-fc1d05947ad4:localhost:node-6b7b1ffd-3cfa-4488-a982-8284434bb011:Node 6b7b1ffd-3cfa-4488-a982-8284434bb011 :: true |
deleteNodes | 1.025s |
2020-10-21 22:59:26 |
2020-10-21 22:59:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:26 | ------------------------------------ 2020-10-21 22:59:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6b7b1ffd-3cfa-4488-a982-8284434bb011" } 2020-10-21 22:59:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:59:27 | [Mutex] waiting for: [received:nodes:f4795aab-483c-4769-93aa-22655d5f1699:localhost] 2020-10-21 22:59:27 | [Mutex] received everything. 2020-10-21 22:59:27 | [Mutex] isItemNotified: received:node:f4795aab-483c-4769-93aa-22655d5f1699:localhost:node-6b7b1ffd-3cfa-4488-a982-8284434bb011:Node 6b7b1ffd-3cfa-4488-a982-8284434bb011 :: false |
deleteSubnodes | 1.030s |
2020-10-21 22:59:25 |
2020-10-21 22:59:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:25 | ------------------------------------ 2020-10-21 22:59:25 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3" } 2020-10-21 22:59:25 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-10-21 22:59:26 | [Mutex] waiting for: [received:nodes:db62fbc3-69d9-42fa-83fd-f5788fea850d:localhost] 2020-10-21 22:59:26 | [Mutex] received everything. 2020-10-21 22:59:26 | [Mutex] isItemNotified: received:node:db62fbc3-69d9-42fa-83fd-f5788fea850d:localhost:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:Node a1cdd5e0-154c-4fa5-9136-bba69f24dcc3 :: false 2020-10-21 22:59:26 | [Mutex] waiting for: [received:nodes:1867e8dd-41b2-4d99-a5a8-004790672044:localhost] 2020-10-21 22:59:26 | [Mutex] received everything. 2020-10-21 22:59:26 | [Mutex] isItemNotified: received:node:1867e8dd-41b2-4d99-a5a8-004790672044:localhost:node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3:Node a1cdd5e0-154c-4fa5-9136-bba69f24dcc3 :: false |
publishItemsToNodes | 0.057s |
2020-10-21 22:59:23 |
2020-10-21 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:23 | ------------------------------------ 2020-10-21 22:59:23 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "entry": "<test>item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d</test>", "item-id": "item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d" } 2020-10-21 22:59:23 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d" } 2020-10-21 22:59:23 | [Mutex] waiting for: [published:item:notifieditem-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d:admin@test-domain.com] 2020-10-21 22:59:23 | [Mutex] received everything. 2020-10-21 22:59:23 | [Mutex] isItemNotified: published:item:notifieditem-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.064s |
2020-10-21 22:59:24 |
2020-10-21 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:24 | ------------------------------------ 2020-10-21 22:59:24 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "item-id": "item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d" } 2020-10-21 22:59:24 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d" } 2020-10-21 22:59:24 | [Mutex] received everything. 2020-10-21 22:59:24 | [Mutex] isItemNotified: retracted:item:notifieditem-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.123s |
2020-10-21 22:59:23 |
2020-10-21 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:23 | ------------------------------------ 2020-10-21 22:59:23 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "item-id": "item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d" } 2020-10-21 22:59:23 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "item-id": "item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d", "item": [ "<item id=\"item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d\"><test>item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d</test></item>" ] } 2020-10-21 22:59:23 | [Mutex] notify: [retrieved:item:item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d:payload-matches:true:localhost] 2020-10-21 22:59:23 | [Mutex] received everything. 2020-10-21 22:59:23 | [Mutex] isItemNotified: retrieved:item:item-f5adbe43-3c5a-4594-a9ba-f3b4e297d43d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-10-21 22:59:23 |
2020-10-21 22:59:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:23 | ------------------------------------ 2020-10-21 22:59:23 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-10-21 22:59:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6b7b1ffd-3cfa-4488-a982-8284434bb011", "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3" ] } |
retrieveUserSubscriptionsWithRegex | 0.052s |
2020-10-21 22:59:24 |
2020-10-21 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:24 | ------------------------------------ 2020-10-21 22:59:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3)" } 2020-10-21 22:59:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.013s |
2020-10-21 22:59:22 |
2020-10-21 22:59:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:22 | ------------------------------------ 2020-10-21 22:59:22 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "jids": [ "admin@test-domain.com" ] } 2020-10-21 22:59:22 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.075s |
2020-10-21 22:59:24 |
2020-10-21 22:59:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-10-21 22:59:24 | ------------------------------------ 2020-10-21 22:59:24 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-a1cdd5e0-154c-4fa5-9136-bba69f24dcc3", "jids": [ "admin@test-domain.com" ] } 2020-10-21 22:59:24 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |