Test duration : 8.803s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.088s |
2021-02-06 21:35:56 |
2021-02-06 21:35:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:56 | ------------------------------------ 2021-02-06 21:35:56 | [Mutex] waiting for: [configured:node:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:node-d32fee7f-47ca-4bc8-8271-ea472267af87] 2021-02-06 21:35:56 | [Mutex] received everything. 2021-02-06 21:35:56 | [Mutex] isItemNotified: configured:node:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:node-d32fee7f-47ca-4bc8-8271-ea472267af87 :: true 2021-02-06 21:35:57 | [Mutex] waiting for: [received:nodes:eb8569b2-52e4-4d4a-b9df-b50f5a0aa3d0:localhost] 2021-02-06 21:35:57 | [Mutex] received everything. 2021-02-06 21:35:57 | [Mutex] isItemNotified: received:node:eb8569b2-52e4-4d4a-b9df-b50f5a0aa3d0:localhost:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:Node ccfc090e-f9b5-4584-b72d-74178ca415ef :: true 2021-02-06 21:35:57 | [Mutex] waiting for: [received:nodes:025e127d-769e-41f8-9452-0d0c766470d5:localhost] 2021-02-06 21:35:57 | [Mutex] received everything. 2021-02-06 21:35:57 | [Mutex] isItemNotified: received:node:025e127d-769e-41f8-9452-0d0c766470d5:localhost:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:Node ccfc090e-f9b5-4584-b72d-74178ca415ef :: false |
createNodes | 1.482s |
2021-02-06 21:35:54 |
2021-02-06 21:35:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:54 | ------------------------------------ 2021-02-06 21:35:54 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "pubsub#title": "Node ccfc090e-f9b5-4584-b72d-74178ca415ef" } 2021-02-06 21:35:54 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 21:35:55 | [Mutex] waiting for: [received:nodes:169835dc-fbcb-4ce9-83e6-5d75c44ed3af:localhost] 2021-02-06 21:35:55 | [Mutex] received everything. 2021-02-06 21:35:55 | [Mutex] isItemNotified: received:node:169835dc-fbcb-4ce9-83e6-5d75c44ed3af:localhost:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:Node ccfc090e-f9b5-4584-b72d-74178ca415ef :: true |
createSubnodes | 1.031s |
2021-02-06 21:35:55 |
2021-02-06 21:35:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:55 | ------------------------------------ 2021-02-06 21:35:55 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-d32fee7f-47ca-4bc8-8271-ea472267af87", "pubsub#title": "Node d32fee7f-47ca-4bc8-8271-ea472267af87" } 2021-02-06 21:35:55 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 21:35:56 | [Mutex] waiting for: [received:nodes:57e7db8b-9661-4888-b293-ece50f0426be:localhost] 2021-02-06 21:35:56 | [Mutex] received everything. 2021-02-06 21:35:56 | [Mutex] isItemNotified: received:node:57e7db8b-9661-4888-b293-ece50f0426be:localhost:node-d32fee7f-47ca-4bc8-8271-ea472267af87:Node d32fee7f-47ca-4bc8-8271-ea472267af87 :: true |
deleteNodes | 1.024s |
2021-02-06 21:36:01 |
2021-02-06 21:36:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:36:01 | ------------------------------------ 2021-02-06 21:36:01 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d32fee7f-47ca-4bc8-8271-ea472267af87" } 2021-02-06 21:36:01 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 21:36:02 | [Mutex] waiting for: [received:nodes:0bdbc6cb-4036-4bfa-9c9a-74f138dcd8c8:localhost] 2021-02-06 21:36:02 | [Mutex] received everything. 2021-02-06 21:36:02 | [Mutex] isItemNotified: received:node:0bdbc6cb-4036-4bfa-9c9a-74f138dcd8c8:localhost:node-d32fee7f-47ca-4bc8-8271-ea472267af87:Node d32fee7f-47ca-4bc8-8271-ea472267af87 :: false |
deleteSubnodes | 1.030s |
2021-02-06 21:36:00 |
2021-02-06 21:36:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:36:00 | ------------------------------------ 2021-02-06 21:36:00 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef" } 2021-02-06 21:36:00 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2021-02-06 21:36:01 | [Mutex] waiting for: [received:nodes:4c96ccc9-1c51-4e3c-b0c6-de2b560d0b52:localhost] 2021-02-06 21:36:01 | [Mutex] received everything. 2021-02-06 21:36:01 | [Mutex] isItemNotified: received:node:4c96ccc9-1c51-4e3c-b0c6-de2b560d0b52:localhost:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:Node ccfc090e-f9b5-4584-b72d-74178ca415ef :: false 2021-02-06 21:36:01 | [Mutex] waiting for: [received:nodes:adb81a5e-560e-449f-a16c-d6b70c3cd6a5:localhost] 2021-02-06 21:36:01 | [Mutex] received everything. 2021-02-06 21:36:01 | [Mutex] isItemNotified: received:node:adb81a5e-560e-449f-a16c-d6b70c3cd6a5:localhost:node-ccfc090e-f9b5-4584-b72d-74178ca415ef:Node ccfc090e-f9b5-4584-b72d-74178ca415ef :: false |
publishItemsToNodes | 0.031s |
2021-02-06 21:35:58 |
2021-02-06 21:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:58 | ------------------------------------ 2021-02-06 21:35:58 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "entry": "<test>item-b34c5342-75c6-4354-9010-7d3e2262e061</test>", "item-id": "item-b34c5342-75c6-4354-9010-7d3e2262e061" } 2021-02-06 21:35:58 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b34c5342-75c6-4354-9010-7d3e2262e061" } 2021-02-06 21:35:58 | [Mutex] waiting for: [published:item:notifieditem-b34c5342-75c6-4354-9010-7d3e2262e061:admin@test-domain.com] 2021-02-06 21:35:58 | [Mutex] received everything. 2021-02-06 21:35:58 | [Mutex] isItemNotified: published:item:notifieditem-b34c5342-75c6-4354-9010-7d3e2262e061:admin@test-domain.com :: true |
retractItemsFromNodes | 0.067s |
2021-02-06 21:35:59 |
2021-02-06 21:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:59 | ------------------------------------ 2021-02-06 21:35:59 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "item-id": "item-b34c5342-75c6-4354-9010-7d3e2262e061" } 2021-02-06 21:35:59 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-b34c5342-75c6-4354-9010-7d3e2262e061" } 2021-02-06 21:35:59 | [Mutex] received everything. 2021-02-06 21:35:59 | [Mutex] isItemNotified: retracted:item:notifieditem-b34c5342-75c6-4354-9010-7d3e2262e061:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.071s |
2021-02-06 21:35:58 |
2021-02-06 21:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:58 | ------------------------------------ 2021-02-06 21:35:58 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "item-id": "item-b34c5342-75c6-4354-9010-7d3e2262e061" } 2021-02-06 21:35:58 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "item-id": "item-b34c5342-75c6-4354-9010-7d3e2262e061", "item": [ "<item id=\"item-b34c5342-75c6-4354-9010-7d3e2262e061\"><test>item-b34c5342-75c6-4354-9010-7d3e2262e061</test></item>" ] } 2021-02-06 21:35:58 | [Mutex] notify: [retrieved:item:item-b34c5342-75c6-4354-9010-7d3e2262e061:payload-matches:true:localhost] 2021-02-06 21:35:58 | [Mutex] received everything. 2021-02-06 21:35:58 | [Mutex] isItemNotified: retrieved:item:item-b34c5342-75c6-4354-9010-7d3e2262e061:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.063s |
2021-02-06 21:35:58 |
2021-02-06 21:35:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:58 | ------------------------------------ 2021-02-06 21:35:58 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2021-02-06 21:35:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-d32fee7f-47ca-4bc8-8271-ea472267af87", "node-ccfc090e-f9b5-4584-b72d-74178ca415ef" ] } |
retrieveUserSubscriptionsWithRegex | 0.072s |
2021-02-06 21:35:59 |
2021-02-06 21:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:59 | ------------------------------------ 2021-02-06 21:35:59 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-ccfc090e-f9b5-4584-b72d-74178ca415ef)" } 2021-02-06 21:35:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.015s |
2021-02-06 21:35:57 |
2021-02-06 21:35:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:57 | ------------------------------------ 2021-02-06 21:35:57 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "jids": [ "admin@test-domain.com" ] } 2021-02-06 21:35:57 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.080s |
2021-02-06 21:35:59 |
2021-02-06 21:35:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2021-02-06 21:35:59 | ------------------------------------ 2021-02-06 21:35:59 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-ccfc090e-f9b5-4584-b72d-74178ca415ef", "jids": [ "admin@test-domain.com" ] } 2021-02-06 21:35:59 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |