Test duration : 8.922s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.136s |
2020-12-16 14:19:41 |
2020-12-16 14:19:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:41 | ------------------------------------ 2020-12-16 14:19:41 | [Mutex] waiting for: [configured:node:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:node-20d899cc-2ba5-4195-a5e3-80c98f94e289] 2020-12-16 14:19:42 | [Mutex] received everything. 2020-12-16 14:19:42 | [Mutex] isItemNotified: configured:node:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:node-20d899cc-2ba5-4195-a5e3-80c98f94e289 :: true 2020-12-16 14:19:43 | [Mutex] waiting for: [received:nodes:0802db62-1b1d-4c36-b6cb-83c3482308c9:localhost] 2020-12-16 14:19:43 | [Mutex] received everything. 2020-12-16 14:19:43 | [Mutex] isItemNotified: received:node:0802db62-1b1d-4c36-b6cb-83c3482308c9:localhost:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:Node de1d70f9-7a35-4ef5-8194-0c30171a805e :: true 2020-12-16 14:19:43 | [Mutex] waiting for: [received:nodes:23430178-8d25-424f-bb8f-d641656b5c17:localhost] 2020-12-16 14:19:43 | [Mutex] received everything. 2020-12-16 14:19:43 | [Mutex] isItemNotified: received:node:23430178-8d25-424f-bb8f-d641656b5c17:localhost:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:Node de1d70f9-7a35-4ef5-8194-0c30171a805e :: false |
createNodes | 1.584s |
2020-12-16 14:19:39 |
2020-12-16 14:19:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:39 | ------------------------------------ 2020-12-16 14:19:39 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "pubsub#title": "Node de1d70f9-7a35-4ef5-8194-0c30171a805e" } 2020-12-16 14:19:39 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:19:40 | [Mutex] waiting for: [received:nodes:735afdb6-2606-4aa1-9c6d-2a856321599b:localhost] 2020-12-16 14:19:40 | [Mutex] received everything. 2020-12-16 14:19:40 | [Mutex] isItemNotified: received:node:735afdb6-2606-4aa1-9c6d-2a856321599b:localhost:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:Node de1d70f9-7a35-4ef5-8194-0c30171a805e :: true |
createSubnodes | 1.021s |
2020-12-16 14:19:40 |
2020-12-16 14:19:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:40 | ------------------------------------ 2020-12-16 14:19:40 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-20d899cc-2ba5-4195-a5e3-80c98f94e289", "pubsub#title": "Node 20d899cc-2ba5-4195-a5e3-80c98f94e289" } 2020-12-16 14:19:40 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:19:41 | [Mutex] waiting for: [received:nodes:3c494946-b52f-48dc-81c0-c0ca572bbf8f:localhost] 2020-12-16 14:19:41 | [Mutex] received everything. 2020-12-16 14:19:41 | [Mutex] isItemNotified: received:node:3c494946-b52f-48dc-81c0-c0ca572bbf8f:localhost:node-20d899cc-2ba5-4195-a5e3-80c98f94e289:Node 20d899cc-2ba5-4195-a5e3-80c98f94e289 :: true |
deleteNodes | 1.020s |
2020-12-16 14:19:46 |
2020-12-16 14:19:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:46 | ------------------------------------ 2020-12-16 14:19:46 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-20d899cc-2ba5-4195-a5e3-80c98f94e289" } 2020-12-16 14:19:46 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:19:47 | [Mutex] waiting for: [received:nodes:1ab06b8c-9b87-433c-8516-33d6126f4a61:localhost] 2020-12-16 14:19:47 | [Mutex] received everything. 2020-12-16 14:19:47 | [Mutex] isItemNotified: received:node:1ab06b8c-9b87-433c-8516-33d6126f4a61:localhost:node-20d899cc-2ba5-4195-a5e3-80c98f94e289:Node 20d899cc-2ba5-4195-a5e3-80c98f94e289 :: false |
deleteSubnodes | 1.025s |
2020-12-16 14:19:45 |
2020-12-16 14:19:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:45 | ------------------------------------ 2020-12-16 14:19:45 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e" } 2020-12-16 14:19:45 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-12-16 14:19:46 | [Mutex] waiting for: [received:nodes:27870856-a309-49bd-b4c2-9a04db17b4e1:localhost] 2020-12-16 14:19:46 | [Mutex] received everything. 2020-12-16 14:19:46 | [Mutex] isItemNotified: received:node:27870856-a309-49bd-b4c2-9a04db17b4e1:localhost:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:Node de1d70f9-7a35-4ef5-8194-0c30171a805e :: false 2020-12-16 14:19:46 | [Mutex] waiting for: [received:nodes:b29f7434-2357-4728-80e6-cd920f382eb6:localhost] 2020-12-16 14:19:46 | [Mutex] received everything. 2020-12-16 14:19:46 | [Mutex] isItemNotified: received:node:b29f7434-2357-4728-80e6-cd920f382eb6:localhost:node-de1d70f9-7a35-4ef5-8194-0c30171a805e:Node de1d70f9-7a35-4ef5-8194-0c30171a805e :: false |
publishItemsToNodes | 0.047s |
2020-12-16 14:19:44 |
2020-12-16 14:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:44 | ------------------------------------ 2020-12-16 14:19:44 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "entry": "<test>item-1b272ee1-1ab7-4736-b400-849c708db8fc</test>", "item-id": "item-1b272ee1-1ab7-4736-b400-849c708db8fc" } 2020-12-16 14:19:44 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1b272ee1-1ab7-4736-b400-849c708db8fc" } 2020-12-16 14:19:44 | [Mutex] waiting for: [published:item:notifieditem-1b272ee1-1ab7-4736-b400-849c708db8fc:admin@test-domain.com] 2020-12-16 14:19:44 | [Mutex] received everything. 2020-12-16 14:19:44 | [Mutex] isItemNotified: published:item:notifieditem-1b272ee1-1ab7-4736-b400-849c708db8fc:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-12-16 14:19:44 |
2020-12-16 14:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:44 | ------------------------------------ 2020-12-16 14:19:44 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "item-id": "item-1b272ee1-1ab7-4736-b400-849c708db8fc" } 2020-12-16 14:19:44 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-1b272ee1-1ab7-4736-b400-849c708db8fc" } 2020-12-16 14:19:44 | [Mutex] received everything. 2020-12-16 14:19:44 | [Mutex] isItemNotified: retracted:item:notifieditem-1b272ee1-1ab7-4736-b400-849c708db8fc:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.067s |
2020-12-16 14:19:44 |
2020-12-16 14:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:44 | ------------------------------------ 2020-12-16 14:19:44 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "item-id": "item-1b272ee1-1ab7-4736-b400-849c708db8fc" } 2020-12-16 14:19:44 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "item-id": "item-1b272ee1-1ab7-4736-b400-849c708db8fc", "item": [ "<item id=\"item-1b272ee1-1ab7-4736-b400-849c708db8fc\"><test>item-1b272ee1-1ab7-4736-b400-849c708db8fc</test></item>" ] } 2020-12-16 14:19:44 | [Mutex] notify: [retrieved:item:item-1b272ee1-1ab7-4736-b400-849c708db8fc:payload-matches:true:localhost] 2020-12-16 14:19:44 | [Mutex] received everything. 2020-12-16 14:19:44 | [Mutex] isItemNotified: retrieved:item:item-1b272ee1-1ab7-4736-b400-849c708db8fc:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-12-16 14:19:44 |
2020-12-16 14:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:44 | ------------------------------------ 2020-12-16 14:19:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-12-16 14:19:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "node-20d899cc-2ba5-4195-a5e3-80c98f94e289" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-12-16 14:19:44 |
2020-12-16 14:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:44 | ------------------------------------ 2020-12-16 14:19:44 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-de1d70f9-7a35-4ef5-8194-0c30171a805e)" } 2020-12-16 14:19:44 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2020-12-16 14:19:43 |
2020-12-16 14:19:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:43 | ------------------------------------ 2020-12-16 14:19:43 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "jids": [ "admin@test-domain.com" ] } 2020-12-16 14:19:43 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.096s |
2020-12-16 14:19:44 |
2020-12-16 14:19:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-12-16 14:19:44 | ------------------------------------ 2020-12-16 14:19:44 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-de1d70f9-7a35-4ef5-8194-0c30171a805e", "jids": [ "admin@test-domain.com" ] } 2020-12-16 14:19:44 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |