Test duration : 9.004s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.115s |
2020-08-28 22:51:09 |
2020-08-28 22:51:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:09 | ------------------------------------ 2020-08-28 22:51:09 | [Mutex] waiting for: [configured:node:node-628c8136-09a8-44f9-8171-3e5d831ff920:node-2df57069-3940-4173-bfdb-715a422d2a4d] 2020-08-28 22:51:10 | [Mutex] received everything. 2020-08-28 22:51:10 | [Mutex] isItemNotified: configured:node:node-628c8136-09a8-44f9-8171-3e5d831ff920:node-2df57069-3940-4173-bfdb-715a422d2a4d :: true 2020-08-28 22:51:11 | [Mutex] waiting for: [received:nodes:b1c93ace-0013-4b4d-a7dd-a95f55e7bb85:localhost] 2020-08-28 22:51:11 | [Mutex] received everything. 2020-08-28 22:51:11 | [Mutex] isItemNotified: received:node:b1c93ace-0013-4b4d-a7dd-a95f55e7bb85:localhost:node-628c8136-09a8-44f9-8171-3e5d831ff920:Node 628c8136-09a8-44f9-8171-3e5d831ff920 :: true 2020-08-28 22:51:11 | [Mutex] waiting for: [received:nodes:9e30f45a-ce5e-4919-9348-d144ea9c6960:localhost] 2020-08-28 22:51:11 | [Mutex] received everything. 2020-08-28 22:51:11 | [Mutex] isItemNotified: received:node:9e30f45a-ce5e-4919-9348-d144ea9c6960:localhost:node-628c8136-09a8-44f9-8171-3e5d831ff920:Node 628c8136-09a8-44f9-8171-3e5d831ff920 :: false |
createNodes | 1.618s |
2020-08-28 22:51:07 |
2020-08-28 22:51:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:07 | ------------------------------------ 2020-08-28 22:51:07 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "leaf", "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "pubsub#title": "Node 628c8136-09a8-44f9-8171-3e5d831ff920" } 2020-08-28 22:51:07 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 22:51:08 | [Mutex] waiting for: [received:nodes:244b0d3a-69d2-4bf0-98f5-e3612a82fbf6:localhost] 2020-08-28 22:51:08 | [Mutex] received everything. 2020-08-28 22:51:08 | [Mutex] isItemNotified: received:node:244b0d3a-69d2-4bf0-98f5-e3612a82fbf6:localhost:node-628c8136-09a8-44f9-8171-3e5d831ff920:Node 628c8136-09a8-44f9-8171-3e5d831ff920 :: true |
createSubnodes | 1.023s |
2020-08-28 22:51:08 |
2020-08-28 22:51:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:08 | ------------------------------------ 2020-08-28 22:51:08 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@test-domain.com", "pubsub#node_type": "collection", "node": "node-2df57069-3940-4173-bfdb-715a422d2a4d", "pubsub#title": "Node 2df57069-3940-4173-bfdb-715a422d2a4d" } 2020-08-28 22:51:08 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 22:51:09 | [Mutex] waiting for: [received:nodes:a6220fb1-1f07-4cb4-b91d-33f244a57103:localhost] 2020-08-28 22:51:09 | [Mutex] waiting for: [received:nodes:a6220fb1-1f07-4cb4-b91d-33f244a57103:localhost] 2020-08-28 22:51:09 | [Mutex] received everything. 2020-08-28 22:51:09 | [Mutex] isItemNotified: received:node:a6220fb1-1f07-4cb4-b91d-33f244a57103:localhost:node-2df57069-3940-4173-bfdb-715a422d2a4d:Node 2df57069-3940-4173-bfdb-715a422d2a4d :: true |
deleteNodes | 1.026s |
2020-08-28 22:51:14 |
2020-08-28 22:51:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:14 | ------------------------------------ 2020-08-28 22:51:14 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-2df57069-3940-4173-bfdb-715a422d2a4d" } 2020-08-28 22:51:14 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 22:51:15 | [Mutex] waiting for: [received:nodes:7deed2b9-23eb-4441-a542-d5ec1e1bdc9d:localhost] 2020-08-28 22:51:15 | [Mutex] received everything. 2020-08-28 22:51:15 | [Mutex] isItemNotified: received:node:7deed2b9-23eb-4441-a542-d5ec1e1bdc9d:localhost:node-2df57069-3940-4173-bfdb-715a422d2a4d:Node 2df57069-3940-4173-bfdb-715a422d2a4d :: false |
deleteSubnodes | 1.036s |
2020-08-28 22:51:13 |
2020-08-28 22:51:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:13 | ------------------------------------ 2020-08-28 22:51:13 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920" } 2020-08-28 22:51:13 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2020-08-28 22:51:14 | [Mutex] waiting for: [received:nodes:73b71d07-36fe-4615-a65c-b14a6cbfdf10:localhost] 2020-08-28 22:51:14 | [Mutex] received everything. 2020-08-28 22:51:14 | [Mutex] isItemNotified: received:node:73b71d07-36fe-4615-a65c-b14a6cbfdf10:localhost:node-628c8136-09a8-44f9-8171-3e5d831ff920:Node 628c8136-09a8-44f9-8171-3e5d831ff920 :: false 2020-08-28 22:51:14 | [Mutex] waiting for: [received:nodes:a42468bf-fcf8-47e1-b17a-71d75eb46f53:localhost] 2020-08-28 22:51:14 | [Mutex] received everything. 2020-08-28 22:51:14 | [Mutex] isItemNotified: received:node:a42468bf-fcf8-47e1-b17a-71d75eb46f53:localhost:node-628c8136-09a8-44f9-8171-3e5d831ff920:Node 628c8136-09a8-44f9-8171-3e5d831ff920 :: false |
publishItemsToNodes | 0.069s |
2020-08-28 22:51:12 |
2020-08-28 22:51:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:12 | ------------------------------------ 2020-08-28 22:51:12 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "entry": "<test>item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64</test>", "item-id": "item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64" } 2020-08-28 22:51:12 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64" } 2020-08-28 22:51:12 | [Mutex] received everything. 2020-08-28 22:51:12 | [Mutex] isItemNotified: published:item:notifieditem-3c810b85-0af9-427b-aa1e-cee9c3ba8c64:admin@test-domain.com :: true |
retractItemsFromNodes | 0.091s |
2020-08-28 22:51:12 |
2020-08-28 22:51:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:12 | ------------------------------------ 2020-08-28 22:51:12 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "item-id": "item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64" } 2020-08-28 22:51:12 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64" } 2020-08-28 22:51:12 | [Mutex] waiting for: [retracted:item:notifieditem-3c810b85-0af9-427b-aa1e-cee9c3ba8c64:admin@test-domain.com] 2020-08-28 22:51:12 | [Mutex] received everything. 2020-08-28 22:51:12 | [Mutex] isItemNotified: retracted:item:notifieditem-3c810b85-0af9-427b-aa1e-cee9c3ba8c64:admin@test-domain.com :: true |
retrieveItemsFromNodes | 0.061s |
2020-08-28 22:51:12 |
2020-08-28 22:51:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:12 | ------------------------------------ 2020-08-28 22:51:12 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "item-id": "item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64" } 2020-08-28 22:51:12 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "item-id": "item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64", "item": [ "<item id=\"item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64\"><test>item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64</test></item>" ] } 2020-08-28 22:51:12 | [Mutex] notify: [retrieved:item:item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64:payload-matches:true:localhost] 2020-08-28 22:51:12 | [Mutex] received everything. 2020-08-28 22:51:12 | [Mutex] isItemNotified: retrieved:item:item-3c810b85-0af9-427b-aa1e-cee9c3ba8c64:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.051s |
2020-08-28 22:51:12 |
2020-08-28 22:51:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:12 | ------------------------------------ 2020-08-28 22:51:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com" } 2020-08-28 22:51:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "test", "node-628c8136-09a8-44f9-8171-3e5d831ff920", "node-2df57069-3940-4173-bfdb-715a422d2a4d" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2020-08-28 22:51:12 |
2020-08-28 22:51:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:12 | ------------------------------------ 2020-08-28 22:51:12 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@test-domain.com", "node-pattern": "(?!node-628c8136-09a8-44f9-8171-3e5d831ff920)" } 2020-08-28 22:51:12 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.020s |
2020-08-28 22:51:11 |
2020-08-28 22:51:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:11 | ------------------------------------ 2020-08-28 22:51:11 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "jids": [ "admin@test-domain.com" ] } 2020-08-28 22:51:11 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.059s |
2020-08-28 22:51:12 |
2020-08-28 22:51:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2020-08-28 22:51:12 | ------------------------------------ 2020-08-28 22:51:12 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-628c8136-09a8-44f9-8171-3e5d831ff920", "jids": [ "admin@test-domain.com" ] } 2020-08-28 22:51:12 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |