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

Test duration: 10.509s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.099s
2020-06-24 23:50:22 |

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

2020-06-24 23:50:22 | ------------------------------------

2020-06-24 23:50:22 | [Mutex] waiting for: [configured:node:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:node-c88ed355-48aa-4344-9410-0612989f38e4]

2020-06-24 23:50:22 | [Mutex] received everything.

2020-06-24 23:50:22 | [Mutex] isItemNotified: configured:node:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:node-c88ed355-48aa-4344-9410-0612989f38e4 :: true

2020-06-24 23:50:23 | [Mutex] waiting for: [received:nodes:2b4ace2d-85e9-4555-95d2-86dcefdcbd01:localhost]

2020-06-24 23:50:23 | [Mutex] received everything.

2020-06-24 23:50:23 | [Mutex] isItemNotified: received:node:2b4ace2d-85e9-4555-95d2-86dcefdcbd01:localhost:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:Node b81034bb-cf2e-4e08-a219-4597cf4cb9ed :: true

2020-06-24 23:50:23 | [Mutex] waiting for: [received:nodes:56362347-bd84-4702-8b8d-885da3808ed8:localhost]

2020-06-24 23:50:23 | [Mutex] received everything.

2020-06-24 23:50:23 | [Mutex] isItemNotified: received:node:56362347-bd84-4702-8b8d-885da3808ed8:localhost:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:Node b81034bb-cf2e-4e08-a219-4597cf4cb9ed :: false

createNodes 1.758s
2020-06-24 23:50:19 |

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

2020-06-24 23:50:19 | ------------------------------------

2020-06-24 23:50:19 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node b81034bb-cf2e-4e08-a219-4597cf4cb9ed</title></pubsub></data>

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

2020-06-24 23:50:21 | [Mutex] waiting for: [received:nodes:3d7c2be9-8878-4393-bc03-3bbe6143e429:localhost]

2020-06-24 23:50:21 | [Mutex] received everything.

2020-06-24 23:50:21 | [Mutex] isItemNotified: received:node:3d7c2be9-8878-4393-bc03-3bbe6143e429:localhost:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:Node b81034bb-cf2e-4e08-a219-4597cf4cb9ed :: true

createSubnodes 1.025s
2020-06-24 23:50:21 |

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

2020-06-24 23:50:21 | ------------------------------------

2020-06-24 23:50:21 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-c88ed355-48aa-4344-9410-0612989f38e4</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node c88ed355-48aa-4344-9410-0612989f38e4</title></pubsub></data>

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

2020-06-24 23:50:22 | [Mutex] waiting for: [received:nodes:ce63921b-78ac-42aa-9151-da8f6c68d99c:localhost]

2020-06-24 23:50:22 | [Mutex] received everything.

2020-06-24 23:50:22 | [Mutex] isItemNotified: received:node:ce63921b-78ac-42aa-9151-da8f6c68d99c:localhost:node-c88ed355-48aa-4344-9410-0612989f38e4:Node c88ed355-48aa-4344-9410-0612989f38e4 :: true

deleteNodes 1.020s
2020-06-24 23:50:27 |

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

2020-06-24 23:50:27 | ------------------------------------

2020-06-24 23:50:27 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-c88ed355-48aa-4344-9410-0612989f38e4</node></data>

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

2020-06-24 23:50:28 | [Mutex] waiting for: [received:nodes:57268488-e1cf-4041-890a-e148156d8554:localhost]

2020-06-24 23:50:28 | [Mutex] received everything.

2020-06-24 23:50:28 | [Mutex] isItemNotified: received:node:57268488-e1cf-4041-890a-e148156d8554:localhost:node-c88ed355-48aa-4344-9410-0612989f38e4:Node c88ed355-48aa-4344-9410-0612989f38e4 :: false

deleteSubnodes 1.133s
2020-06-24 23:50:26 |

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

2020-06-24 23:50:26 | ------------------------------------

2020-06-24 23:50:26 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node></data>

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

2020-06-24 23:50:27 | [Mutex] waiting for: [received:nodes:2920db72-4b2d-45f4-a53b-e482da515b6f:localhost]

2020-06-24 23:50:27 | [Mutex] received everything.

2020-06-24 23:50:27 | [Mutex] isItemNotified: received:node:2920db72-4b2d-45f4-a53b-e482da515b6f:localhost:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:Node b81034bb-cf2e-4e08-a219-4597cf4cb9ed :: false

2020-06-24 23:50:27 | [Mutex] waiting for: [received:nodes:fe3dda12-f5a3-4451-acb8-29366efc408c:localhost]

2020-06-24 23:50:27 | [Mutex] received everything.

2020-06-24 23:50:27 | [Mutex] isItemNotified: received:node:fe3dda12-f5a3-4451-acb8-29366efc408c:localhost:node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed:Node b81034bb-cf2e-4e08-a219-4597cf4cb9ed :: false

publishItemsToNodes 0.184s
2020-06-24 23:50:24 |

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

2020-06-24 23:50:24 | ------------------------------------

2020-06-24 23:50:24 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node><item-id>item-037a436f-3df9-4167-a1f0-b5722a5f5a68</item-id><entry><test>item-037a436f-3df9-4167-a1f0-b5722a5f5a68</test></entry></data>

2020-06-24 23:50:24 | 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-037a436f-3df9-4167-a1f0-b5722a5f5a68</value></item-id></result>

2020-06-24 23:50:24 | [Mutex] received everything.

2020-06-24 23:50:24 | [Mutex] isItemNotified: published:item:notifieditem-037a436f-3df9-4167-a1f0-b5722a5f5a68:admin@localhost :: true

retractItemsFromNodes 0.283s
2020-06-24 23:50:25 |

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

2020-06-24 23:50:25 | ------------------------------------

2020-06-24 23:50:25 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node><item-id>item-037a436f-3df9-4167-a1f0-b5722a5f5a68</item-id></data>

2020-06-24 23:50:25 | 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-037a436f-3df9-4167-a1f0-b5722a5f5a68</value></item-id></result>

2020-06-24 23:50:25 | [Mutex] received everything.

2020-06-24 23:50:25 | [Mutex] isItemNotified: retracted:item:notifieditem-037a436f-3df9-4167-a1f0-b5722a5f5a68:admin@localhost :: true

retrieveItemsFromNodes 0.210s
2020-06-24 23:50:24 |

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

2020-06-24 23:50:24 | ------------------------------------

2020-06-24 23:50:24 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node><item-id>item-037a436f-3df9-4167-a1f0-b5722a5f5a68</item-id></data>

2020-06-24 23:50:24 | 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-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</value></node><item-id type="text-single" label="Item ID"><value>item-037a436f-3df9-4167-a1f0-b5722a5f5a68</value></item-id><item type="text-multi" label="Item"><value><item id="item-037a436f-3df9-4167-a1f0-b5722a5f5a68"><test>item-037a436f-3df9-4167-a1f0-b5722a5f5a68</test></item></value></item></result>

2020-06-24 23:50:24 | [Mutex] notify: [retrieved:item:item-037a436f-3df9-4167-a1f0-b5722a5f5a68:payload-matches:true:localhost]

2020-06-24 23:50:24 | [Mutex] received everything.

2020-06-24 23:50:24 | [Mutex] isItemNotified: retrieved:item:item-037a436f-3df9-4167-a1f0-b5722a5f5a68:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.232s
2020-06-24 23:50:24 |

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

2020-06-24 23:50:24 | ------------------------------------

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

2020-06-24 23:50:25 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>test</value><value>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</value><value>node-c88ed355-48aa-4344-9410-0612989f38e4</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-24 23:50:25 |

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

2020-06-24 23:50:25 | ------------------------------------

2020-06-24 23:50:25 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed)</node-pattern></data>

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

subscribeNodes 1.183s
2020-06-24 23:50:23 |

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

2020-06-24 23:50:23 | ------------------------------------

2020-06-24 23:50:23 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.287s
2020-06-24 23:50:25 |

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

2020-06-24 23:50:25 | ------------------------------------

2020-06-24 23:50:25 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-b81034bb-cf2e-4e08-a219-4597cf4cb9ed</node><jids><value>admin@localhost</value></jids></data>

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