Test duration : 8.864s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.075s |
2020-09-11 22:29:20 |
2020-09-11 22:29:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:20 | ------------------------------------ 2020-09-11 22:29:20 | [Mutex] waiting for: [configured:node:node-f5f0ed62-af50-4480-b7ae-26d699171520:node-0afcd0de-9e17-4519-ae73-5cef19b9cae4] 2020-09-11 22:29:20 | [Mutex] received everything. 2020-09-11 22:29:20 | [Mutex] isItemNotified: configured:node:node-f5f0ed62-af50-4480-b7ae-26d699171520:node-0afcd0de-9e17-4519-ae73-5cef19b9cae4 :: true 2020-09-11 22:29:21 | [Mutex] waiting for: [received:nodes:4836b4bf-cd1f-4132-8f53-2d31cb2fb228:localhost] 2020-09-11 22:29:21 | [Mutex] received everything. 2020-09-11 22:29:21 | [Mutex] isItemNotified: received:node:4836b4bf-cd1f-4132-8f53-2d31cb2fb228:localhost:node-f5f0ed62-af50-4480-b7ae-26d699171520:Node f5f0ed62-af50-4480-b7ae-26d699171520 :: true 2020-09-11 22:29:21 | [Mutex] waiting for: [received:nodes:07bea962-6993-432f-8951-e6fc22f64109:localhost] 2020-09-11 22:29:21 | [Mutex] received everything. 2020-09-11 22:29:21 | [Mutex] isItemNotified: received:node:07bea962-6993-432f-8951-e6fc22f64109:localhost:node-f5f0ed62-af50-4480-b7ae-26d699171520:Node f5f0ed62-af50-4480-b7ae-26d699171520 :: false |
createNodes | 1.573s |
2020-09-11 22:29:17 |
2020-09-11 22:29:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:17 | ------------------------------------ 2020-09-11 22:29:18 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "pubsub#title": "Node f5f0ed62-af50-4480-b7ae-26d699171520" } 2020-09-11 22:29:18 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:29:19 | [Mutex] waiting for: [received:nodes:c0e59fda-4148-47e1-a8d3-51766f09e2ed:localhost] 2020-09-11 22:29:19 | [Mutex] waiting for: [received:nodes:c0e59fda-4148-47e1-a8d3-51766f09e2ed:localhost] 2020-09-11 22:29:19 | [Mutex] waiting for: [received:nodes:c0e59fda-4148-47e1-a8d3-51766f09e2ed:localhost] 2020-09-11 22:29:19 | [Mutex] waiting for: [received:nodes:c0e59fda-4148-47e1-a8d3-51766f09e2ed:localhost] 2020-09-11 22:29:19 | [Mutex] received everything. 2020-09-11 22:29:19 | [Mutex] isItemNotified: received:node:c0e59fda-4148-47e1-a8d3-51766f09e2ed:localhost:node-f5f0ed62-af50-4480-b7ae-26d699171520:Node f5f0ed62-af50-4480-b7ae-26d699171520 :: true |
createSubnodes | 1.028s |
2020-09-11 22:29:19 |
2020-09-11 22:29:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:19 | ------------------------------------ 2020-09-11 22:29:19 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-0afcd0de-9e17-4519-ae73-5cef19b9cae4", "pubsub#title": "Node 0afcd0de-9e17-4519-ae73-5cef19b9cae4" } 2020-09-11 22:29:19 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:29:20 | [Mutex] waiting for: [received:nodes:7acdb671-e406-4cd4-b4e5-e568c22ac15f:localhost] 2020-09-11 22:29:20 | [Mutex] received everything. 2020-09-11 22:29:20 | [Mutex] isItemNotified: received:node:7acdb671-e406-4cd4-b4e5-e568c22ac15f:localhost:node-0afcd0de-9e17-4519-ae73-5cef19b9cae4:Node 0afcd0de-9e17-4519-ae73-5cef19b9cae4 :: true |
deleteNodes | 1.021s |
2020-09-11 22:29:24 |
2020-09-11 22:29:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:24 | ------------------------------------ 2020-09-11 22:29:24 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0afcd0de-9e17-4519-ae73-5cef19b9cae4" } 2020-09-11 22:29:24 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:29:25 | [Mutex] waiting for: [received:nodes:ac56098f-f23b-4ef5-a13d-cb19662c6397:localhost] 2020-09-11 22:29:25 | [Mutex] received everything. 2020-09-11 22:29:25 | [Mutex] isItemNotified: received:node:ac56098f-f23b-4ef5-a13d-cb19662c6397:localhost:node-0afcd0de-9e17-4519-ae73-5cef19b9cae4:Node 0afcd0de-9e17-4519-ae73-5cef19b9cae4 :: false |
deleteSubnodes | 1.022s |
2020-09-11 22:29:23 |
2020-09-11 22:29:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:23 | ------------------------------------ 2020-09-11 22:29:23 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520" } 2020-09-11 22:29:23 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-09-11 22:29:24 | [Mutex] waiting for: [received:nodes:f1c520ac-1d4f-4d50-a8c9-e0cea665578e:localhost] 2020-09-11 22:29:24 | [Mutex] waiting for: [received:nodes:f1c520ac-1d4f-4d50-a8c9-e0cea665578e:localhost] 2020-09-11 22:29:24 | [Mutex] received everything. 2020-09-11 22:29:24 | [Mutex] isItemNotified: received:node:f1c520ac-1d4f-4d50-a8c9-e0cea665578e:localhost:node-f5f0ed62-af50-4480-b7ae-26d699171520:Node f5f0ed62-af50-4480-b7ae-26d699171520 :: false 2020-09-11 22:29:24 | [Mutex] waiting for: [received:nodes:c75df115-d196-49ca-a77b-9d9cf7a782df:localhost] 2020-09-11 22:29:24 | [Mutex] received everything. 2020-09-11 22:29:24 | [Mutex] isItemNotified: received:node:c75df115-d196-49ca-a77b-9d9cf7a782df:localhost:node-f5f0ed62-af50-4480-b7ae-26d699171520:Node f5f0ed62-af50-4480-b7ae-26d699171520 :: false |
publishItemsToNodes | 0.043s |
2020-09-11 22:29:22 |
2020-09-11 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:22 | ------------------------------------ 2020-09-11 22:29:22 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "entry": "<test>item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852</test>", "item-id": "item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852" } 2020-09-11 22:29:22 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852" } 2020-09-11 22:29:22 | [Mutex] waiting for: [published:item:notifieditem-bb6ba5fe-ba5f-4c74-acab-8b630bf16852:admin@test-domain.com] 2020-09-11 22:29:22 | [Mutex] received everything. 2020-09-11 22:29:22 | [Mutex] isItemNotified: published:item:notifieditem-bb6ba5fe-ba5f-4c74-acab-8b630bf16852:admin@test-domain.com :: true |
retractItemsFromNodes | 0.059s |
2020-09-11 22:29:22 |
2020-09-11 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:22 | ------------------------------------ 2020-09-11 22:29:22 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "item-id": "item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852" } 2020-09-11 22:29:22 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852" } 2020-09-11 22:29:22 | [Mutex] received everything. 2020-09-11 22:29:22 | [Mutex] isItemNotified: retracted:item:notifieditem-bb6ba5fe-ba5f-4c74-acab-8b630bf16852:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.100s |
2020-09-11 22:29:22 |
2020-09-11 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:22 | ------------------------------------ 2020-09-11 22:29:22 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "item-id": "item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852" } 2020-09-11 22:29:22 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "item-id": "item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852", "item": [ "<item id=\"item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852\"><test>item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852</test></item>" ] } 2020-09-11 22:29:22 | [Mutex] notify: [retrieved:item:item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852:payload-matches:true:localhost] 2020-09-11 22:29:22 | [Mutex] received everything. 2020-09-11 22:29:22 | [Mutex] isItemNotified: retrieved:item:item-bb6ba5fe-ba5f-4c74-acab-8b630bf16852:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.050s |
2020-09-11 22:29:22 |
2020-09-11 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:22 | ------------------------------------ 2020-09-11 22:29:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-09-11 22:29:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-0afcd0de-9e17-4519-ae73-5cef19b9cae4", "test", "node-f5f0ed62-af50-4480-b7ae-26d699171520" ] } |
retrieveUserSubscriptionsWithRegex | 0.047s |
2020-09-11 22:29:22 |
2020-09-11 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:22 | ------------------------------------ 2020-09-11 22:29:22 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-f5f0ed62-af50-4480-b7ae-26d699171520)" } 2020-09-11 22:29:22 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.010s |
2020-09-11 22:29:21 |
2020-09-11 22:29:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:21 | ------------------------------------ 2020-09-11 22:29:21 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "jids": [ "admin@test-domain.com" ] } 2020-09-11 22:29:21 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.087s |
2020-09-11 22:29:22 |
2020-09-11 22:29:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-09-11 22:29:22 | ------------------------------------ 2020-09-11 22:29:22 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-f5f0ed62-af50-4480-b7ae-26d699171520", "jids": [ "admin@test-domain.com" ] } 2020-09-11 22:29:22 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |