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

Test duration: 10.659s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.092s
2019-10-13 20:14:24 |

2019-10-13 20:14:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:24 | ------------------------------------

2019-10-13 20:14:24 | [Mutex] waiting for: [configured:node:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:node-d23d895c-05df-4157-b7fa-0947d6c0dc67]

2019-10-13 20:14:24 | [Mutex] received everything.

2019-10-13 20:14:24 | [Mutex] isItemNotified: configured:node:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:node-d23d895c-05df-4157-b7fa-0947d6c0dc67 :: true

2019-10-13 20:14:25 | [Mutex] waiting for: [received:nodes:9f47a14a-edff-438b-8210-894de20469b6:localhost]

2019-10-13 20:14:25 | [Mutex] received everything.

2019-10-13 20:14:25 | [Mutex] isItemNotified: received:node:9f47a14a-edff-438b-8210-894de20469b6:localhost:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:Node 47e151e5-bff0-4d49-bf68-4d77d72bd736 :: true

2019-10-13 20:14:25 | [Mutex] waiting for: [received:nodes:f51e850d-8777-4f74-b96a-77944e611b4b:localhost]

2019-10-13 20:14:25 | [Mutex] received everything.

2019-10-13 20:14:25 | [Mutex] isItemNotified: received:node:f51e850d-8777-4f74-b96a-77944e611b4b:localhost:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:Node 47e151e5-bff0-4d49-bf68-4d77d72bd736 :: false

createNodes 1.759s
2019-10-13 20:14:21 |

2019-10-13 20:14:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:21 | ------------------------------------

2019-10-13 20:14:21 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 47e151e5-bff0-4d49-bf68-4d77d72bd736</title></pubsub></data>

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

2019-10-13 20:14:23 | [Mutex] waiting for: [received:nodes:5fa0ca72-755d-405d-910e-20307fbb7559:localhost]

2019-10-13 20:14:23 | [Mutex] received everything.

2019-10-13 20:14:23 | [Mutex] isItemNotified: received:node:5fa0ca72-755d-405d-910e-20307fbb7559:localhost:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:Node 47e151e5-bff0-4d49-bf68-4d77d72bd736 :: true

createSubnodes 1.040s
2019-10-13 20:14:23 |

2019-10-13 20:14:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:23 | ------------------------------------

2019-10-13 20:14:23 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-d23d895c-05df-4157-b7fa-0947d6c0dc67</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node d23d895c-05df-4157-b7fa-0947d6c0dc67</title></pubsub></data>

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

2019-10-13 20:14:24 | [Mutex] waiting for: [received:nodes:681cfac1-501c-455f-9dcb-72029a71b05f:localhost]

2019-10-13 20:14:24 | [Mutex] received everything.

2019-10-13 20:14:24 | [Mutex] isItemNotified: received:node:681cfac1-501c-455f-9dcb-72029a71b05f:localhost:node-d23d895c-05df-4157-b7fa-0947d6c0dc67:Node d23d895c-05df-4157-b7fa-0947d6c0dc67 :: true

deleteNodes 1.026s
2019-10-13 20:14:30 |

2019-10-13 20:14:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:30 | ------------------------------------

2019-10-13 20:14:30 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-d23d895c-05df-4157-b7fa-0947d6c0dc67</node></data>

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

2019-10-13 20:14:31 | [Mutex] waiting for: [received:nodes:ecb435a7-5d8b-4010-b955-143b10d5e384:localhost]

2019-10-13 20:14:31 | [Mutex] received everything.

2019-10-13 20:14:31 | [Mutex] isItemNotified: received:node:ecb435a7-5d8b-4010-b955-143b10d5e384:localhost:node-d23d895c-05df-4157-b7fa-0947d6c0dc67:Node d23d895c-05df-4157-b7fa-0947d6c0dc67 :: false

deleteSubnodes 1.168s
2019-10-13 20:14:29 |

2019-10-13 20:14:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:29 | ------------------------------------

2019-10-13 20:14:29 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node></data>

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

2019-10-13 20:14:30 | [Mutex] waiting for: [received:nodes:0f291c7e-66b8-493f-9e1b-fc0405cd7725:localhost]

2019-10-13 20:14:30 | [Mutex] received everything.

2019-10-13 20:14:30 | [Mutex] isItemNotified: received:node:0f291c7e-66b8-493f-9e1b-fc0405cd7725:localhost:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:Node 47e151e5-bff0-4d49-bf68-4d77d72bd736 :: false

2019-10-13 20:14:30 | [Mutex] waiting for: [received:nodes:de86cbf5-23b6-4e65-a656-745fa026c971:localhost]

2019-10-13 20:14:30 | [Mutex] received everything.

2019-10-13 20:14:30 | [Mutex] isItemNotified: received:node:de86cbf5-23b6-4e65-a656-745fa026c971:localhost:node-47e151e5-bff0-4d49-bf68-4d77d72bd736:Node 47e151e5-bff0-4d49-bf68-4d77d72bd736 :: false

publishItemsToNodes 0.307s
2019-10-13 20:14:27 |

2019-10-13 20:14:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:27 | ------------------------------------

2019-10-13 20:14:27 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node><item-id>item-72b9b409-2894-4be3-834a-234f79eb6e33</item-id><entry><test>item-72b9b409-2894-4be3-834a-234f79eb6e33</test></entry></data>

2019-10-13 20:14:27 | 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-72b9b409-2894-4be3-834a-234f79eb6e33</value></item-id></result>

2019-10-13 20:14:27 | [Mutex] waiting for: [published:item:notifieditem-72b9b409-2894-4be3-834a-234f79eb6e33:admin@localhost]

2019-10-13 20:14:27 | [Mutex] received everything.

2019-10-13 20:14:27 | [Mutex] isItemNotified: published:item:notifieditem-72b9b409-2894-4be3-834a-234f79eb6e33:admin@localhost :: true

retractItemsFromNodes 0.347s
2019-10-13 20:14:27 |

2019-10-13 20:14:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:27 | ------------------------------------

2019-10-13 20:14:27 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node><item-id>item-72b9b409-2894-4be3-834a-234f79eb6e33</item-id></data>

2019-10-13 20:14:28 | 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-72b9b409-2894-4be3-834a-234f79eb6e33</value></item-id></result>

2019-10-13 20:14:28 | [Mutex] received everything.

2019-10-13 20:14:28 | [Mutex] isItemNotified: retracted:item:notifieditem-72b9b409-2894-4be3-834a-234f79eb6e33:admin@localhost :: true

retrieveItemsFromNodes 0.275s
2019-10-13 20:14:27 |

2019-10-13 20:14:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:27 | ------------------------------------

2019-10-13 20:14:27 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node><item-id>item-72b9b409-2894-4be3-834a-234f79eb6e33</item-id></data>

2019-10-13 20:14:27 | 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-47e151e5-bff0-4d49-bf68-4d77d72bd736</value></node><item-id label="Item ID" type="text-single"><value>item-72b9b409-2894-4be3-834a-234f79eb6e33</value></item-id><item label="Item" type="text-multi"><value><item id="item-72b9b409-2894-4be3-834a-234f79eb6e33"><test>item-72b9b409-2894-4be3-834a-234f79eb6e33</test></item></value></item></result>

2019-10-13 20:14:27 | [Mutex] notify: [retrieved:item:item-72b9b409-2894-4be3-834a-234f79eb6e33:payload-matches:true:localhost]

2019-10-13 20:14:27 | [Mutex] received everything.

2019-10-13 20:14:27 | [Mutex] isItemNotified: retrieved:item:item-72b9b409-2894-4be3-834a-234f79eb6e33:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.280s
2019-10-13 20:14:27 |

2019-10-13 20:14:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:27 | ------------------------------------

2019-10-13 20:14:27 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-10-13 20:14:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</value><value>node-d23d895c-05df-4157-b7fa-0947d6c0dc67</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2019-10-13 20:14:27 |

2019-10-13 20:14:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:27 | ------------------------------------

2019-10-13 20:14:27 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-47e151e5-bff0-4d49-bf68-4d77d72bd736)</node-pattern></data>

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

subscribeNodes 1.207s
2019-10-13 20:14:25 |

2019-10-13 20:14:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:25 | ------------------------------------

2019-10-13 20:14:25 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.188s
2019-10-13 20:14:28 |

2019-10-13 20:14:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 20:14:28 | ------------------------------------

2019-10-13 20:14:28 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-47e151e5-bff0-4d49-bf68-4d77d72bd736</node><jids><value>admin@localhost</value></jids></data>

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