REST: Node and item manipulation using REST API - XML - #4229, #4728

Test duration: 10.674s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.098s
2019-11-24 19:11:51 |

2019-11-24 19:11:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:51 | ------------------------------------

2019-11-24 19:11:51 | [Mutex] waiting for: [configured:node:node-eea15060-f7f4-438a-b218-3c7e56887a56:node-6f09a138-47a8-4e29-9266-44dccc562135]

2019-11-24 19:11:51 | [Mutex] received everything.

2019-11-24 19:11:51 | [Mutex] isItemNotified: configured:node:node-eea15060-f7f4-438a-b218-3c7e56887a56:node-6f09a138-47a8-4e29-9266-44dccc562135 :: true

2019-11-24 19:11:52 | [Mutex] waiting for: [received:nodes:90b9933f-5a9c-4344-a079-84ffd306e8e3:localhost]

2019-11-24 19:11:52 | [Mutex] received everything.

2019-11-24 19:11:52 | [Mutex] isItemNotified: received:node:90b9933f-5a9c-4344-a079-84ffd306e8e3:localhost:node-eea15060-f7f4-438a-b218-3c7e56887a56:Node eea15060-f7f4-438a-b218-3c7e56887a56 :: true

2019-11-24 19:11:52 | [Mutex] waiting for: [received:nodes:10384f09-0113-478e-a015-ba893503bf3a:localhost]

2019-11-24 19:11:52 | [Mutex] received everything.

2019-11-24 19:11:52 | [Mutex] isItemNotified: received:node:10384f09-0113-478e-a015-ba893503bf3a:localhost:node-eea15060-f7f4-438a-b218-3c7e56887a56:Node eea15060-f7f4-438a-b218-3c7e56887a56 :: false

createNodes 1.666s
2019-11-24 19:11:48 |

2019-11-24 19:11:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:48 | ------------------------------------

2019-11-24 19:11:48 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node eea15060-f7f4-438a-b218-3c7e56887a56</title></pubsub></data>

2019-11-24 19:11:49 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-24 19:11:50 | [Mutex] waiting for: [received:nodes:ce4e6a09-8bd3-4a57-ac97-9b6a4ba58c4c:localhost]

2019-11-24 19:11:50 | [Mutex] received everything.

2019-11-24 19:11:50 | [Mutex] isItemNotified: received:node:ce4e6a09-8bd3-4a57-ac97-9b6a4ba58c4c:localhost:node-eea15060-f7f4-438a-b218-3c7e56887a56:Node eea15060-f7f4-438a-b218-3c7e56887a56 :: true

createSubnodes 1.023s
2019-11-24 19:11:50 |

2019-11-24 19:11:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:50 | ------------------------------------

2019-11-24 19:11:50 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-6f09a138-47a8-4e29-9266-44dccc562135</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 6f09a138-47a8-4e29-9266-44dccc562135</title></pubsub></data>

2019-11-24 19:11:50 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-24 19:11:51 | [Mutex] waiting for: [received:nodes:b79d8e67-0816-490c-bdab-a4827ec8f3f5:localhost]

2019-11-24 19:11:51 | [Mutex] received everything.

2019-11-24 19:11:51 | [Mutex] isItemNotified: received:node:b79d8e67-0816-490c-bdab-a4827ec8f3f5:localhost:node-6f09a138-47a8-4e29-9266-44dccc562135:Node 6f09a138-47a8-4e29-9266-44dccc562135 :: true

deleteNodes 1.028s
2019-11-24 19:11:57 |

2019-11-24 19:11:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:57 | ------------------------------------

2019-11-24 19:11:57 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-6f09a138-47a8-4e29-9266-44dccc562135</node></data>

2019-11-24 19:11:57 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-24 19:11:58 | [Mutex] waiting for: [received:nodes:66923592-c0c0-4833-8a52-266753fb3008:localhost]

2019-11-24 19:11:58 | [Mutex] received everything.

2019-11-24 19:11:58 | [Mutex] isItemNotified: received:node:66923592-c0c0-4833-8a52-266753fb3008:localhost:node-6f09a138-47a8-4e29-9266-44dccc562135:Node 6f09a138-47a8-4e29-9266-44dccc562135 :: false

deleteSubnodes 1.217s
2019-11-24 19:11:56 |

2019-11-24 19:11:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:56 | ------------------------------------

2019-11-24 19:11:56 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node></data>

2019-11-24 19:11:56 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-24 19:11:57 | [Mutex] waiting for: [received:nodes:20e8bb60-ac6c-49fb-95c3-4a0e69a4f4c0:localhost]

2019-11-24 19:11:57 | [Mutex] waiting for: [received:nodes:20e8bb60-ac6c-49fb-95c3-4a0e69a4f4c0:localhost]

2019-11-24 19:11:57 | [Mutex] received everything.

2019-11-24 19:11:57 | [Mutex] isItemNotified: received:node:20e8bb60-ac6c-49fb-95c3-4a0e69a4f4c0:localhost:node-eea15060-f7f4-438a-b218-3c7e56887a56:Node eea15060-f7f4-438a-b218-3c7e56887a56 :: false

2019-11-24 19:11:57 | [Mutex] waiting for: [received:nodes:33e1517f-d676-4364-9445-0f99808db144:localhost]

2019-11-24 19:11:57 | [Mutex] received everything.

2019-11-24 19:11:57 | [Mutex] isItemNotified: received:node:33e1517f-d676-4364-9445-0f99808db144:localhost:node-eea15060-f7f4-438a-b218-3c7e56887a56:Node eea15060-f7f4-438a-b218-3c7e56887a56 :: false

publishItemsToNodes 0.352s
2019-11-24 19:11:53 |

2019-11-24 19:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:53 | ------------------------------------

2019-11-24 19:11:53 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node><item-id>item-ed64989e-f627-47ea-b907-b6eb66eb9767</item-id><entry><test>item-ed64989e-f627-47ea-b907-b6eb66eb9767</test></entry></data>

2019-11-24 19:11:53 | from localhost for action publish-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>item-ed64989e-f627-47ea-b907-b6eb66eb9767</value></item-id></result>

2019-11-24 19:11:53 | [Mutex] waiting for: [published:item:notifieditem-ed64989e-f627-47ea-b907-b6eb66eb9767:admin@localhost]

2019-11-24 19:11:53 | [Mutex] received everything.

2019-11-24 19:11:53 | [Mutex] isItemNotified: published:item:notifieditem-ed64989e-f627-47ea-b907-b6eb66eb9767:admin@localhost :: true

retractItemsFromNodes 0.368s
2019-11-24 19:11:54 |

2019-11-24 19:11:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:54 | ------------------------------------

2019-11-24 19:11:54 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node><item-id>item-ed64989e-f627-47ea-b907-b6eb66eb9767</item-id></data>

2019-11-24 19:11:54 | from localhost for action delete-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id label="Item ID" type="fixed"><value>item-ed64989e-f627-47ea-b907-b6eb66eb9767</value></item-id></result>

2019-11-24 19:11:54 | [Mutex] waiting for: [retracted:item:notifieditem-ed64989e-f627-47ea-b907-b6eb66eb9767:admin@localhost]

2019-11-24 19:11:54 | [Mutex] received everything.

2019-11-24 19:11:54 | [Mutex] isItemNotified: retracted:item:notifieditem-ed64989e-f627-47ea-b907-b6eb66eb9767:admin@localhost :: true

retrieveItemsFromNodes 0.252s
2019-11-24 19:11:53 |

2019-11-24 19:11:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:53 | ------------------------------------

2019-11-24 19:11:53 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node><item-id>item-ed64989e-f627-47ea-b907-b6eb66eb9767</item-id></data>

2019-11-24 19:11:54 | from localhost for action retrieve-item got result code 200 and payload
<result><title>Retrive PubSub node item</title><node label="Node" type="text-single"><value>node-eea15060-f7f4-438a-b218-3c7e56887a56</value></node><item-id label="Item ID" type="text-single"><value>item-ed64989e-f627-47ea-b907-b6eb66eb9767</value></item-id><item label="Item" type="text-multi"><value><item id="item-ed64989e-f627-47ea-b907-b6eb66eb9767"><test>item-ed64989e-f627-47ea-b907-b6eb66eb9767</test></item></value></item></result>

2019-11-24 19:11:54 | [Mutex] notify: [retrieved:item:item-ed64989e-f627-47ea-b907-b6eb66eb9767:payload-matches:true:localhost]

2019-11-24 19:11:54 | [Mutex] received everything.

2019-11-24 19:11:54 | [Mutex] isItemNotified: retrieved:item:item-ed64989e-f627-47ea-b907-b6eb66eb9767:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.280s
2019-11-24 19:11:54 |

2019-11-24 19:11:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:54 | ------------------------------------

2019-11-24 19:11:54 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-11-24 19:11:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-6f09a138-47a8-4e29-9266-44dccc562135</value><value>node-eea15060-f7f4-438a-b218-3c7e56887a56</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.066s
2019-11-24 19:11:54 |

2019-11-24 19:11:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:54 | ------------------------------------

2019-11-24 19:11:54 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-eea15060-f7f4-438a-b218-3c7e56887a56)</node-pattern></data>

2019-11-24 19:11:54 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.191s
2019-11-24 19:11:52 |

2019-11-24 19:11:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:52 | ------------------------------------

2019-11-24 19:11:52 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node><jids><value>admin@localhost</value></jids></data>

2019-11-24 19:11:52 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.322s
2019-11-24 19:11:54 |

2019-11-24 19:11:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:11:54 | ------------------------------------

2019-11-24 19:11:54 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-eea15060-f7f4-438a-b218-3c7e56887a56</node><jids><value>admin@localhost</value></jids></data>

2019-11-24 19:11:55 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>