Test duration : 9.012s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2020-09-16 00:12:54 |
2020-09-16 00:12:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:54 | ------------------------------------ 2020-09-16 00:12:54 | [Mutex] waiting for: [configured:node:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:node-8f39cae5-b9b7-4345-b126-64637b82ae51] 2020-09-16 00:12:54 | [Mutex] received everything. 2020-09-16 00:12:54 | [Mutex] isItemNotified: configured:node:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:node-8f39cae5-b9b7-4345-b126-64637b82ae51 :: true 2020-09-16 00:12:55 | [Mutex] waiting for: [received:nodes:ef212b30-6a11-4359-9a6f-5d29f5fb25b3:localhost] 2020-09-16 00:12:55 | [Mutex] received everything. 2020-09-16 00:12:55 | [Mutex] isItemNotified: received:node:ef212b30-6a11-4359-9a6f-5d29f5fb25b3:localhost:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:Node dae0ddcd-914c-493f-b52b-86fadee3fc07 :: true 2020-09-16 00:12:55 | [Mutex] waiting for: [received:nodes:9325d2ed-f09f-4ef4-900b-b9ef946c18db:localhost] 2020-09-16 00:12:55 | [Mutex] received everything. 2020-09-16 00:12:55 | [Mutex] isItemNotified: received:node:9325d2ed-f09f-4ef4-900b-b9ef946c18db:localhost:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:Node dae0ddcd-914c-493f-b52b-86fadee3fc07 :: false |
createNodes | 1.627s |
2020-09-16 00:12:52 |
2020-09-16 00:12:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:52 | ------------------------------------ 2020-09-16 00:12:52 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "pubsub#title": "Node dae0ddcd-914c-493f-b52b-86fadee3fc07" } 2020-09-16 00:12:52 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 00:12:53 | [Mutex] waiting for: [received:nodes:f602c4b3-e968-4467-addd-4d225ea49b9b:localhost] 2020-09-16 00:12:53 | [Mutex] received everything. 2020-09-16 00:12:53 | [Mutex] isItemNotified: received:node:f602c4b3-e968-4467-addd-4d225ea49b9b:localhost:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:Node dae0ddcd-914c-493f-b52b-86fadee3fc07 :: true |
createSubnodes | 1.026s |
2020-09-16 00:12:53 |
2020-09-16 00:12:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:53 | ------------------------------------ 2020-09-16 00:12:53 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-8f39cae5-b9b7-4345-b126-64637b82ae51", "pubsub#title": "Node 8f39cae5-b9b7-4345-b126-64637b82ae51" } 2020-09-16 00:12:53 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 00:12:54 | [Mutex] waiting for: [received:nodes:83201f62-47a6-4ec8-bad3-6b91a27e91df:localhost] 2020-09-16 00:12:54 | [Mutex] received everything. 2020-09-16 00:12:54 | [Mutex] isItemNotified: received:node:83201f62-47a6-4ec8-bad3-6b91a27e91df:localhost:node-8f39cae5-b9b7-4345-b126-64637b82ae51:Node 8f39cae5-b9b7-4345-b126-64637b82ae51 :: true |
deleteNodes | 1.022s |
2020-09-16 00:12:59 |
2020-09-16 00:12:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:59 | ------------------------------------ 2020-09-16 00:12:59 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-8f39cae5-b9b7-4345-b126-64637b82ae51" } 2020-09-16 00:12:59 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 00:13:00 | [Mutex] waiting for: [received:nodes:2be87815-5af6-40e0-b1fc-27e2af2b93a8:localhost] 2020-09-16 00:13:00 | [Mutex] received everything. 2020-09-16 00:13:00 | [Mutex] isItemNotified: received:node:2be87815-5af6-40e0-b1fc-27e2af2b93a8:localhost:node-8f39cae5-b9b7-4345-b126-64637b82ae51:Node 8f39cae5-b9b7-4345-b126-64637b82ae51 :: false |
deleteSubnodes | 1.023s |
2020-09-16 00:12:58 |
2020-09-16 00:12:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:58 | ------------------------------------ 2020-09-16 00:12:58 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07" } 2020-09-16 00:12:58 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-16 00:12:59 | [Mutex] waiting for: [received:nodes:dec0b0ab-cbb6-49c1-bb54-4017f34e2756:localhost] 2020-09-16 00:12:59 | [Mutex] received everything. 2020-09-16 00:12:59 | [Mutex] isItemNotified: received:node:dec0b0ab-cbb6-49c1-bb54-4017f34e2756:localhost:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:Node dae0ddcd-914c-493f-b52b-86fadee3fc07 :: false 2020-09-16 00:12:59 | [Mutex] waiting for: [received:nodes:053d231e-cf95-4598-9f1b-837a38e9d391:localhost] 2020-09-16 00:12:59 | [Mutex] received everything. 2020-09-16 00:12:59 | [Mutex] isItemNotified: received:node:053d231e-cf95-4598-9f1b-837a38e9d391:localhost:node-dae0ddcd-914c-493f-b52b-86fadee3fc07:Node dae0ddcd-914c-493f-b52b-86fadee3fc07 :: false |
publishItemsToNodes | 0.111s |
2020-09-16 00:12:56 |
2020-09-16 00:12:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:56 | ------------------------------------ 2020-09-16 00:12:56 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "entry": "<test>item-609f8224-e135-477a-9b92-679dd8fc1af1</test>", "item-id": "item-609f8224-e135-477a-9b92-679dd8fc1af1" } 2020-09-16 00:12:56 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-609f8224-e135-477a-9b92-679dd8fc1af1" } 2020-09-16 00:12:56 | [Mutex] waiting for: [published:item:notifieditem-609f8224-e135-477a-9b92-679dd8fc1af1:admin@test-domain.com] 2020-09-16 00:12:57 | [Mutex] received everything. 2020-09-16 00:12:57 | [Mutex] isItemNotified: published:item:notifieditem-609f8224-e135-477a-9b92-679dd8fc1af1:admin@test-domain.com :: true |
retractItemsFromNodes | 0.080s |
2020-09-16 00:12:57 |
2020-09-16 00:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:57 | ------------------------------------ 2020-09-16 00:12:57 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "item-id": "item-609f8224-e135-477a-9b92-679dd8fc1af1" } 2020-09-16 00:12:57 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-609f8224-e135-477a-9b92-679dd8fc1af1" } 2020-09-16 00:12:57 | [Mutex] received everything. 2020-09-16 00:12:57 | [Mutex] isItemNotified: retracted:item:notifieditem-609f8224-e135-477a-9b92-679dd8fc1af1:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.024s |
2020-09-16 00:12:57 |
2020-09-16 00:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:57 | ------------------------------------ 2020-09-16 00:12:57 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "item-id": "item-609f8224-e135-477a-9b92-679dd8fc1af1" } 2020-09-16 00:12:57 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "item-id": "item-609f8224-e135-477a-9b92-679dd8fc1af1", "item": [ "<item id=\"item-609f8224-e135-477a-9b92-679dd8fc1af1\"><test>item-609f8224-e135-477a-9b92-679dd8fc1af1</test></item>" ] } 2020-09-16 00:12:57 | [Mutex] notify: [retrieved:item:item-609f8224-e135-477a-9b92-679dd8fc1af1:payload-matches:true:localhost] 2020-09-16 00:12:57 | [Mutex] received everything. 2020-09-16 00:12:57 | [Mutex] isItemNotified: retrieved:item:item-609f8224-e135-477a-9b92-679dd8fc1af1:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.048s |
2020-09-16 00:12:57 |
2020-09-16 00:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:57 | ------------------------------------ 2020-09-16 00:12:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-16 00:12:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "test", "node-8f39cae5-b9b7-4345-b126-64637b82ae51" ] } |
retrieveUserSubscriptionsWithRegex | 0.056s |
2020-09-16 00:12:57 |
2020-09-16 00:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:57 | ------------------------------------ 2020-09-16 00:12:57 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-dae0ddcd-914c-493f-b52b-86fadee3fc07)" } 2020-09-16 00:12:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-16 00:12:55 |
2020-09-16 00:12:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:55 | ------------------------------------ 2020-09-16 00:12:55 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "jids": [ "admin@test-domain.com" ] } 2020-09-16 00:12:55 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.056s |
2020-09-16 00:12:57 |
2020-09-16 00:12:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-16 00:12:57 | ------------------------------------ 2020-09-16 00:12:57 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-dae0ddcd-914c-493f-b52b-86fadee3fc07", "jids": [ "admin@test-domain.com" ] } 2020-09-16 00:12:57 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |