Test duration : 9.107s
| Passed Tests | ||
|---|---|---|
| tigase.tests.pubsub.TestRestApiUsingJSON | ||
| configureNodes | 1.103s | 
                            2020-08-25 22:45:31 |  2020-08-25 22:45:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:31 | ------------------------------------ 2020-08-25 22:45:31 | [Mutex] waiting for: [configured:node:node-40c7c969-0eea-4533-bebb-4b255afa820e:node-72cadb5d-58d2-414d-8115-537190334dba] 2020-08-25 22:45:31 | [Mutex] received everything. 2020-08-25 22:45:31 | [Mutex] isItemNotified: configured:node:node-40c7c969-0eea-4533-bebb-4b255afa820e:node-72cadb5d-58d2-414d-8115-537190334dba :: true 2020-08-25 22:45:32 | [Mutex] waiting for: [received:nodes:4f3f231d-7e55-47b8-8c54-77311ef73e64:localhost] 2020-08-25 22:45:32 | [Mutex] received everything. 2020-08-25 22:45:32 | [Mutex] isItemNotified: received:node:4f3f231d-7e55-47b8-8c54-77311ef73e64:localhost:node-40c7c969-0eea-4533-bebb-4b255afa820e:Node 40c7c969-0eea-4533-bebb-4b255afa820e :: true 2020-08-25 22:45:32 | [Mutex] waiting for: [received:nodes:c1ac89c1-b89c-4296-bac0-ea8a3ac77e56:localhost] 2020-08-25 22:45:32 | [Mutex] waiting for: [received:nodes:c1ac89c1-b89c-4296-bac0-ea8a3ac77e56:localhost] 2020-08-25 22:45:32 | [Mutex] received everything. 2020-08-25 22:45:32 | [Mutex] isItemNotified: received:node:c1ac89c1-b89c-4296-bac0-ea8a3ac77e56:localhost:node-40c7c969-0eea-4533-bebb-4b255afa820e:Node 40c7c969-0eea-4533-bebb-4b255afa820e :: false | 
| createNodes | 1.689s | 
                            2020-08-25 22:45:28 |  2020-08-25 22:45:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:28 | ------------------------------------ 2020-08-25 22:45:29 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "pubsub#title": "Node 40c7c969-0eea-4533-bebb-4b255afa820e" } 2020-08-25 22:45:29 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 22:45:30 | [Mutex] waiting for: [received:nodes:71f47b13-50d2-4197-8b03-f6770c7cf8bb:localhost] 2020-08-25 22:45:30 | [Mutex] received everything. 2020-08-25 22:45:30 | [Mutex] isItemNotified: received:node:71f47b13-50d2-4197-8b03-f6770c7cf8bb:localhost:node-40c7c969-0eea-4533-bebb-4b255afa820e:Node 40c7c969-0eea-4533-bebb-4b255afa820e :: true | 
| createSubnodes | 1.027s | 
                            2020-08-25 22:45:30 |  2020-08-25 22:45:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:30 | ------------------------------------ 2020-08-25 22:45:30 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-72cadb5d-58d2-414d-8115-537190334dba", "pubsub#title": "Node 72cadb5d-58d2-414d-8115-537190334dba" } 2020-08-25 22:45:30 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 22:45:31 | [Mutex] waiting for: [received:nodes:430eab2e-a138-4181-a9b2-e73190e14221:localhost] 2020-08-25 22:45:31 | [Mutex] received everything. 2020-08-25 22:45:31 | [Mutex] isItemNotified: received:node:430eab2e-a138-4181-a9b2-e73190e14221:localhost:node-72cadb5d-58d2-414d-8115-537190334dba:Node 72cadb5d-58d2-414d-8115-537190334dba :: true | 
| deleteNodes | 1.023s | 
                            2020-08-25 22:45:35 |  2020-08-25 22:45:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:35 | ------------------------------------ 2020-08-25 22:45:35 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-72cadb5d-58d2-414d-8115-537190334dba" } 2020-08-25 22:45:35 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 22:45:36 | [Mutex] waiting for: [received:nodes:b6ebd2c1-d4ed-48db-a3a9-36a6ec48b76d:localhost] 2020-08-25 22:45:36 | [Mutex] received everything. 2020-08-25 22:45:36 | [Mutex] isItemNotified: received:node:b6ebd2c1-d4ed-48db-a3a9-36a6ec48b76d:localhost:node-72cadb5d-58d2-414d-8115-537190334dba:Node 72cadb5d-58d2-414d-8115-537190334dba :: false | 
| deleteSubnodes | 1.034s | 
                            2020-08-25 22:45:34 |  2020-08-25 22:45:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:34 | ------------------------------------ 2020-08-25 22:45:34 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e" } 2020-08-25 22:45:34 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-25 22:45:35 | [Mutex] waiting for: [received:nodes:6d9ebb12-bce6-45cb-bba1-80d85a23bc15:localhost] 2020-08-25 22:45:35 | [Mutex] received everything. 2020-08-25 22:45:35 | [Mutex] isItemNotified: received:node:6d9ebb12-bce6-45cb-bba1-80d85a23bc15:localhost:node-40c7c969-0eea-4533-bebb-4b255afa820e:Node 40c7c969-0eea-4533-bebb-4b255afa820e :: false 2020-08-25 22:45:35 | [Mutex] waiting for: [received:nodes:71d78889-1fb4-467e-8ed5-cb04021f388e:localhost] 2020-08-25 22:45:35 | [Mutex] received everything. 2020-08-25 22:45:35 | [Mutex] isItemNotified: received:node:71d78889-1fb4-467e-8ed5-cb04021f388e:localhost:node-40c7c969-0eea-4533-bebb-4b255afa820e:Node 40c7c969-0eea-4533-bebb-4b255afa820e :: false | 
| publishItemsToNodes | 0.045s | 
                            2020-08-25 22:45:33 |  2020-08-25 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:33 | ------------------------------------ 2020-08-25 22:45:33 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "entry": "<test>item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf</test>", "item-id": "item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf" } 2020-08-25 22:45:33 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf" } 2020-08-25 22:45:33 | [Mutex] waiting for: [published:item:notifieditem-30eb5e2b-e021-4279-a4b2-54b6299bfcaf:admin@test-domain.com] 2020-08-25 22:45:33 | [Mutex] received everything. 2020-08-25 22:45:33 | [Mutex] isItemNotified: published:item:notifieditem-30eb5e2b-e021-4279-a4b2-54b6299bfcaf:admin@test-domain.com :: true | 
| retractItemsFromNodes | 0.137s | 
                            2020-08-25 22:45:33 |  2020-08-25 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:33 | ------------------------------------ 2020-08-25 22:45:33 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "item-id": "item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf" } 2020-08-25 22:45:33 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf" } 2020-08-25 22:45:33 | [Mutex] waiting for: [retracted:item:notifieditem-30eb5e2b-e021-4279-a4b2-54b6299bfcaf:admin@test-domain.com] 2020-08-25 22:45:33 | [Mutex] received everything. 2020-08-25 22:45:33 | [Mutex] isItemNotified: retracted:item:notifieditem-30eb5e2b-e021-4279-a4b2-54b6299bfcaf:admin@test-domain.com :: true | 
| retrieveItemsFromNodes | 0.075s | 
                            2020-08-25 22:45:33 |  2020-08-25 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:33 | ------------------------------------ 2020-08-25 22:45:33 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "item-id": "item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf" } 2020-08-25 22:45:33 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "item-id": "item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf", "item": [ "<item id=\"item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf\"><test>item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf</test></item>" ] } 2020-08-25 22:45:33 | [Mutex] notify: [retrieved:item:item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf:payload-matches:true:localhost] 2020-08-25 22:45:33 | [Mutex] received everything. 2020-08-25 22:45:33 | [Mutex] isItemNotified: retrieved:item:item-30eb5e2b-e021-4279-a4b2-54b6299bfcaf:payload-matches:true:localhost :: true | 
| retrieveUserSubscriptions | 0.055s | 
                            2020-08-25 22:45:33 |  2020-08-25 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:33 | ------------------------------------ 2020-08-25 22:45:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-25 22:45:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-40c7c969-0eea-4533-bebb-4b255afa820e", "node-72cadb5d-58d2-414d-8115-537190334dba" ] } | 
| retrieveUserSubscriptionsWithRegex | 0.052s | 
                            2020-08-25 22:45:33 |  2020-08-25 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:33 | ------------------------------------ 2020-08-25 22:45:33 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-40c7c969-0eea-4533-bebb-4b255afa820e)" } 2020-08-25 22:45:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } | 
| subscribeNodes | 1.010s | 
                            2020-08-25 22:45:32 |  2020-08-25 22:45:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:32 | ------------------------------------ 2020-08-25 22:45:32 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "jids": [ "admin@test-domain.com" ] } 2020-08-25 22:45:32 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } | 
| unsubscribeNodes | 1.054s | 
                            2020-08-25 22:45:33 |  2020-08-25 22:45:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-25 22:45:33 | ------------------------------------ 2020-08-25 22:45:33 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-40c7c969-0eea-4533-bebb-4b255afa820e", "jids": [ "admin@test-domain.com" ] } 2020-08-25 22:45:33 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |