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

Test duration: 10.245s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.129s
2020-06-18 23:54:46 |

2020-06-18 23:54:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:46 | ------------------------------------

2020-06-18 23:54:46 | [Mutex] waiting for: [configured:node:node-169075a8-4837-40e0-a518-4bf0cf1fc271:node-adad7f60-04ff-4597-b4b2-65aef06ddb68]

2020-06-18 23:54:46 | [Mutex] received everything.

2020-06-18 23:54:46 | [Mutex] isItemNotified: configured:node:node-169075a8-4837-40e0-a518-4bf0cf1fc271:node-adad7f60-04ff-4597-b4b2-65aef06ddb68 :: true

2020-06-18 23:54:47 | [Mutex] waiting for: [received:nodes:b84613b1-7c2c-4ebc-9bff-3032127ee79e:localhost]

2020-06-18 23:54:47 | [Mutex] received everything.

2020-06-18 23:54:47 | [Mutex] isItemNotified: received:node:b84613b1-7c2c-4ebc-9bff-3032127ee79e:localhost:node-169075a8-4837-40e0-a518-4bf0cf1fc271:Node 169075a8-4837-40e0-a518-4bf0cf1fc271 :: true

2020-06-18 23:54:47 | [Mutex] waiting for: [received:nodes:0e2a3084-b4fc-4bbb-aae4-934c133b219f:localhost]

2020-06-18 23:54:47 | [Mutex] received everything.

2020-06-18 23:54:47 | [Mutex] isItemNotified: received:node:0e2a3084-b4fc-4bbb-aae4-934c133b219f:localhost:node-169075a8-4837-40e0-a518-4bf0cf1fc271:Node 169075a8-4837-40e0-a518-4bf0cf1fc271 :: false

createNodes 1.656s
2020-06-18 23:54:43 |

2020-06-18 23:54:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:43 | ------------------------------------

2020-06-18 23:54:43 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 169075a8-4837-40e0-a518-4bf0cf1fc271</title></pubsub></data>

2020-06-18 23:54:44 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-18 23:54:45 | [Mutex] waiting for: [received:nodes:776632d3-b8cf-4d20-a511-3c92a0da195d:localhost]

2020-06-18 23:54:45 | [Mutex] received everything.

2020-06-18 23:54:45 | [Mutex] isItemNotified: received:node:776632d3-b8cf-4d20-a511-3c92a0da195d:localhost:node-169075a8-4837-40e0-a518-4bf0cf1fc271:Node 169075a8-4837-40e0-a518-4bf0cf1fc271 :: true

createSubnodes 1.024s
2020-06-18 23:54:45 |

2020-06-18 23:54:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:45 | ------------------------------------

2020-06-18 23:54:45 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-adad7f60-04ff-4597-b4b2-65aef06ddb68</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node adad7f60-04ff-4597-b4b2-65aef06ddb68</title></pubsub></data>

2020-06-18 23:54:45 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-18 23:54:46 | [Mutex] waiting for: [received:nodes:8f27afa5-334b-4c11-83f1-96d570e6cdbd:localhost]

2020-06-18 23:54:46 | [Mutex] received everything.

2020-06-18 23:54:46 | [Mutex] isItemNotified: received:node:8f27afa5-334b-4c11-83f1-96d570e6cdbd:localhost:node-adad7f60-04ff-4597-b4b2-65aef06ddb68:Node adad7f60-04ff-4597-b4b2-65aef06ddb68 :: true

deleteNodes 1.021s
2020-06-18 23:54:51 |

2020-06-18 23:54:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:51 | ------------------------------------

2020-06-18 23:54:51 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-adad7f60-04ff-4597-b4b2-65aef06ddb68</node></data>

2020-06-18 23:54:51 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-18 23:54:52 | [Mutex] waiting for: [received:nodes:ff8024a0-5e77-44a6-8006-ebeb607fa248:localhost]

2020-06-18 23:54:52 | [Mutex] received everything.

2020-06-18 23:54:52 | [Mutex] isItemNotified: received:node:ff8024a0-5e77-44a6-8006-ebeb607fa248:localhost:node-adad7f60-04ff-4597-b4b2-65aef06ddb68:Node adad7f60-04ff-4597-b4b2-65aef06ddb68 :: false

deleteSubnodes 1.123s
2020-06-18 23:54:50 |

2020-06-18 23:54:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:50 | ------------------------------------

2020-06-18 23:54:50 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node></data>

2020-06-18 23:54:50 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-18 23:54:51 | [Mutex] waiting for: [received:nodes:8f561652-1411-4ed5-b50d-2c758a4e387b:localhost]

2020-06-18 23:54:51 | [Mutex] received everything.

2020-06-18 23:54:51 | [Mutex] isItemNotified: received:node:8f561652-1411-4ed5-b50d-2c758a4e387b:localhost:node-169075a8-4837-40e0-a518-4bf0cf1fc271:Node 169075a8-4837-40e0-a518-4bf0cf1fc271 :: false

2020-06-18 23:54:51 | [Mutex] waiting for: [received:nodes:d2053941-0b22-4281-a07f-3ea5c8e75e47:localhost]

2020-06-18 23:54:51 | [Mutex] received everything.

2020-06-18 23:54:51 | [Mutex] isItemNotified: received:node:d2053941-0b22-4281-a07f-3ea5c8e75e47:localhost:node-169075a8-4837-40e0-a518-4bf0cf1fc271:Node 169075a8-4837-40e0-a518-4bf0cf1fc271 :: false

publishItemsToNodes 0.201s
2020-06-18 23:54:48 |

2020-06-18 23:54:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:48 | ------------------------------------

2020-06-18 23:54:48 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node><item-id>item-448dcfaf-add6-4b8a-8dca-ca8786994b69</item-id><entry><test>item-448dcfaf-add6-4b8a-8dca-ca8786994b69</test></entry></data>

2020-06-18 23:54:48 | 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-448dcfaf-add6-4b8a-8dca-ca8786994b69</value></item-id></result>

2020-06-18 23:54:48 | [Mutex] received everything.

2020-06-18 23:54:48 | [Mutex] isItemNotified: published:item:notifieditem-448dcfaf-add6-4b8a-8dca-ca8786994b69:admin@localhost :: true

retractItemsFromNodes 0.303s
2020-06-18 23:54:49 |

2020-06-18 23:54:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:49 | ------------------------------------

2020-06-18 23:54:49 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node><item-id>item-448dcfaf-add6-4b8a-8dca-ca8786994b69</item-id></data>

2020-06-18 23:54:49 | 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-448dcfaf-add6-4b8a-8dca-ca8786994b69</value></item-id></result>

2020-06-18 23:54:49 | [Mutex] received everything.

2020-06-18 23:54:49 | [Mutex] isItemNotified: retracted:item:notifieditem-448dcfaf-add6-4b8a-8dca-ca8786994b69:admin@localhost :: true

retrieveItemsFromNodes 0.156s
2020-06-18 23:54:48 |

2020-06-18 23:54:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:48 | ------------------------------------

2020-06-18 23:54:48 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node><item-id>item-448dcfaf-add6-4b8a-8dca-ca8786994b69</item-id></data>

2020-06-18 23:54:48 | 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-169075a8-4837-40e0-a518-4bf0cf1fc271</value></node><item-id label="Item ID" type="text-single"><value>item-448dcfaf-add6-4b8a-8dca-ca8786994b69</value></item-id><item label="Item" type="text-multi"><value><item id="item-448dcfaf-add6-4b8a-8dca-ca8786994b69"><test>item-448dcfaf-add6-4b8a-8dca-ca8786994b69</test></item></value></item></result>

2020-06-18 23:54:48 | [Mutex] notify: [retrieved:item:item-448dcfaf-add6-4b8a-8dca-ca8786994b69:payload-matches:true:localhost]

2020-06-18 23:54:48 | [Mutex] received everything.

2020-06-18 23:54:48 | [Mutex] isItemNotified: retrieved:item:item-448dcfaf-add6-4b8a-8dca-ca8786994b69:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.196s
2020-06-18 23:54:48 |

2020-06-18 23:54:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:48 | ------------------------------------

2020-06-18 23:54:48 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-18 23:54:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-169075a8-4837-40e0-a518-4bf0cf1fc271</value><value>test</value><value>node-adad7f60-04ff-4597-b4b2-65aef06ddb68</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-06-18 23:54:49 |

2020-06-18 23:54:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:49 | ------------------------------------

2020-06-18 23:54:49 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-169075a8-4837-40e0-a518-4bf0cf1fc271)</node-pattern></data>

2020-06-18 23:54:49 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.128s
2020-06-18 23:54:47 |

2020-06-18 23:54:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:47 | ------------------------------------

2020-06-18 23:54:47 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node><jids><value>admin@localhost</value></jids></data>

2020-06-18 23:54:47 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.268s
2020-06-18 23:54:49 |

2020-06-18 23:54:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-18 23:54:49 | ------------------------------------

2020-06-18 23:54:49 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-169075a8-4837-40e0-a518-4bf0cf1fc271</node><jids><value>admin@localhost</value></jids></data>

2020-06-18 23:54:49 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>