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

Test duration: 10.157s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.110s
2020-06-17 22:57:00 |

2020-06-17 22:57:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:00 | ------------------------------------

2020-06-17 22:57:00 | [Mutex] waiting for: [configured:node:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:node-fdaa3f94-508f-43df-82c9-fe55a1341db2]

2020-06-17 22:57:00 | [Mutex] received everything.

2020-06-17 22:57:00 | [Mutex] isItemNotified: configured:node:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:node-fdaa3f94-508f-43df-82c9-fe55a1341db2 :: true

2020-06-17 22:57:01 | [Mutex] waiting for: [received:nodes:fa6710ed-af01-458b-b68d-ea652c7ed8cd:localhost]

2020-06-17 22:57:01 | [Mutex] received everything.

2020-06-17 22:57:01 | [Mutex] isItemNotified: received:node:fa6710ed-af01-458b-b68d-ea652c7ed8cd:localhost:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:Node fa8b006f-f3fa-4b95-90fd-5343da93145e :: true

2020-06-17 22:57:01 | [Mutex] waiting for: [received:nodes:6b0a8942-c055-4483-99c8-2c3a423ba3c8:localhost]

2020-06-17 22:57:01 | [Mutex] received everything.

2020-06-17 22:57:01 | [Mutex] isItemNotified: received:node:6b0a8942-c055-4483-99c8-2c3a423ba3c8:localhost:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:Node fa8b006f-f3fa-4b95-90fd-5343da93145e :: false

createNodes 1.681s
2020-06-17 22:56:57 |

2020-06-17 22:56:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:56:57 | ------------------------------------

2020-06-17 22:56:57 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node fa8b006f-f3fa-4b95-90fd-5343da93145e</title></pubsub></data>

2020-06-17 22:56:58 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-17 22:56:59 | [Mutex] waiting for: [received:nodes:41268903-34e3-407d-b5d0-fb293133af1d:localhost]

2020-06-17 22:56:59 | [Mutex] received everything.

2020-06-17 22:56:59 | [Mutex] isItemNotified: received:node:41268903-34e3-407d-b5d0-fb293133af1d:localhost:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:Node fa8b006f-f3fa-4b95-90fd-5343da93145e :: true

createSubnodes 1.024s
2020-06-17 22:56:59 |

2020-06-17 22:56:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:56:59 | ------------------------------------

2020-06-17 22:56:59 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-fdaa3f94-508f-43df-82c9-fe55a1341db2</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node fdaa3f94-508f-43df-82c9-fe55a1341db2</title></pubsub></data>

2020-06-17 22:56:59 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-17 22:57:00 | [Mutex] waiting for: [received:nodes:b16a8a21-5787-4a02-b3e0-0e0798018634:localhost]

2020-06-17 22:57:00 | [Mutex] received everything.

2020-06-17 22:57:00 | [Mutex] isItemNotified: received:node:b16a8a21-5787-4a02-b3e0-0e0798018634:localhost:node-fdaa3f94-508f-43df-82c9-fe55a1341db2:Node fdaa3f94-508f-43df-82c9-fe55a1341db2 :: true

deleteNodes 1.019s
2020-06-17 22:57:06 |

2020-06-17 22:57:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:06 | ------------------------------------

2020-06-17 22:57:06 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-fdaa3f94-508f-43df-82c9-fe55a1341db2</node></data>

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

2020-06-17 22:57:07 | [Mutex] waiting for: [received:nodes:59eb29fd-daa9-439f-821c-9e9fafbb5bcf:localhost]

2020-06-17 22:57:07 | [Mutex] received everything.

2020-06-17 22:57:07 | [Mutex] isItemNotified: received:node:59eb29fd-daa9-439f-821c-9e9fafbb5bcf:localhost:node-fdaa3f94-508f-43df-82c9-fe55a1341db2:Node fdaa3f94-508f-43df-82c9-fe55a1341db2 :: false

deleteSubnodes 1.133s
2020-06-17 22:57:04 |

2020-06-17 22:57:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:04 | ------------------------------------

2020-06-17 22:57:04 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node></data>

2020-06-17 22:57:05 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-17 22:57:06 | [Mutex] waiting for: [received:nodes:7b162474-e306-4dea-b987-2c9266157860:localhost]

2020-06-17 22:57:06 | [Mutex] waiting for: [received:nodes:7b162474-e306-4dea-b987-2c9266157860:localhost]

2020-06-17 22:57:06 | [Mutex] received everything.

2020-06-17 22:57:06 | [Mutex] isItemNotified: received:node:7b162474-e306-4dea-b987-2c9266157860:localhost:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:Node fa8b006f-f3fa-4b95-90fd-5343da93145e :: false

2020-06-17 22:57:06 | [Mutex] waiting for: [received:nodes:68c1fd38-ec0f-4525-906d-274ed6e75e97:localhost]

2020-06-17 22:57:06 | [Mutex] received everything.

2020-06-17 22:57:06 | [Mutex] isItemNotified: received:node:68c1fd38-ec0f-4525-906d-274ed6e75e97:localhost:node-fa8b006f-f3fa-4b95-90fd-5343da93145e:Node fa8b006f-f3fa-4b95-90fd-5343da93145e :: false

publishItemsToNodes 0.188s
2020-06-17 22:57:02 |

2020-06-17 22:57:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:02 | ------------------------------------

2020-06-17 22:57:02 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node><item-id>item-68938f58-ae06-44e3-9214-8601bd893367</item-id><entry><test>item-68938f58-ae06-44e3-9214-8601bd893367</test></entry></data>

2020-06-17 22:57:03 | from localhost for action publish-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-68938f58-ae06-44e3-9214-8601bd893367</value></item-id></result>

2020-06-17 22:57:03 | [Mutex] received everything.

2020-06-17 22:57:03 | [Mutex] isItemNotified: published:item:notifieditem-68938f58-ae06-44e3-9214-8601bd893367:admin@localhost :: true

retractItemsFromNodes 0.196s
2020-06-17 22:57:03 |

2020-06-17 22:57:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:03 | ------------------------------------

2020-06-17 22:57:03 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node><item-id>item-68938f58-ae06-44e3-9214-8601bd893367</item-id></data>

2020-06-17 22:57:03 | from localhost for action delete-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-68938f58-ae06-44e3-9214-8601bd893367</value></item-id></result>

2020-06-17 22:57:03 | [Mutex] waiting for: [retracted:item:notifieditem-68938f58-ae06-44e3-9214-8601bd893367:admin@localhost]

2020-06-17 22:57:03 | [Mutex] received everything.

2020-06-17 22:57:03 | [Mutex] isItemNotified: retracted:item:notifieditem-68938f58-ae06-44e3-9214-8601bd893367:admin@localhost :: true

retrieveItemsFromNodes 0.205s
2020-06-17 22:57:03 |

2020-06-17 22:57:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:03 | ------------------------------------

2020-06-17 22:57:03 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node><item-id>item-68938f58-ae06-44e3-9214-8601bd893367</item-id></data>

2020-06-17 22:57:03 | from localhost for action retrieve-item got result code 200 and payload
<result><title>Retrive PubSub node item</title><node type="text-single" label="Node"><value>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</value></node><item-id type="text-single" label="Item ID"><value>item-68938f58-ae06-44e3-9214-8601bd893367</value></item-id><item type="text-multi" label="Item"><value><item id="item-68938f58-ae06-44e3-9214-8601bd893367"><test>item-68938f58-ae06-44e3-9214-8601bd893367</test></item></value></item></result>

2020-06-17 22:57:03 | [Mutex] notify: [retrieved:item:item-68938f58-ae06-44e3-9214-8601bd893367:payload-matches:true:localhost]

2020-06-17 22:57:03 | [Mutex] received everything.

2020-06-17 22:57:03 | [Mutex] isItemNotified: retrieved:item:item-68938f58-ae06-44e3-9214-8601bd893367:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.184s
2020-06-17 22:57:03 |

2020-06-17 22:57:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:03 | ------------------------------------

2020-06-17 22:57:03 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-17 22:57:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</value><value>test</value><value>node-fdaa3f94-508f-43df-82c9-fe55a1341db2</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-06-17 22:57:03 |

2020-06-17 22:57:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:03 | ------------------------------------

2020-06-17 22:57:03 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-fa8b006f-f3fa-4b95-90fd-5343da93145e)</node-pattern></data>

2020-06-17 22:57:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>

subscribeNodes 1.143s
2020-06-17 22:57:01 |

2020-06-17 22:57:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:01 | ------------------------------------

2020-06-17 22:57:01 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node><jids><value>admin@localhost</value></jids></data>

2020-06-17 22:57:01 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.232s
2020-06-17 22:57:03 |

2020-06-17 22:57:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-17 22:57:03 | ------------------------------------

2020-06-17 22:57:03 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-fa8b006f-f3fa-4b95-90fd-5343da93145e</node><jids><value>admin@localhost</value></jids></data>

2020-06-17 22:57:03 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>