Test duration: 8.704s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.111s |
2020-05-26 22:46:19 |
2020-05-26 22:46:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:19 | ------------------------------------ 2020-05-26 22:46:19 | [Mutex] waiting for: [configured:node:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:node-da4e982c-ffc1-44aa-95ef-92ca9ac03921] 2020-05-26 22:46:19 | [Mutex] received everything. 2020-05-26 22:46:19 | [Mutex] isItemNotified: configured:node:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:node-da4e982c-ffc1-44aa-95ef-92ca9ac03921 :: true 2020-05-26 22:46:20 | [Mutex] waiting for: [received:nodes:6ab955b4-a755-4de6-866e-2340b14dd213:localhost] 2020-05-26 22:46:20 | [Mutex] received everything. 2020-05-26 22:46:20 | [Mutex] isItemNotified: received:node:6ab955b4-a755-4de6-866e-2340b14dd213:localhost:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:Node 61ff27ac-e0a8-40e2-98ba-ae2a26538e64 :: true 2020-05-26 22:46:20 | [Mutex] waiting for: [received:nodes:b8be017c-86cd-4324-8414-1a3898bb5537:localhost] 2020-05-26 22:46:20 | [Mutex] received everything. 2020-05-26 22:46:20 | [Mutex] isItemNotified: received:node:b8be017c-86cd-4324-8414-1a3898bb5537:localhost:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:Node 61ff27ac-e0a8-40e2-98ba-ae2a26538e64 :: false |
createNodes | 1.474s |
2020-05-26 22:46:16 |
2020-05-26 22:46:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:16 | ------------------------------------ 2020-05-26 22:46:17 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "pubsub#title": "Node 61ff27ac-e0a8-40e2-98ba-ae2a26538e64" } 2020-05-26 22:46:17 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 22:46:18 | [Mutex] waiting for: [received:nodes:4727cff0-70de-433d-ba09-819e870f4a14:localhost] 2020-05-26 22:46:18 | [Mutex] received everything. 2020-05-26 22:46:18 | [Mutex] isItemNotified: received:node:4727cff0-70de-433d-ba09-819e870f4a14:localhost:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:Node 61ff27ac-e0a8-40e2-98ba-ae2a26538e64 :: true |
createSubnodes | 1.018s |
2020-05-26 22:46:18 |
2020-05-26 22:46:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:18 | ------------------------------------ 2020-05-26 22:46:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-da4e982c-ffc1-44aa-95ef-92ca9ac03921", "pubsub#title": "Node da4e982c-ffc1-44aa-95ef-92ca9ac03921" } 2020-05-26 22:46:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 22:46:19 | [Mutex] waiting for: [received:nodes:3ab2a72a-84d5-47a5-ad42-d68d463eb018:localhost] 2020-05-26 22:46:19 | [Mutex] received everything. 2020-05-26 22:46:19 | [Mutex] isItemNotified: received:node:3ab2a72a-84d5-47a5-ad42-d68d463eb018:localhost:node-da4e982c-ffc1-44aa-95ef-92ca9ac03921:Node da4e982c-ffc1-44aa-95ef-92ca9ac03921 :: true |
deleteNodes | 1.020s |
2020-05-26 22:46:23 |
2020-05-26 22:46:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:23 | ------------------------------------ 2020-05-26 22:46:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-da4e982c-ffc1-44aa-95ef-92ca9ac03921" } 2020-05-26 22:46:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 22:46:24 | [Mutex] waiting for: [received:nodes:2e381adb-4a62-48ca-851e-7adc2b043c16:localhost] 2020-05-26 22:46:24 | [Mutex] received everything. 2020-05-26 22:46:24 | [Mutex] isItemNotified: received:node:2e381adb-4a62-48ca-851e-7adc2b043c16:localhost:node-da4e982c-ffc1-44aa-95ef-92ca9ac03921:Node da4e982c-ffc1-44aa-95ef-92ca9ac03921 :: false |
deleteSubnodes | 1.024s |
2020-05-26 22:46:22 |
2020-05-26 22:46:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:22 | ------------------------------------ 2020-05-26 22:46:22 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64" } 2020-05-26 22:46:22 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-05-26 22:46:23 | [Mutex] waiting for: [received:nodes:c0cff7db-1b32-48ef-8af7-306e5c69802f:localhost] 2020-05-26 22:46:23 | [Mutex] received everything. 2020-05-26 22:46:23 | [Mutex] isItemNotified: received:node:c0cff7db-1b32-48ef-8af7-306e5c69802f:localhost:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:Node 61ff27ac-e0a8-40e2-98ba-ae2a26538e64 :: false 2020-05-26 22:46:23 | [Mutex] waiting for: [received:nodes:9c372c76-970a-4364-bbc0-5e393f9bdee6:localhost] 2020-05-26 22:46:23 | [Mutex] received everything. 2020-05-26 22:46:23 | [Mutex] isItemNotified: received:node:9c372c76-970a-4364-bbc0-5e393f9bdee6:localhost:node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64:Node 61ff27ac-e0a8-40e2-98ba-ae2a26538e64 :: false |
publishItemsToNodes | 0.028s |
2020-05-26 22:46:21 |
2020-05-26 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:21 | ------------------------------------ 2020-05-26 22:46:21 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "entry": "<test>item-dd700dfb-50c5-4b42-87fc-91079b73a963</test>", "item-id": "item-dd700dfb-50c5-4b42-87fc-91079b73a963" } 2020-05-26 22:46:21 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dd700dfb-50c5-4b42-87fc-91079b73a963" } 2020-05-26 22:46:21 | [Mutex] waiting for: [published:item:notifieditem-dd700dfb-50c5-4b42-87fc-91079b73a963:admin@localhost] 2020-05-26 22:46:21 | [Mutex] received everything. 2020-05-26 22:46:21 | [Mutex] isItemNotified: published:item:notifieditem-dd700dfb-50c5-4b42-87fc-91079b73a963:admin@localhost :: true |
retractItemsFromNodes | 0.052s |
2020-05-26 22:46:21 |
2020-05-26 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:21 | ------------------------------------ 2020-05-26 22:46:21 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "item-id": "item-dd700dfb-50c5-4b42-87fc-91079b73a963" } 2020-05-26 22:46:21 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-dd700dfb-50c5-4b42-87fc-91079b73a963" } 2020-05-26 22:46:21 | [Mutex] received everything. 2020-05-26 22:46:21 | [Mutex] isItemNotified: retracted:item:notifieditem-dd700dfb-50c5-4b42-87fc-91079b73a963:admin@localhost :: true |
retrieveItemsFromNodes | 0.070s |
2020-05-26 22:46:21 |
2020-05-26 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:21 | ------------------------------------ 2020-05-26 22:46:21 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "item-id": "item-dd700dfb-50c5-4b42-87fc-91079b73a963" } 2020-05-26 22:46:21 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "item-id": "item-dd700dfb-50c5-4b42-87fc-91079b73a963", "item": [ "<item id=\"item-dd700dfb-50c5-4b42-87fc-91079b73a963\"><test>item-dd700dfb-50c5-4b42-87fc-91079b73a963</test></item>" ] } 2020-05-26 22:46:21 | [Mutex] notify: [retrieved:item:item-dd700dfb-50c5-4b42-87fc-91079b73a963:payload-matches:true:localhost] 2020-05-26 22:46:21 | [Mutex] received everything. 2020-05-26 22:46:21 | [Mutex] isItemNotified: retrieved:item:item-dd700dfb-50c5-4b42-87fc-91079b73a963:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2020-05-26 22:46:21 |
2020-05-26 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:21 | ------------------------------------ 2020-05-26 22:46:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2020-05-26 22:46:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-da4e982c-ffc1-44aa-95ef-92ca9ac03921", "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64" ] } |
retrieveUserSubscriptionsWithRegex | 0.048s |
2020-05-26 22:46:21 |
2020-05-26 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:21 | ------------------------------------ 2020-05-26 22:46:21 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64)" } 2020-05-26 22:46:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.021s |
2020-05-26 22:46:20 |
2020-05-26 22:46:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:20 | ------------------------------------ 2020-05-26 22:46:20 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "jids": [ "admin@localhost" ] } 2020-05-26 22:46:20 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2020-05-26 22:46:21 |
2020-05-26 22:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-05-26 22:46:21 | ------------------------------------ 2020-05-26 22:46:21 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-61ff27ac-e0a8-40e2-98ba-ae2a26538e64", "jids": [ "admin@localhost" ] } 2020-05-26 22:46:21 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |