Test duration: 9.070s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.119s |
2020-06-15 23:33:37 |
2020-06-15 23:33:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:37 | ------------------------------------ 2020-06-15 23:33:37 | [Mutex] waiting for: [configured:node:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:node-e16b4f4f-3792-4e49-8edb-73f14fb25d50] 2020-06-15 23:33:37 | [Mutex] received everything. 2020-06-15 23:33:37 | [Mutex] isItemNotified: configured:node:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:node-e16b4f4f-3792-4e49-8edb-73f14fb25d50 :: true 2020-06-15 23:33:38 | [Mutex] waiting for: [received:nodes:e56d6685-22d1-4524-848f-c3d433f86846:localhost] 2020-06-15 23:33:38 | [Mutex] received everything. 2020-06-15 23:33:38 | [Mutex] isItemNotified: received:node:e56d6685-22d1-4524-848f-c3d433f86846:localhost:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:Node 44f234e1-9e5e-4a72-85fc-0dd20b01e1d5 :: true 2020-06-15 23:33:38 | [Mutex] waiting for: [received:nodes:0fc9abb3-74fd-4df8-b1e2-a928ebe8accf:localhost] 2020-06-15 23:33:38 | [Mutex] received everything. 2020-06-15 23:33:38 | [Mutex] isItemNotified: received:node:0fc9abb3-74fd-4df8-b1e2-a928ebe8accf:localhost:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:Node 44f234e1-9e5e-4a72-85fc-0dd20b01e1d5 :: false |
createNodes | 1.710s |
2020-06-15 23:33:34 |
2020-06-15 23:33:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:34 | ------------------------------------ 2020-06-15 23:33:35 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "pubsub#title": "Node 44f234e1-9e5e-4a72-85fc-0dd20b01e1d5" } 2020-06-15 23:33:35 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-15 23:33:36 | [Mutex] waiting for: [received:nodes:1344fff3-848d-4296-9f8a-c1eb2a7120d7:localhost] 2020-06-15 23:33:36 | [Mutex] received everything. 2020-06-15 23:33:36 | [Mutex] isItemNotified: received:node:1344fff3-848d-4296-9f8a-c1eb2a7120d7:localhost:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:Node 44f234e1-9e5e-4a72-85fc-0dd20b01e1d5 :: true |
createSubnodes | 1.022s |
2020-06-15 23:33:36 |
2020-06-15 23:33:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:36 | ------------------------------------ 2020-06-15 23:33:36 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-e16b4f4f-3792-4e49-8edb-73f14fb25d50", "pubsub#title": "Node e16b4f4f-3792-4e49-8edb-73f14fb25d50" } 2020-06-15 23:33:36 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-15 23:33:37 | [Mutex] waiting for: [received:nodes:c111f440-48cb-476d-8d8e-f73fa44fe56c:localhost] 2020-06-15 23:33:37 | [Mutex] received everything. 2020-06-15 23:33:37 | [Mutex] isItemNotified: received:node:c111f440-48cb-476d-8d8e-f73fa44fe56c:localhost:node-e16b4f4f-3792-4e49-8edb-73f14fb25d50:Node e16b4f4f-3792-4e49-8edb-73f14fb25d50 :: true |
deleteNodes | 1.026s |
2020-06-15 23:33:41 |
2020-06-15 23:33:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:41 | ------------------------------------ 2020-06-15 23:33:41 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-e16b4f4f-3792-4e49-8edb-73f14fb25d50" } 2020-06-15 23:33:41 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-15 23:33:42 | [Mutex] waiting for: [received:nodes:8c9892ad-66b9-4d99-b834-dba644420e75:localhost] 2020-06-15 23:33:42 | [Mutex] received everything. 2020-06-15 23:33:42 | [Mutex] isItemNotified: received:node:8c9892ad-66b9-4d99-b834-dba644420e75:localhost:node-e16b4f4f-3792-4e49-8edb-73f14fb25d50:Node e16b4f4f-3792-4e49-8edb-73f14fb25d50 :: false |
deleteSubnodes | 1.026s |
2020-06-15 23:33:40 |
2020-06-15 23:33:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:40 | ------------------------------------ 2020-06-15 23:33:40 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5" } 2020-06-15 23:33:40 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-06-15 23:33:41 | [Mutex] waiting for: [received:nodes:1e904fac-c455-46dd-9e2f-61b1b4948158:localhost] 2020-06-15 23:33:41 | [Mutex] received everything. 2020-06-15 23:33:41 | [Mutex] isItemNotified: received:node:1e904fac-c455-46dd-9e2f-61b1b4948158:localhost:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:Node 44f234e1-9e5e-4a72-85fc-0dd20b01e1d5 :: false 2020-06-15 23:33:41 | [Mutex] waiting for: [received:nodes:f3ff396d-3765-4f64-aaf4-039bdb2eabc5:localhost] 2020-06-15 23:33:41 | [Mutex] received everything. 2020-06-15 23:33:41 | [Mutex] isItemNotified: received:node:f3ff396d-3765-4f64-aaf4-039bdb2eabc5:localhost:node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5:Node 44f234e1-9e5e-4a72-85fc-0dd20b01e1d5 :: false |
publishItemsToNodes | 0.043s |
2020-06-15 23:33:39 |
2020-06-15 23:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:39 | ------------------------------------ 2020-06-15 23:33:39 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "entry": "<test>item-e9ceaf43-b419-40ae-a556-a815cb22ee1e</test>", "item-id": "item-e9ceaf43-b419-40ae-a556-a815cb22ee1e" } 2020-06-15 23:33:39 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e9ceaf43-b419-40ae-a556-a815cb22ee1e" } 2020-06-15 23:33:39 | [Mutex] waiting for: [published:item:notifieditem-e9ceaf43-b419-40ae-a556-a815cb22ee1e:admin@localhost] 2020-06-15 23:33:39 | [Mutex] received everything. 2020-06-15 23:33:39 | [Mutex] isItemNotified: published:item:notifieditem-e9ceaf43-b419-40ae-a556-a815cb22ee1e:admin@localhost :: true |
retractItemsFromNodes | 0.064s |
2020-06-15 23:33:39 |
2020-06-15 23:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:39 | ------------------------------------ 2020-06-15 23:33:39 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "item-id": "item-e9ceaf43-b419-40ae-a556-a815cb22ee1e" } 2020-06-15 23:33:39 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-e9ceaf43-b419-40ae-a556-a815cb22ee1e" } 2020-06-15 23:33:39 | [Mutex] waiting for: [retracted:item:notifieditem-e9ceaf43-b419-40ae-a556-a815cb22ee1e:admin@localhost] 2020-06-15 23:33:39 | [Mutex] received everything. 2020-06-15 23:33:39 | [Mutex] isItemNotified: retracted:item:notifieditem-e9ceaf43-b419-40ae-a556-a815cb22ee1e:admin@localhost :: true |
retrieveItemsFromNodes | 0.088s |
2020-06-15 23:33:39 |
2020-06-15 23:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:39 | ------------------------------------ 2020-06-15 23:33:39 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "item-id": "item-e9ceaf43-b419-40ae-a556-a815cb22ee1e" } 2020-06-15 23:33:39 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "item-id": "item-e9ceaf43-b419-40ae-a556-a815cb22ee1e", "item": [ "<item id=\"item-e9ceaf43-b419-40ae-a556-a815cb22ee1e\"><test>item-e9ceaf43-b419-40ae-a556-a815cb22ee1e</test></item>" ] } 2020-06-15 23:33:39 | [Mutex] notify: [retrieved:item:item-e9ceaf43-b419-40ae-a556-a815cb22ee1e:payload-matches:true:localhost] 2020-06-15 23:33:39 | [Mutex] received everything. 2020-06-15 23:33:39 | [Mutex] isItemNotified: retrieved:item:item-e9ceaf43-b419-40ae-a556-a815cb22ee1e:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-06-15 23:33:39 |
2020-06-15 23:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:39 | ------------------------------------ 2020-06-15 23:33:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-06-15 23:33:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "test", "node-e16b4f4f-3792-4e49-8edb-73f14fb25d50" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-06-15 23:33:39 |
2020-06-15 23:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:39 | ------------------------------------ 2020-06-15 23:33:39 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5)" } 2020-06-15 23:33:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.017s |
2020-06-15 23:33:38 |
2020-06-15 23:33:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:38 | ------------------------------------ 2020-06-15 23:33:38 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "jids": [ "admin@localhost" ] } 2020-06-15 23:33:38 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.064s |
2020-06-15 23:33:39 |
2020-06-15 23:33:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-06-15 23:33:39 | ------------------------------------ 2020-06-15 23:33:39 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-44f234e1-9e5e-4a72-85fc-0dd20b01e1d5", "jids": [ "admin@localhost" ] } 2020-06-15 23:33:39 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |