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

Test duration: 10.502s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.131s
2019-11-20 20:03:27 |

2019-11-20 20:03:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:27 | ------------------------------------

2019-11-20 20:03:27 | [Mutex] waiting for: [configured:node:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:node-4db3e598-d91e-4d92-9d99-329e3fb50b0c]

2019-11-20 20:03:27 | [Mutex] received everything.

2019-11-20 20:03:27 | [Mutex] isItemNotified: configured:node:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:node-4db3e598-d91e-4d92-9d99-329e3fb50b0c :: true

2019-11-20 20:03:28 | [Mutex] waiting for: [received:nodes:e466ca9c-2893-48ec-840c-57963502a4c9:localhost]

2019-11-20 20:03:28 | [Mutex] received everything.

2019-11-20 20:03:28 | [Mutex] isItemNotified: received:node:e466ca9c-2893-48ec-840c-57963502a4c9:localhost:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:Node 90a97bfb-b6c0-4f65-8e6b-c30311e11f3d :: true

2019-11-20 20:03:28 | [Mutex] waiting for: [received:nodes:58028da2-1c45-40b0-9871-d9f7265e41c3:localhost]

2019-11-20 20:03:28 | [Mutex] received everything.

2019-11-20 20:03:28 | [Mutex] isItemNotified: received:node:58028da2-1c45-40b0-9871-d9f7265e41c3:localhost:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:Node 90a97bfb-b6c0-4f65-8e6b-c30311e11f3d :: false

createNodes 1.683s
2019-11-20 20:03:24 |

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

2019-11-20 20:03:24 | ------------------------------------

2019-11-20 20:03:24 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</title></pubsub></data>

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

2019-11-20 20:03:26 | [Mutex] waiting for: [received:nodes:bd8458c2-8438-4f54-a8e5-82954d255272:localhost]

2019-11-20 20:03:26 | [Mutex] received everything.

2019-11-20 20:03:26 | [Mutex] isItemNotified: received:node:bd8458c2-8438-4f54-a8e5-82954d255272:localhost:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:Node 90a97bfb-b6c0-4f65-8e6b-c30311e11f3d :: true

createSubnodes 1.038s
2019-11-20 20:03:26 |

2019-11-20 20:03:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:26 | ------------------------------------

2019-11-20 20:03:26 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-4db3e598-d91e-4d92-9d99-329e3fb50b0c</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 4db3e598-d91e-4d92-9d99-329e3fb50b0c</title></pubsub></data>

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

2019-11-20 20:03:27 | [Mutex] waiting for: [received:nodes:4adaed5c-973a-4b96-b8de-b00a1abbb08c:localhost]

2019-11-20 20:03:27 | [Mutex] received everything.

2019-11-20 20:03:27 | [Mutex] isItemNotified: received:node:4adaed5c-973a-4b96-b8de-b00a1abbb08c:localhost:node-4db3e598-d91e-4d92-9d99-329e3fb50b0c:Node 4db3e598-d91e-4d92-9d99-329e3fb50b0c :: true

deleteNodes 1.051s
2019-11-20 20:03:33 |

2019-11-20 20:03:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:33 | ------------------------------------

2019-11-20 20:03:33 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-4db3e598-d91e-4d92-9d99-329e3fb50b0c</node></data>

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

2019-11-20 20:03:34 | [Mutex] waiting for: [received:nodes:d6afe0a2-af02-47ea-abac-4b248509b6c3:localhost]

2019-11-20 20:03:34 | [Mutex] received everything.

2019-11-20 20:03:34 | [Mutex] isItemNotified: received:node:d6afe0a2-af02-47ea-abac-4b248509b6c3:localhost:node-4db3e598-d91e-4d92-9d99-329e3fb50b0c:Node 4db3e598-d91e-4d92-9d99-329e3fb50b0c :: false

deleteSubnodes 1.212s
2019-11-20 20:03:32 |

2019-11-20 20:03:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:32 | ------------------------------------

2019-11-20 20:03:32 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node></data>

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

2019-11-20 20:03:33 | [Mutex] waiting for: [received:nodes:89f25145-98bf-44f2-b15c-a22f5ca6b5ee:localhost]

2019-11-20 20:03:33 | [Mutex] received everything.

2019-11-20 20:03:33 | [Mutex] isItemNotified: received:node:89f25145-98bf-44f2-b15c-a22f5ca6b5ee:localhost:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:Node 90a97bfb-b6c0-4f65-8e6b-c30311e11f3d :: false

2019-11-20 20:03:33 | [Mutex] waiting for: [received:nodes:e7e3ba2f-1dc1-4827-8b2c-8f79e37161da:localhost]

2019-11-20 20:03:33 | [Mutex] received everything.

2019-11-20 20:03:33 | [Mutex] isItemNotified: received:node:e7e3ba2f-1dc1-4827-8b2c-8f79e37161da:localhost:node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d:Node 90a97bfb-b6c0-4f65-8e6b-c30311e11f3d :: false

publishItemsToNodes 0.265s
2019-11-20 20:03:29 |

2019-11-20 20:03:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:29 | ------------------------------------

2019-11-20 20:03:29 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node><item-id>item-2c342600-05a4-408b-ba61-571e94d07f68</item-id><entry><test>item-2c342600-05a4-408b-ba61-571e94d07f68</test></entry></data>

2019-11-20 20:03:29 | 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-2c342600-05a4-408b-ba61-571e94d07f68</value></item-id></result>

2019-11-20 20:03:29 | [Mutex] waiting for: [published:item:notifieditem-2c342600-05a4-408b-ba61-571e94d07f68:admin@localhost]

2019-11-20 20:03:30 | [Mutex] received everything.

2019-11-20 20:03:30 | [Mutex] isItemNotified: published:item:notifieditem-2c342600-05a4-408b-ba61-571e94d07f68:admin@localhost :: true

retractItemsFromNodes 0.311s
2019-11-20 20:03:30 |

2019-11-20 20:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:30 | ------------------------------------

2019-11-20 20:03:30 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node><item-id>item-2c342600-05a4-408b-ba61-571e94d07f68</item-id></data>

2019-11-20 20:03:30 | 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-2c342600-05a4-408b-ba61-571e94d07f68</value></item-id></result>

2019-11-20 20:03:30 | [Mutex] received everything.

2019-11-20 20:03:30 | [Mutex] isItemNotified: retracted:item:notifieditem-2c342600-05a4-408b-ba61-571e94d07f68:admin@localhost :: true

retrieveItemsFromNodes 0.200s
2019-11-20 20:03:30 |

2019-11-20 20:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:30 | ------------------------------------

2019-11-20 20:03:30 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node><item-id>item-2c342600-05a4-408b-ba61-571e94d07f68</item-id></data>

2019-11-20 20:03:30 | 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-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</value></node><item-id label="Item ID" type="text-single"><value>item-2c342600-05a4-408b-ba61-571e94d07f68</value></item-id><item label="Item" type="text-multi"><value><item id="item-2c342600-05a4-408b-ba61-571e94d07f68"><test>item-2c342600-05a4-408b-ba61-571e94d07f68</test></item></value></item></result>

2019-11-20 20:03:30 | [Mutex] notify: [retrieved:item:item-2c342600-05a4-408b-ba61-571e94d07f68:payload-matches:true:localhost]

2019-11-20 20:03:30 | [Mutex] received everything.

2019-11-20 20:03:30 | [Mutex] isItemNotified: retrieved:item:item-2c342600-05a4-408b-ba61-571e94d07f68:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.238s
2019-11-20 20:03:30 |

2019-11-20 20:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:30 | ------------------------------------

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

2019-11-20 20:03:30 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</value><value>node-4db3e598-d91e-4d92-9d99-329e3fb50b0c</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.066s
2019-11-20 20:03:30 |

2019-11-20 20:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:30 | ------------------------------------

2019-11-20 20:03:30 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d)</node-pattern></data>

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

subscribeNodes 1.135s
2019-11-20 20:03:28 |

2019-11-20 20:03:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:28 | ------------------------------------

2019-11-20 20:03:28 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.271s
2019-11-20 20:03:30 |

2019-11-20 20:03:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:03:30 | ------------------------------------

2019-11-20 20:03:30 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-90a97bfb-b6c0-4f65-8e6b-c30311e11f3d</node><jids><value>admin@localhost</value></jids></data>

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