Test duration : 8.723s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.102s |
2022-05-08 22:38:13 |
2022-05-08 22:38:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:13 | ------------------------------------ 2022-05-08 22:38:13 | [Mutex] waiting for: [configured:node:node-cda1739b-520d-4161-92c2-443dd78649ad:node-d54e0763-258e-42a9-b55b-96f10ef95060] 2022-05-08 22:38:13 | [Mutex] received everything. 2022-05-08 22:38:13 | [Mutex] isItemNotified: configured:node:node-cda1739b-520d-4161-92c2-443dd78649ad:node-d54e0763-258e-42a9-b55b-96f10ef95060 :: true 2022-05-08 22:38:14 | [Mutex] waiting for: [received:nodes:283b08ba-9846-4d21-b706-6a82f06d2a7b:localhost] 2022-05-08 22:38:14 | [Mutex] received everything. 2022-05-08 22:38:14 | [Mutex] isItemNotified: received:node:283b08ba-9846-4d21-b706-6a82f06d2a7b:localhost:node-cda1739b-520d-4161-92c2-443dd78649ad:Node cda1739b-520d-4161-92c2-443dd78649ad :: true 2022-05-08 22:38:14 | [Mutex] waiting for: [received:nodes:6e0810d6-1a6b-4d09-8ac1-33d0a062c0b7:localhost] 2022-05-08 22:38:14 | [Mutex] received everything. 2022-05-08 22:38:14 | [Mutex] isItemNotified: received:node:6e0810d6-1a6b-4d09-8ac1-33d0a062c0b7:localhost:node-cda1739b-520d-4161-92c2-443dd78649ad:Node cda1739b-520d-4161-92c2-443dd78649ad :: false |
createNodes | 1.635s |
2022-05-08 22:38:11 |
2022-05-08 22:38:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:11 | ------------------------------------ 2022-05-08 22:38:11 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "pubsub#title": "Node cda1739b-520d-4161-92c2-443dd78649ad" } 2022-05-08 22:38:11 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 22:38:12 | [Mutex] waiting for: [received:nodes:47ac3e83-d833-4189-b87d-711ecaa12eb6:localhost] 2022-05-08 22:38:12 | [Mutex] waiting for: [received:nodes:47ac3e83-d833-4189-b87d-711ecaa12eb6:localhost] 2022-05-08 22:38:12 | [Mutex] received everything. 2022-05-08 22:38:12 | [Mutex] isItemNotified: received:node:47ac3e83-d833-4189-b87d-711ecaa12eb6:localhost:node-cda1739b-520d-4161-92c2-443dd78649ad:Node cda1739b-520d-4161-92c2-443dd78649ad :: true |
createSubnodes | 1.027s |
2022-05-08 22:38:12 |
2022-05-08 22:38:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:12 | ------------------------------------ 2022-05-08 22:38:12 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d54e0763-258e-42a9-b55b-96f10ef95060", "pubsub#title": "Node d54e0763-258e-42a9-b55b-96f10ef95060" } 2022-05-08 22:38:12 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 22:38:13 | [Mutex] waiting for: [received:nodes:e83dc7bc-0a3b-455a-a482-756a2e776a32:localhost] 2022-05-08 22:38:13 | [Mutex] waiting for: [received:nodes:e83dc7bc-0a3b-455a-a482-756a2e776a32:localhost] 2022-05-08 22:38:13 | [Mutex] received everything. 2022-05-08 22:38:13 | [Mutex] isItemNotified: received:node:e83dc7bc-0a3b-455a-a482-756a2e776a32:localhost:node-d54e0763-258e-42a9-b55b-96f10ef95060:Node d54e0763-258e-42a9-b55b-96f10ef95060 :: true |
deleteNodes | 1.020s |
2022-05-08 22:38:18 |
2022-05-08 22:38:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:18 | ------------------------------------ 2022-05-08 22:38:18 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d54e0763-258e-42a9-b55b-96f10ef95060" } 2022-05-08 22:38:18 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 22:38:19 | [Mutex] waiting for: [received:nodes:e13f6b6c-f115-4f45-a510-c10c136fdee9:localhost] 2022-05-08 22:38:19 | [Mutex] waiting for: [received:nodes:e13f6b6c-f115-4f45-a510-c10c136fdee9:localhost] 2022-05-08 22:38:19 | [Mutex] received everything. 2022-05-08 22:38:19 | [Mutex] isItemNotified: received:node:e13f6b6c-f115-4f45-a510-c10c136fdee9:localhost:node-d54e0763-258e-42a9-b55b-96f10ef95060:Node d54e0763-258e-42a9-b55b-96f10ef95060 :: false |
deleteSubnodes | 1.027s |
2022-05-08 22:38:17 |
2022-05-08 22:38:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:17 | ------------------------------------ 2022-05-08 22:38:17 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-cda1739b-520d-4161-92c2-443dd78649ad" } 2022-05-08 22:38:17 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2022-05-08 22:38:18 | [Mutex] waiting for: [received:nodes:26c0383b-a71f-4453-b07f-301da65bfc85:localhost] 2022-05-08 22:38:18 | [Mutex] received everything. 2022-05-08 22:38:18 | [Mutex] isItemNotified: received:node:26c0383b-a71f-4453-b07f-301da65bfc85:localhost:node-cda1739b-520d-4161-92c2-443dd78649ad:Node cda1739b-520d-4161-92c2-443dd78649ad :: false 2022-05-08 22:38:18 | [Mutex] waiting for: [received:nodes:d28846b5-1ccc-46cc-ae2c-5787a463da34:localhost] 2022-05-08 22:38:18 | [Mutex] received everything. 2022-05-08 22:38:18 | [Mutex] isItemNotified: received:node:d28846b5-1ccc-46cc-ae2c-5787a463da34:localhost:node-cda1739b-520d-4161-92c2-443dd78649ad:Node cda1739b-520d-4161-92c2-443dd78649ad :: false |
publishItemsToNodes | 0.068s |
2022-05-08 22:38:15 |
2022-05-08 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:15 | ------------------------------------ 2022-05-08 22:38:15 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "entry": "<test>item-71817788-c117-4845-ae82-8c33b9ca26c0</test>", "item-id": "item-71817788-c117-4845-ae82-8c33b9ca26c0" } 2022-05-08 22:38:15 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-71817788-c117-4845-ae82-8c33b9ca26c0" } 2022-05-08 22:38:15 | [Mutex] waiting for: [published:item:notifieditem-71817788-c117-4845-ae82-8c33b9ca26c0:admin@test-domain.com] 2022-05-08 22:38:15 | [Mutex] received everything. 2022-05-08 22:38:15 | [Mutex] isItemNotified: published:item:notifieditem-71817788-c117-4845-ae82-8c33b9ca26c0:admin@test-domain.com :: true |
retractItemsFromNodes | 0.069s |
2022-05-08 22:38:16 |
2022-05-08 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:16 | ------------------------------------ 2022-05-08 22:38:16 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "item-id": "item-71817788-c117-4845-ae82-8c33b9ca26c0" } 2022-05-08 22:38:16 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-71817788-c117-4845-ae82-8c33b9ca26c0" } 2022-05-08 22:38:16 | [Mutex] waiting for: [retracted:item:notifieditem-71817788-c117-4845-ae82-8c33b9ca26c0:admin@test-domain.com] 2022-05-08 22:38:16 | [Mutex] received everything. 2022-05-08 22:38:16 | [Mutex] isItemNotified: retracted:item:notifieditem-71817788-c117-4845-ae82-8c33b9ca26c0:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.033s |
2022-05-08 22:38:15 |
2022-05-08 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:15 | ------------------------------------ 2022-05-08 22:38:15 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "item-id": "item-71817788-c117-4845-ae82-8c33b9ca26c0" } 2022-05-08 22:38:15 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "item-id": "item-71817788-c117-4845-ae82-8c33b9ca26c0", "item": [ "<item id=\"item-71817788-c117-4845-ae82-8c33b9ca26c0\"><test>item-71817788-c117-4845-ae82-8c33b9ca26c0</test></item>" ] } 2022-05-08 22:38:15 | [Mutex] notify: [retrieved:item:item-71817788-c117-4845-ae82-8c33b9ca26c0:payload-matches:true:localhost] 2022-05-08 22:38:15 | [Mutex] received everything. 2022-05-08 22:38:15 | [Mutex] isItemNotified: retrieved:item:item-71817788-c117-4845-ae82-8c33b9ca26c0:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.053s |
2022-05-08 22:38:15 |
2022-05-08 22:38:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:15 | ------------------------------------ 2022-05-08 22:38:15 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2022-05-08 22:38:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d54e0763-258e-42a9-b55b-96f10ef95060", "test", "node-cda1739b-520d-4161-92c2-443dd78649ad" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2022-05-08 22:38:16 |
2022-05-08 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:16 | ------------------------------------ 2022-05-08 22:38:16 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-cda1739b-520d-4161-92c2-443dd78649ad)" } 2022-05-08 22:38:16 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2022-05-08 22:38:14 |
2022-05-08 22:38:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:14 | ------------------------------------ 2022-05-08 22:38:14 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "jids": [ "admin@test-domain.com" ] } 2022-05-08 22:38:14 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.061s |
2022-05-08 22:38:16 |
2022-05-08 22:38:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2022-05-08 22:38:16 | ------------------------------------ 2022-05-08 22:38:16 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-cda1739b-520d-4161-92c2-443dd78649ad", "jids": [ "admin@test-domain.com" ] } 2022-05-08 22:38:16 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |