Test duration: 8.857s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.103s |
2019-11-20 19:03:15 |
2019-11-20 19:03:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:15 | ------------------------------------ 2019-11-20 19:03:15 | [Mutex] waiting for: [configured:node:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:node-11b6aeda-8967-48f1-9290-ef76a2bcb3be] 2019-11-20 19:03:15 | [Mutex] received everything. 2019-11-20 19:03:15 | [Mutex] isItemNotified: configured:node:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:node-11b6aeda-8967-48f1-9290-ef76a2bcb3be :: true 2019-11-20 19:03:16 | [Mutex] waiting for: [received:nodes:1c0d1c9a-6ea4-423d-8a82-d3437b0a4bc7:localhost] 2019-11-20 19:03:16 | [Mutex] received everything. 2019-11-20 19:03:16 | [Mutex] isItemNotified: received:node:1c0d1c9a-6ea4-423d-8a82-d3437b0a4bc7:localhost:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:Node 0c414ffc-ce70-407a-9986-ca619f0f1c20 :: true 2019-11-20 19:03:16 | [Mutex] waiting for: [received:nodes:18d18cb5-ae6c-4f5d-b7db-d6c5bc501555:localhost] 2019-11-20 19:03:16 | [Mutex] received everything. 2019-11-20 19:03:16 | [Mutex] isItemNotified: received:node:18d18cb5-ae6c-4f5d-b7db-d6c5bc501555:localhost:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:Node 0c414ffc-ce70-407a-9986-ca619f0f1c20 :: false |
createNodes | 1.671s |
2019-11-20 19:03:12 |
2019-11-20 19:03:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:12 | ------------------------------------ 2019-11-20 19:03:13 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "pubsub#title": "Node 0c414ffc-ce70-407a-9986-ca619f0f1c20" } 2019-11-20 19:03:13 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 19:03:14 | [Mutex] waiting for: [received:nodes:976a7929-b817-4233-81ef-4716609b2897:localhost] 2019-11-20 19:03:14 | [Mutex] received everything. 2019-11-20 19:03:14 | [Mutex] isItemNotified: received:node:976a7929-b817-4233-81ef-4716609b2897:localhost:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:Node 0c414ffc-ce70-407a-9986-ca619f0f1c20 :: true |
createSubnodes | 1.027s |
2019-11-20 19:03:14 |
2019-11-20 19:03:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:14 | ------------------------------------ 2019-11-20 19:03:14 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-11b6aeda-8967-48f1-9290-ef76a2bcb3be", "pubsub#title": "Node 11b6aeda-8967-48f1-9290-ef76a2bcb3be" } 2019-11-20 19:03:14 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 19:03:15 | [Mutex] waiting for: [received:nodes:9b0d748f-8801-44d3-88e3-94502d45d268:localhost] 2019-11-20 19:03:15 | [Mutex] waiting for: [received:nodes:9b0d748f-8801-44d3-88e3-94502d45d268:localhost] 2019-11-20 19:03:15 | [Mutex] received everything. 2019-11-20 19:03:15 | [Mutex] isItemNotified: received:node:9b0d748f-8801-44d3-88e3-94502d45d268:localhost:node-11b6aeda-8967-48f1-9290-ef76a2bcb3be:Node 11b6aeda-8967-48f1-9290-ef76a2bcb3be :: true |
deleteNodes | 1.025s |
2019-11-20 19:03:20 |
2019-11-20 19:03:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:20 | ------------------------------------ 2019-11-20 19:03:20 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-11b6aeda-8967-48f1-9290-ef76a2bcb3be" } 2019-11-20 19:03:20 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 19:03:21 | [Mutex] waiting for: [received:nodes:72e37971-65e5-4bf1-a4b4-6892d8c64a21:localhost] 2019-11-20 19:03:21 | [Mutex] received everything. 2019-11-20 19:03:21 | [Mutex] isItemNotified: received:node:72e37971-65e5-4bf1-a4b4-6892d8c64a21:localhost:node-11b6aeda-8967-48f1-9290-ef76a2bcb3be:Node 11b6aeda-8967-48f1-9290-ef76a2bcb3be :: false |
deleteSubnodes | 1.032s |
2019-11-20 19:03:19 |
2019-11-20 19:03:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:19 | ------------------------------------ 2019-11-20 19:03:19 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20" } 2019-11-20 19:03:19 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-20 19:03:20 | [Mutex] waiting for: [received:nodes:df923cc5-2325-4493-9d5b-e4e6ce175eb7:localhost] 2019-11-20 19:03:20 | [Mutex] received everything. 2019-11-20 19:03:20 | [Mutex] isItemNotified: received:node:df923cc5-2325-4493-9d5b-e4e6ce175eb7:localhost:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:Node 0c414ffc-ce70-407a-9986-ca619f0f1c20 :: false 2019-11-20 19:03:20 | [Mutex] waiting for: [received:nodes:f7eacdbb-1590-4f7c-9da6-669a5d3f6595:localhost] 2019-11-20 19:03:20 | [Mutex] received everything. 2019-11-20 19:03:20 | [Mutex] isItemNotified: received:node:f7eacdbb-1590-4f7c-9da6-669a5d3f6595:localhost:node-0c414ffc-ce70-407a-9986-ca619f0f1c20:Node 0c414ffc-ce70-407a-9986-ca619f0f1c20 :: false |
publishItemsToNodes | 0.049s |
2019-11-20 19:03:17 |
2019-11-20 19:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:17 | ------------------------------------ 2019-11-20 19:03:17 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "entry": "<test>item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b</test>", "item-id": "item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b" } 2019-11-20 19:03:17 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b" } 2019-11-20 19:03:17 | [Mutex] waiting for: [published:item:notifieditem-fdadc720-a89d-47d3-85a6-9bba52cb3d3b:admin@localhost] 2019-11-20 19:03:17 | [Mutex] received everything. 2019-11-20 19:03:17 | [Mutex] isItemNotified: published:item:notifieditem-fdadc720-a89d-47d3-85a6-9bba52cb3d3b:admin@localhost :: true |
retractItemsFromNodes | 0.052s |
2019-11-20 19:03:17 |
2019-11-20 19:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:17 | ------------------------------------ 2019-11-20 19:03:17 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "item-id": "item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b" } 2019-11-20 19:03:18 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b" } 2019-11-20 19:03:18 | [Mutex] received everything. 2019-11-20 19:03:18 | [Mutex] isItemNotified: retracted:item:notifieditem-fdadc720-a89d-47d3-85a6-9bba52cb3d3b:admin@localhost :: true |
retrieveItemsFromNodes | 0.026s |
2019-11-20 19:03:17 |
2019-11-20 19:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:17 | ------------------------------------ 2019-11-20 19:03:17 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "item-id": "item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b" } 2019-11-20 19:03:17 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "item-id": "item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b", "item": [ "<item id=\"item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b\"><test>item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b</test></item>" ] } 2019-11-20 19:03:17 | [Mutex] notify: [retrieved:item:item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b:payload-matches:true:localhost] 2019-11-20 19:03:17 | [Mutex] received everything. 2019-11-20 19:03:17 | [Mutex] isItemNotified: retrieved:item:item-fdadc720-a89d-47d3-85a6-9bba52cb3d3b:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.059s |
2019-11-20 19:03:17 |
2019-11-20 19:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:17 | ------------------------------------ 2019-11-20 19:03:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-20 19:03:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-11b6aeda-8967-48f1-9290-ef76a2bcb3be", "node-0c414ffc-ce70-407a-9986-ca619f0f1c20" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-20 19:03:17 |
2019-11-20 19:03:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:17 | ------------------------------------ 2019-11-20 19:03:17 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-0c414ffc-ce70-407a-9986-ca619f0f1c20)" } 2019-11-20 19:03:17 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.011s |
2019-11-20 19:03:16 |
2019-11-20 19:03:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:16 | ------------------------------------ 2019-11-20 19:03:16 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "jids": [ "admin@localhost" ] } 2019-11-20 19:03:16 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.072s |
2019-11-20 19:03:18 |
2019-11-20 19:03:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-20 19:03:18 | ------------------------------------ 2019-11-20 19:03:18 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-0c414ffc-ce70-407a-9986-ca619f0f1c20", "jids": [ "admin@localhost" ] } 2019-11-20 19:03:18 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |