Test duration : 8.959s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.159s |
2021-05-27 23:06:56 |
2021-05-27 23:06:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:56 | ------------------------------------ 2021-05-27 23:06:56 | [Mutex] waiting for: [configured:node:node-6a03eb65-bb0d-44c5-818b-f194bceef327:node-4833192a-787c-439c-a899-2f9824dba1b0] 2021-05-27 23:06:56 | [Mutex] received everything. 2021-05-27 23:06:56 | [Mutex] isItemNotified: configured:node:node-6a03eb65-bb0d-44c5-818b-f194bceef327:node-4833192a-787c-439c-a899-2f9824dba1b0 :: true 2021-05-27 23:06:57 | [Mutex] waiting for: [received:nodes:3f688e53-5369-4f4c-9c29-b05bab611cc9:localhost] 2021-05-27 23:06:57 | [Mutex] received everything. 2021-05-27 23:06:57 | [Mutex] isItemNotified: received:node:3f688e53-5369-4f4c-9c29-b05bab611cc9:localhost:node-6a03eb65-bb0d-44c5-818b-f194bceef327:Node 6a03eb65-bb0d-44c5-818b-f194bceef327 :: true 2021-05-27 23:06:57 | [Mutex] waiting for: [received:nodes:2748e574-789d-48a3-9b3f-19b68fd2dcfa:localhost] 2021-05-27 23:06:57 | [Mutex] waiting for: [received:nodes:2748e574-789d-48a3-9b3f-19b68fd2dcfa:localhost] 2021-05-27 23:06:57 | [Mutex] received everything. 2021-05-27 23:06:57 | [Mutex] isItemNotified: received:node:2748e574-789d-48a3-9b3f-19b68fd2dcfa:localhost:node-6a03eb65-bb0d-44c5-818b-f194bceef327:Node 6a03eb65-bb0d-44c5-818b-f194bceef327 :: false |
createNodes | 1.630s |
2021-05-27 23:06:53 |
2021-05-27 23:06:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:53 | ------------------------------------ 2021-05-27 23:06:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "pubsub#title": "Node 6a03eb65-bb0d-44c5-818b-f194bceef327" } 2021-05-27 23:06:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:06:55 | [Mutex] waiting for: [received:nodes:34f533c3-42d1-4bba-8b34-334d6cba5a4b:localhost] 2021-05-27 23:06:55 | [Mutex] received everything. 2021-05-27 23:06:55 | [Mutex] isItemNotified: received:node:34f533c3-42d1-4bba-8b34-334d6cba5a4b:localhost:node-6a03eb65-bb0d-44c5-818b-f194bceef327:Node 6a03eb65-bb0d-44c5-818b-f194bceef327 :: true |
createSubnodes | 1.023s |
2021-05-27 23:06:55 |
2021-05-27 23:06:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:55 | ------------------------------------ 2021-05-27 23:06:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-4833192a-787c-439c-a899-2f9824dba1b0", "pubsub#title": "Node 4833192a-787c-439c-a899-2f9824dba1b0" } 2021-05-27 23:06:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:06:56 | [Mutex] waiting for: [received:nodes:73385d87-a8d0-4b84-89af-07cf0fdd2b55:localhost] 2021-05-27 23:06:56 | [Mutex] received everything. 2021-05-27 23:06:56 | [Mutex] isItemNotified: received:node:73385d87-a8d0-4b84-89af-07cf0fdd2b55:localhost:node-4833192a-787c-439c-a899-2f9824dba1b0:Node 4833192a-787c-439c-a899-2f9824dba1b0 :: true |
deleteNodes | 1.026s |
2021-05-27 23:07:00 |
2021-05-27 23:07:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:07:00 | ------------------------------------ 2021-05-27 23:07:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-4833192a-787c-439c-a899-2f9824dba1b0" } 2021-05-27 23:07:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:07:02 | [Mutex] waiting for: [received:nodes:28bfff89-cda7-445d-966b-45de962547f0:localhost] 2021-05-27 23:07:02 | [Mutex] received everything. 2021-05-27 23:07:02 | [Mutex] isItemNotified: received:node:28bfff89-cda7-445d-966b-45de962547f0:localhost:node-4833192a-787c-439c-a899-2f9824dba1b0:Node 4833192a-787c-439c-a899-2f9824dba1b0 :: false |
deleteSubnodes | 1.026s |
2021-05-27 23:06:59 |
2021-05-27 23:06:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:59 | ------------------------------------ 2021-05-27 23:06:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327" } 2021-05-27 23:06:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-05-27 23:07:00 | [Mutex] waiting for: [received:nodes:b8dc7177-8bf9-4d7c-a0b3-8fadf80819fd:localhost] 2021-05-27 23:07:00 | [Mutex] waiting for: [received:nodes:b8dc7177-8bf9-4d7c-a0b3-8fadf80819fd:localhost] 2021-05-27 23:07:00 | [Mutex] waiting for: [received:nodes:b8dc7177-8bf9-4d7c-a0b3-8fadf80819fd:localhost] 2021-05-27 23:07:00 | [Mutex] received everything. 2021-05-27 23:07:00 | [Mutex] isItemNotified: received:node:b8dc7177-8bf9-4d7c-a0b3-8fadf80819fd:localhost:node-6a03eb65-bb0d-44c5-818b-f194bceef327:Node 6a03eb65-bb0d-44c5-818b-f194bceef327 :: false 2021-05-27 23:07:00 | [Mutex] waiting for: [received:nodes:f9923e39-19de-4cf0-a628-2022f89c21e6:localhost] 2021-05-27 23:07:00 | [Mutex] received everything. 2021-05-27 23:07:00 | [Mutex] isItemNotified: received:node:f9923e39-19de-4cf0-a628-2022f89c21e6:localhost:node-6a03eb65-bb0d-44c5-818b-f194bceef327:Node 6a03eb65-bb0d-44c5-818b-f194bceef327 :: false |
publishItemsToNodes | 0.060s |
2021-05-27 23:06:58 |
2021-05-27 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:58 | ------------------------------------ 2021-05-27 23:06:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "entry": "<test>item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87</test>", "item-id": "item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87" } 2021-05-27 23:06:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87" } 2021-05-27 23:06:58 | [Mutex] waiting for: [published:item:notifieditem-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87:admin@test-domain.com] 2021-05-27 23:06:58 | [Mutex] received everything. 2021-05-27 23:06:58 | [Mutex] isItemNotified: published:item:notifieditem-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87:admin@test-domain.com :: true |
retractItemsFromNodes | 0.092s |
2021-05-27 23:06:58 |
2021-05-27 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:58 | ------------------------------------ 2021-05-27 23:06:58 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "item-id": "item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87" } 2021-05-27 23:06:58 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87" } 2021-05-27 23:06:58 | [Mutex] received everything. 2021-05-27 23:06:58 | [Mutex] isItemNotified: retracted:item:notifieditem-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.057s |
2021-05-27 23:06:58 |
2021-05-27 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:58 | ------------------------------------ 2021-05-27 23:06:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "item-id": "item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87" } 2021-05-27 23:06:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "item-id": "item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87", "item": [ "<item id=\"item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87\"><test>item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87</test></item>" ] } 2021-05-27 23:06:58 | [Mutex] notify: [retrieved:item:item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87:payload-matches:true:localhost] 2021-05-27 23:06:58 | [Mutex] received everything. 2021-05-27 23:06:58 | [Mutex] isItemNotified: retrieved:item:item-3c9b7f18-703e-49c3-bd9f-2c3dd91faf87:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.061s |
2021-05-27 23:06:58 |
2021-05-27 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:58 | ------------------------------------ 2021-05-27 23:06:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-05-27 23:06:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "node-4833192a-787c-439c-a899-2f9824dba1b0" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2021-05-27 23:06:58 |
2021-05-27 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:58 | ------------------------------------ 2021-05-27 23:06:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-6a03eb65-bb0d-44c5-818b-f194bceef327)" } 2021-05-27 23:06:58 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2021-05-27 23:06:57 |
2021-05-27 23:06:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:57 | ------------------------------------ 2021-05-27 23:06:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "jids": [ "admin@test-domain.com" ] } 2021-05-27 23:06:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.067s |
2021-05-27 23:06:58 |
2021-05-27 23:06:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-05-27 23:06:58 | ------------------------------------ 2021-05-27 23:06:58 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-6a03eb65-bb0d-44c5-818b-f194bceef327", "jids": [ "admin@test-domain.com" ] } 2021-05-27 23:06:58 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |