Test duration : 9.025s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.086s |
2020-09-26 23:15:47 |
2020-09-26 23:15:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:47 | ------------------------------------ 2020-09-26 23:15:47 | [Mutex] waiting for: [configured:node:node-59c78adf-e34e-4879-be6e-55988d9d2997:node-5c968367-1308-4d22-a584-ec886880a20b] 2020-09-26 23:15:47 | [Mutex] received everything. 2020-09-26 23:15:47 | [Mutex] isItemNotified: configured:node:node-59c78adf-e34e-4879-be6e-55988d9d2997:node-5c968367-1308-4d22-a584-ec886880a20b :: true 2020-09-26 23:15:48 | [Mutex] waiting for: [received:nodes:ce2fe245-abf4-43b1-925c-23212e39d885:localhost] 2020-09-26 23:15:48 | [Mutex] received everything. 2020-09-26 23:15:48 | [Mutex] isItemNotified: received:node:ce2fe245-abf4-43b1-925c-23212e39d885:localhost:node-59c78adf-e34e-4879-be6e-55988d9d2997:Node 59c78adf-e34e-4879-be6e-55988d9d2997 :: true 2020-09-26 23:15:48 | [Mutex] waiting for: [received:nodes:18745934-3c45-449e-a0c0-6ff83b01c160:localhost] 2020-09-26 23:15:48 | [Mutex] received everything. 2020-09-26 23:15:48 | [Mutex] isItemNotified: received:node:18745934-3c45-449e-a0c0-6ff83b01c160:localhost:node-59c78adf-e34e-4879-be6e-55988d9d2997:Node 59c78adf-e34e-4879-be6e-55988d9d2997 :: false |
createNodes | 1.720s |
2020-09-26 23:15:44 |
2020-09-26 23:15:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:44 | ------------------------------------ 2020-09-26 23:15:45 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "pubsub#title": "Node 59c78adf-e34e-4879-be6e-55988d9d2997" } 2020-09-26 23:15:45 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 23:15:46 | [Mutex] waiting for: [received:nodes:8febdd59-1d3e-4dac-9d25-124eadb67031:localhost] 2020-09-26 23:15:46 | [Mutex] waiting for: [received:nodes:8febdd59-1d3e-4dac-9d25-124eadb67031:localhost] 2020-09-26 23:15:46 | [Mutex] received everything. 2020-09-26 23:15:46 | [Mutex] isItemNotified: received:node:8febdd59-1d3e-4dac-9d25-124eadb67031:localhost:node-59c78adf-e34e-4879-be6e-55988d9d2997:Node 59c78adf-e34e-4879-be6e-55988d9d2997 :: true |
createSubnodes | 1.027s |
2020-09-26 23:15:46 |
2020-09-26 23:15:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:46 | ------------------------------------ 2020-09-26 23:15:46 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-5c968367-1308-4d22-a584-ec886880a20b", "pubsub#title": "Node 5c968367-1308-4d22-a584-ec886880a20b" } 2020-09-26 23:15:46 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 23:15:47 | [Mutex] waiting for: [received:nodes:d84d410c-db7b-4471-8f38-bab2b8eaecef:localhost] 2020-09-26 23:15:47 | [Mutex] received everything. 2020-09-26 23:15:47 | [Mutex] isItemNotified: received:node:d84d410c-db7b-4471-8f38-bab2b8eaecef:localhost:node-5c968367-1308-4d22-a584-ec886880a20b:Node 5c968367-1308-4d22-a584-ec886880a20b :: true |
deleteNodes | 1.020s |
2020-09-26 23:15:51 |
2020-09-26 23:15:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:51 | ------------------------------------ 2020-09-26 23:15:51 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-5c968367-1308-4d22-a584-ec886880a20b" } 2020-09-26 23:15:51 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 23:15:52 | [Mutex] waiting for: [received:nodes:8a9410cb-d221-42ed-a284-043187c843f2:localhost] 2020-09-26 23:15:52 | [Mutex] received everything. 2020-09-26 23:15:52 | [Mutex] isItemNotified: received:node:8a9410cb-d221-42ed-a284-043187c843f2:localhost:node-5c968367-1308-4d22-a584-ec886880a20b:Node 5c968367-1308-4d22-a584-ec886880a20b :: false |
deleteSubnodes | 1.028s |
2020-09-26 23:15:50 |
2020-09-26 23:15:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:50 | ------------------------------------ 2020-09-26 23:15:50 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997" } 2020-09-26 23:15:50 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-26 23:15:51 | [Mutex] waiting for: [received:nodes:4bb40b76-b44a-4de2-ab56-46d009b6c3fc:localhost] 2020-09-26 23:15:51 | [Mutex] waiting for: [received:nodes:4bb40b76-b44a-4de2-ab56-46d009b6c3fc:localhost] 2020-09-26 23:15:51 | [Mutex] received everything. 2020-09-26 23:15:51 | [Mutex] isItemNotified: received:node:4bb40b76-b44a-4de2-ab56-46d009b6c3fc:localhost:node-59c78adf-e34e-4879-be6e-55988d9d2997:Node 59c78adf-e34e-4879-be6e-55988d9d2997 :: false 2020-09-26 23:15:51 | [Mutex] waiting for: [received:nodes:9279158e-a1c2-4e0a-8b3e-82ab048794bf:localhost] 2020-09-26 23:15:51 | [Mutex] received everything. 2020-09-26 23:15:51 | [Mutex] isItemNotified: received:node:9279158e-a1c2-4e0a-8b3e-82ab048794bf:localhost:node-59c78adf-e34e-4879-be6e-55988d9d2997:Node 59c78adf-e34e-4879-be6e-55988d9d2997 :: false |
publishItemsToNodes | 0.045s |
2020-09-26 23:15:49 |
2020-09-26 23:15:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:49 | ------------------------------------ 2020-09-26 23:15:49 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "entry": "<test>item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d</test>", "item-id": "item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d" } 2020-09-26 23:15:49 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d" } 2020-09-26 23:15:49 | [Mutex] waiting for: [published:item:notifieditem-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d:admin@test-domain.com] 2020-09-26 23:15:49 | [Mutex] received everything. 2020-09-26 23:15:49 | [Mutex] isItemNotified: published:item:notifieditem-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-09-26 23:15:49 |
2020-09-26 23:15:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:49 | ------------------------------------ 2020-09-26 23:15:49 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "item-id": "item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d" } 2020-09-26 23:15:49 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d" } 2020-09-26 23:15:49 | [Mutex] received everything. 2020-09-26 23:15:49 | [Mutex] isItemNotified: retracted:item:notifieditem-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.074s |
2020-09-26 23:15:49 |
2020-09-26 23:15:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:49 | ------------------------------------ 2020-09-26 23:15:49 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "item-id": "item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d" } 2020-09-26 23:15:49 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "item-id": "item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d", "item": [ "<item id=\"item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d\"><test>item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d</test></item>" ] } 2020-09-26 23:15:49 | [Mutex] notify: [retrieved:item:item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d:payload-matches:true:localhost] 2020-09-26 23:15:49 | [Mutex] received everything. 2020-09-26 23:15:49 | [Mutex] isItemNotified: retrieved:item:item-bbbb80a2-0adb-4a77-9c44-eda73ff1ea6d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2020-09-26 23:15:49 |
2020-09-26 23:15:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:49 | ------------------------------------ 2020-09-26 23:15:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-26 23:15:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-5c968367-1308-4d22-a584-ec886880a20b", "node-59c78adf-e34e-4879-be6e-55988d9d2997" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-26 23:15:49 |
2020-09-26 23:15:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:49 | ------------------------------------ 2020-09-26 23:15:49 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-59c78adf-e34e-4879-be6e-55988d9d2997)" } 2020-09-26 23:15:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-26 23:15:48 |
2020-09-26 23:15:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:48 | ------------------------------------ 2020-09-26 23:15:48 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "jids": [ "admin@test-domain.com" ] } 2020-09-26 23:15:48 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.068s |
2020-09-26 23:15:49 |
2020-09-26 23:15:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-26 23:15:49 | ------------------------------------ 2020-09-26 23:15:49 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-59c78adf-e34e-4879-be6e-55988d9d2997", "jids": [ "admin@test-domain.com" ] } 2020-09-26 23:15:49 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |