Test duration : 9.029s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.112s |
2020-11-18 21:28:53 |
2020-11-18 21:28:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:53 | ------------------------------------ 2020-11-18 21:28:53 | [Mutex] waiting for: [configured:node:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:node-24beee3b-0855-425e-ac9b-6c689c83cdd4] 2020-11-18 21:28:53 | [Mutex] received everything. 2020-11-18 21:28:53 | [Mutex] isItemNotified: configured:node:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:node-24beee3b-0855-425e-ac9b-6c689c83cdd4 :: true 2020-11-18 21:28:54 | [Mutex] waiting for: [received:nodes:ec8de8a2-fd9c-4d0a-aa80-ad2ac5014444:localhost] 2020-11-18 21:28:54 | [Mutex] received everything. 2020-11-18 21:28:54 | [Mutex] isItemNotified: received:node:ec8de8a2-fd9c-4d0a-aa80-ad2ac5014444:localhost:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:Node 4352257e-edbc-4e35-9cad-459a3b6c85fa :: true 2020-11-18 21:28:54 | [Mutex] waiting for: [received:nodes:10441b30-1ea7-4404-b3e9-83be8e614524:localhost] 2020-11-18 21:28:54 | [Mutex] received everything. 2020-11-18 21:28:54 | [Mutex] isItemNotified: received:node:10441b30-1ea7-4404-b3e9-83be8e614524:localhost:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:Node 4352257e-edbc-4e35-9cad-459a3b6c85fa :: false |
createNodes | 1.641s |
2020-11-18 21:28:50 |
2020-11-18 21:28:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:50 | ------------------------------------ 2020-11-18 21:28:51 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "pubsub#title": "Node 4352257e-edbc-4e35-9cad-459a3b6c85fa" } 2020-11-18 21:28:51 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:28:52 | [Mutex] waiting for: [received:nodes:dd538d1a-cf79-4514-a62a-0499a27a7e8c:localhost] 2020-11-18 21:28:52 | [Mutex] waiting for: [received:nodes:dd538d1a-cf79-4514-a62a-0499a27a7e8c:localhost] 2020-11-18 21:28:52 | [Mutex] received everything. 2020-11-18 21:28:52 | [Mutex] isItemNotified: received:node:dd538d1a-cf79-4514-a62a-0499a27a7e8c:localhost:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:Node 4352257e-edbc-4e35-9cad-459a3b6c85fa :: true |
createSubnodes | 1.026s |
2020-11-18 21:28:52 |
2020-11-18 21:28:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:52 | ------------------------------------ 2020-11-18 21:28:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-24beee3b-0855-425e-ac9b-6c689c83cdd4", "pubsub#title": "Node 24beee3b-0855-425e-ac9b-6c689c83cdd4" } 2020-11-18 21:28:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:28:53 | [Mutex] waiting for: [received:nodes:0d986da6-e7fe-4880-96e6-3169d4c64229:localhost] 2020-11-18 21:28:53 | [Mutex] received everything. 2020-11-18 21:28:53 | [Mutex] isItemNotified: received:node:0d986da6-e7fe-4880-96e6-3169d4c64229:localhost:node-24beee3b-0855-425e-ac9b-6c689c83cdd4:Node 24beee3b-0855-425e-ac9b-6c689c83cdd4 :: true |
deleteNodes | 1.023s |
2020-11-18 21:28:57 |
2020-11-18 21:28:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:57 | ------------------------------------ 2020-11-18 21:28:57 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-24beee3b-0855-425e-ac9b-6c689c83cdd4" } 2020-11-18 21:28:57 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:28:58 | [Mutex] waiting for: [received:nodes:7b112256-0a22-4f75-840e-08cffb02ebbd:localhost] 2020-11-18 21:28:58 | [Mutex] received everything. 2020-11-18 21:28:58 | [Mutex] isItemNotified: received:node:7b112256-0a22-4f75-840e-08cffb02ebbd:localhost:node-24beee3b-0855-425e-ac9b-6c689c83cdd4:Node 24beee3b-0855-425e-ac9b-6c689c83cdd4 :: false |
deleteSubnodes | 1.028s |
2020-11-18 21:28:56 |
2020-11-18 21:28:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:56 | ------------------------------------ 2020-11-18 21:28:56 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa" } 2020-11-18 21:28:56 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-11-18 21:28:57 | [Mutex] waiting for: [received:nodes:eb49da14-2e69-4424-bbef-2c4defc8f9ac:localhost] 2020-11-18 21:28:57 | [Mutex] received everything. 2020-11-18 21:28:57 | [Mutex] isItemNotified: received:node:eb49da14-2e69-4424-bbef-2c4defc8f9ac:localhost:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:Node 4352257e-edbc-4e35-9cad-459a3b6c85fa :: false 2020-11-18 21:28:57 | [Mutex] waiting for: [received:nodes:96903b50-7f9d-40ee-aadf-9a3a03c616ac:localhost] 2020-11-18 21:28:57 | [Mutex] received everything. 2020-11-18 21:28:57 | [Mutex] isItemNotified: received:node:96903b50-7f9d-40ee-aadf-9a3a03c616ac:localhost:node-4352257e-edbc-4e35-9cad-459a3b6c85fa:Node 4352257e-edbc-4e35-9cad-459a3b6c85fa :: false |
publishItemsToNodes | 0.038s |
2020-11-18 21:28:55 |
2020-11-18 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:55 | ------------------------------------ 2020-11-18 21:28:55 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "entry": "<test>item-f5975a2b-9570-4117-baf0-737c07094f36</test>", "item-id": "item-f5975a2b-9570-4117-baf0-737c07094f36" } 2020-11-18 21:28:55 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f5975a2b-9570-4117-baf0-737c07094f36" } 2020-11-18 21:28:55 | [Mutex] waiting for: [published:item:notifieditem-f5975a2b-9570-4117-baf0-737c07094f36:admin@test-domain.com] 2020-11-18 21:28:55 | [Mutex] received everything. 2020-11-18 21:28:55 | [Mutex] isItemNotified: published:item:notifieditem-f5975a2b-9570-4117-baf0-737c07094f36:admin@test-domain.com :: true |
retractItemsFromNodes | 0.060s |
2020-11-18 21:28:55 |
2020-11-18 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:55 | ------------------------------------ 2020-11-18 21:28:55 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "item-id": "item-f5975a2b-9570-4117-baf0-737c07094f36" } 2020-11-18 21:28:55 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-f5975a2b-9570-4117-baf0-737c07094f36" } 2020-11-18 21:28:55 | [Mutex] received everything. 2020-11-18 21:28:55 | [Mutex] isItemNotified: retracted:item:notifieditem-f5975a2b-9570-4117-baf0-737c07094f36:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.076s |
2020-11-18 21:28:55 |
2020-11-18 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:55 | ------------------------------------ 2020-11-18 21:28:55 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "item-id": "item-f5975a2b-9570-4117-baf0-737c07094f36" } 2020-11-18 21:28:55 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "item-id": "item-f5975a2b-9570-4117-baf0-737c07094f36", "item": [ "<item id=\"item-f5975a2b-9570-4117-baf0-737c07094f36\"><test>item-f5975a2b-9570-4117-baf0-737c07094f36</test></item>" ] } 2020-11-18 21:28:55 | [Mutex] notify: [retrieved:item:item-f5975a2b-9570-4117-baf0-737c07094f36:payload-matches:true:localhost] 2020-11-18 21:28:55 | [Mutex] received everything. 2020-11-18 21:28:55 | [Mutex] isItemNotified: retrieved:item:item-f5975a2b-9570-4117-baf0-737c07094f36:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.055s |
2020-11-18 21:28:55 |
2020-11-18 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:55 | ------------------------------------ 2020-11-18 21:28:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-11-18 21:28:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-24beee3b-0855-425e-ac9b-6c689c83cdd4", "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "test" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-11-18 21:28:55 |
2020-11-18 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:55 | ------------------------------------ 2020-11-18 21:28:55 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-4352257e-edbc-4e35-9cad-459a3b6c85fa)" } 2020-11-18 21:28:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2020-11-18 21:28:54 |
2020-11-18 21:28:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:54 | ------------------------------------ 2020-11-18 21:28:54 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "jids": [ "admin@test-domain.com" ] } 2020-11-18 21:28:54 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2020-11-18 21:28:55 |
2020-11-18 21:28:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-11-18 21:28:55 | ------------------------------------ 2020-11-18 21:28:55 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-4352257e-edbc-4e35-9cad-459a3b6c85fa", "jids": [ "admin@test-domain.com" ] } 2020-11-18 21:28:55 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |