Test duration: 9.165s
Passed Tests | ||
---|---|---|
tigase.tests.pubsub.TestRestApiUsingJSON | ||
configureNodes | 1.107s |
2019-11-27 20:34:22 |
2019-11-27 20:34:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:22 | ------------------------------------ 2019-11-27 20:34:22 | [Mutex] waiting for: [configured:node:node-d554201a-d48e-43d3-9325-8fc09eb84be2:node-79f55a92-5cca-4ad5-acda-e5bf29970d85] 2019-11-27 20:34:22 | [Mutex] received everything. 2019-11-27 20:34:22 | [Mutex] isItemNotified: configured:node:node-d554201a-d48e-43d3-9325-8fc09eb84be2:node-79f55a92-5cca-4ad5-acda-e5bf29970d85 :: true 2019-11-27 20:34:23 | [Mutex] waiting for: [received:nodes:b75927cc-65b9-472f-b300-01e953d4167d:localhost] 2019-11-27 20:34:23 | [Mutex] received everything. 2019-11-27 20:34:23 | [Mutex] isItemNotified: received:node:b75927cc-65b9-472f-b300-01e953d4167d:localhost:node-d554201a-d48e-43d3-9325-8fc09eb84be2:Node d554201a-d48e-43d3-9325-8fc09eb84be2 :: true 2019-11-27 20:34:23 | [Mutex] waiting for: [received:nodes:1048a9cf-ccea-40d5-9a60-bf30ee268a13:localhost] 2019-11-27 20:34:23 | [Mutex] received everything. 2019-11-27 20:34:23 | [Mutex] isItemNotified: received:node:1048a9cf-ccea-40d5-9a60-bf30ee268a13:localhost:node-d554201a-d48e-43d3-9325-8fc09eb84be2:Node d554201a-d48e-43d3-9325-8fc09eb84be2 :: false |
createNodes | 1.891s |
2019-11-27 20:34:19 |
2019-11-27 20:34:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:19 | ------------------------------------ 2019-11-27 20:34:20 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "leaf", "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "pubsub#title": "Node d554201a-d48e-43d3-9325-8fc09eb84be2" } 2019-11-27 20:34:20 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 20:34:21 | [Mutex] waiting for: [received:nodes:40d6148d-11f1-4e7b-b265-c41a0090f910:localhost] 2019-11-27 20:34:21 | [Mutex] received everything. 2019-11-27 20:34:21 | [Mutex] isItemNotified: received:node:40d6148d-11f1-4e7b-b265-c41a0090f910:localhost:node-d554201a-d48e-43d3-9325-8fc09eb84be2:Node d554201a-d48e-43d3-9325-8fc09eb84be2 :: true |
createSubnodes | 1.031s |
2019-11-27 20:34:21 |
2019-11-27 20:34:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:21 | ------------------------------------ 2019-11-27 20:34:21 | on localhost executing action create-node with content type application/json and payload: { "owner": "admin@localhost", "pubsub#node_type": "collection", "node": "node-79f55a92-5cca-4ad5-acda-e5bf29970d85", "pubsub#title": "Node 79f55a92-5cca-4ad5-acda-e5bf29970d85" } 2019-11-27 20:34:21 | from localhost for action create-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 20:34:22 | [Mutex] waiting for: [received:nodes:d44fdb0e-091d-4475-8e77-242b8f7b6149:localhost] 2019-11-27 20:34:22 | [Mutex] waiting for: [received:nodes:d44fdb0e-091d-4475-8e77-242b8f7b6149:localhost] 2019-11-27 20:34:22 | [Mutex] received everything. 2019-11-27 20:34:22 | [Mutex] isItemNotified: received:node:d44fdb0e-091d-4475-8e77-242b8f7b6149:localhost:node-79f55a92-5cca-4ad5-acda-e5bf29970d85:Node 79f55a92-5cca-4ad5-acda-e5bf29970d85 :: true |
deleteNodes | 1.029s |
2019-11-27 20:34:27 |
2019-11-27 20:34:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:27 | ------------------------------------ 2019-11-27 20:34:27 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-79f55a92-5cca-4ad5-acda-e5bf29970d85" } 2019-11-27 20:34:27 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 20:34:28 | [Mutex] waiting for: [received:nodes:e515034d-5028-43ab-8916-c1135670e362:localhost] 2019-11-27 20:34:28 | [Mutex] received everything. 2019-11-27 20:34:28 | [Mutex] isItemNotified: received:node:e515034d-5028-43ab-8916-c1135670e362:localhost:node-79f55a92-5cca-4ad5-acda-e5bf29970d85:Node 79f55a92-5cca-4ad5-acda-e5bf29970d85 :: false |
deleteSubnodes | 1.027s |
2019-11-27 20:34:26 |
2019-11-27 20:34:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:26 | ------------------------------------ 2019-11-27 20:34:26 | on localhost executing action delete-node with content type application/json and payload: { "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2" } 2019-11-27 20:34:26 | from localhost for action delete-node got result code 200 and payload { "Note": "Operation successful" } 2019-11-27 20:34:27 | [Mutex] waiting for: [received:nodes:4dd73eb0-378b-4d1d-9567-99c91ff356c4:localhost] 2019-11-27 20:34:27 | [Mutex] received everything. 2019-11-27 20:34:27 | [Mutex] isItemNotified: received:node:4dd73eb0-378b-4d1d-9567-99c91ff356c4:localhost:node-d554201a-d48e-43d3-9325-8fc09eb84be2:Node d554201a-d48e-43d3-9325-8fc09eb84be2 :: false 2019-11-27 20:34:27 | [Mutex] waiting for: [received:nodes:0a2046d7-2fe2-4846-b6a0-840a8deb7c5d:localhost] 2019-11-27 20:34:27 | [Mutex] received everything. 2019-11-27 20:34:27 | [Mutex] isItemNotified: received:node:0a2046d7-2fe2-4846-b6a0-840a8deb7c5d:localhost:node-d554201a-d48e-43d3-9325-8fc09eb84be2:Node d554201a-d48e-43d3-9325-8fc09eb84be2 :: false |
publishItemsToNodes | 0.034s |
2019-11-27 20:34:24 |
2019-11-27 20:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:24 | ------------------------------------ 2019-11-27 20:34:24 | on localhost executing action publish-item with content type application/json and payload: { "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "entry": "<test>item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d</test>", "item-id": "item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d" } 2019-11-27 20:34:24 | from localhost for action publish-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d" } 2019-11-27 20:34:24 | [Mutex] waiting for: [published:item:notifieditem-07c48fc4-9ea9-438c-a9d2-a266ac22e87d:admin@localhost] 2019-11-27 20:34:24 | [Mutex] received everything. 2019-11-27 20:34:24 | [Mutex] isItemNotified: published:item:notifieditem-07c48fc4-9ea9-438c-a9d2-a266ac22e87d:admin@localhost :: true |
retractItemsFromNodes | 0.055s |
2019-11-27 20:34:25 |
2019-11-27 20:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:25 | ------------------------------------ 2019-11-27 20:34:25 | on localhost executing action delete-item with content type application/json and payload: { "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "item-id": "item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d" } 2019-11-27 20:34:25 | from localhost for action delete-item got result code 200 and payload { "Note": "Operation successful", "item-id": "item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d" } 2019-11-27 20:34:25 | [Mutex] received everything. 2019-11-27 20:34:25 | [Mutex] isItemNotified: retracted:item:notifieditem-07c48fc4-9ea9-438c-a9d2-a266ac22e87d:admin@localhost :: true |
retrieveItemsFromNodes | 0.066s |
2019-11-27 20:34:24 |
2019-11-27 20:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:24 | ------------------------------------ 2019-11-27 20:34:24 | on localhost executing action retrieve-item with content type application/json and payload: { "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "item-id": "item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d" } 2019-11-27 20:34:24 | from localhost for action retrieve-item got result code 200 and payload { "title": "Retrive PubSub node item", "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "item-id": "item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d", "item": [ "<item id=\"item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d\"><test>item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d</test></item>" ] } 2019-11-27 20:34:24 | [Mutex] notify: [retrieved:item:item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d:payload-matches:true:localhost] 2019-11-27 20:34:24 | [Mutex] received everything. 2019-11-27 20:34:24 | [Mutex] isItemNotified: retrieved:item:item-07c48fc4-9ea9-438c-a9d2-a266ac22e87d:payload-matches:true:localhost :: true |
retrieveUserSubscriptions | 0.047s |
2019-11-27 20:34:24 |
2019-11-27 20:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:24 | ------------------------------------ 2019-11-27 20:34:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost" } 2019-11-27 20:34:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ "node-79f55a92-5cca-4ad5-acda-e5bf29970d85", "node-d554201a-d48e-43d3-9325-8fc09eb84be2" ] } |
retrieveUserSubscriptionsWithRegex | 0.051s |
2019-11-27 20:34:24 |
2019-11-27 20:34:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:24 | ------------------------------------ 2019-11-27 20:34:24 | on localhost executing action retrieve-user-subscriptions with content type application/json and payload: { "jid": "admin@localhost", "node-pattern": "(?!node-d554201a-d48e-43d3-9325-8fc09eb84be2)" } 2019-11-27 20:34:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload { "nodes": [ ] } |
subscribeNodes | 1.016s |
2019-11-27 20:34:23 |
2019-11-27 20:34:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:23 | ------------------------------------ 2019-11-27 20:34:23 | on localhost executing action subscribe-node with content type application/json and payload: { "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "jids": [ "admin@localhost" ] } 2019-11-27 20:34:23 | from localhost for action subscribe-node got result code 200 and payload { "Note": "Operation successful" } |
unsubscribeNodes | 1.063s |
2019-11-27 20:34:25 |
2019-11-27 20:34:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingJSON] 2019-11-27 20:34:25 | ------------------------------------ 2019-11-27 20:34:25 | on localhost executing action unsubscribe-node with content type application/json and payload: { "node": "node-d554201a-d48e-43d3-9325-8fc09eb84be2", "jids": [ "admin@localhost" ] } 2019-11-27 20:34:25 | from localhost for action unsubscribe-node got result code 200 and payload { "Note": "Operation successful" } |