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

Test duration: 10.368s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.126s
2020-06-15 23:33:26 |

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

2020-06-15 23:33:26 | ------------------------------------

2020-06-15 23:33:26 | [Mutex] waiting for: [configured:node:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:node-7e7c11df-238c-44d0-b14b-16137eb027f0]

2020-06-15 23:33:26 | [Mutex] received everything.

2020-06-15 23:33:26 | [Mutex] isItemNotified: configured:node:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:node-7e7c11df-238c-44d0-b14b-16137eb027f0 :: true

2020-06-15 23:33:27 | [Mutex] waiting for: [received:nodes:f16646a2-59a9-4048-a1f4-e666804a3518:localhost]

2020-06-15 23:33:27 | [Mutex] received everything.

2020-06-15 23:33:27 | [Mutex] isItemNotified: received:node:f16646a2-59a9-4048-a1f4-e666804a3518:localhost:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:Node 5126744d-ba27-4cb0-a5e3-a7e8d4198a4c :: true

2020-06-15 23:33:27 | [Mutex] waiting for: [received:nodes:bb9bda8e-b31d-4491-be37-5ed150bb05c1:localhost]

2020-06-15 23:33:27 | [Mutex] received everything.

2020-06-15 23:33:27 | [Mutex] isItemNotified: received:node:bb9bda8e-b31d-4491-be37-5ed150bb05c1:localhost:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:Node 5126744d-ba27-4cb0-a5e3-a7e8d4198a4c :: false

createNodes 1.565s
2020-06-15 23:33:24 |

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

2020-06-15 23:33:24 | ------------------------------------

2020-06-15 23:33:24 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</title></pubsub></data>

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

2020-06-15 23:33:25 | [Mutex] waiting for: [received:nodes:97888ff4-7ac1-4950-a909-44f5195849ef:localhost]

2020-06-15 23:33:25 | [Mutex] received everything.

2020-06-15 23:33:25 | [Mutex] isItemNotified: received:node:97888ff4-7ac1-4950-a909-44f5195849ef:localhost:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:Node 5126744d-ba27-4cb0-a5e3-a7e8d4198a4c :: true

createSubnodes 1.024s
2020-06-15 23:33:25 |

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

2020-06-15 23:33:25 | ------------------------------------

2020-06-15 23:33:25 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7e7c11df-238c-44d0-b14b-16137eb027f0</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 7e7c11df-238c-44d0-b14b-16137eb027f0</title></pubsub></data>

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

2020-06-15 23:33:26 | [Mutex] waiting for: [received:nodes:b6544ab0-eacc-4cf6-a755-e01053ca1bcc:localhost]

2020-06-15 23:33:26 | [Mutex] received everything.

2020-06-15 23:33:26 | [Mutex] isItemNotified: received:node:b6544ab0-eacc-4cf6-a755-e01053ca1bcc:localhost:node-7e7c11df-238c-44d0-b14b-16137eb027f0:Node 7e7c11df-238c-44d0-b14b-16137eb027f0 :: true

deleteNodes 1.021s
2020-06-15 23:33:32 |

2020-06-15 23:33:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:32 | ------------------------------------

2020-06-15 23:33:32 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7e7c11df-238c-44d0-b14b-16137eb027f0</node></data>

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

2020-06-15 23:33:33 | [Mutex] waiting for: [received:nodes:57553b35-4510-4383-9e01-72dfebbf0cc0:localhost]

2020-06-15 23:33:33 | [Mutex] received everything.

2020-06-15 23:33:33 | [Mutex] isItemNotified: received:node:57553b35-4510-4383-9e01-72dfebbf0cc0:localhost:node-7e7c11df-238c-44d0-b14b-16137eb027f0:Node 7e7c11df-238c-44d0-b14b-16137eb027f0 :: false

deleteSubnodes 1.140s
2020-06-15 23:33:31 |

2020-06-15 23:33:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:31 | ------------------------------------

2020-06-15 23:33:31 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node></data>

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

2020-06-15 23:33:32 | [Mutex] waiting for: [received:nodes:3c80e417-3628-42a3-a5dc-0a4bf64d99f5:localhost]

2020-06-15 23:33:32 | [Mutex] received everything.

2020-06-15 23:33:32 | [Mutex] isItemNotified: received:node:3c80e417-3628-42a3-a5dc-0a4bf64d99f5:localhost:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:Node 5126744d-ba27-4cb0-a5e3-a7e8d4198a4c :: false

2020-06-15 23:33:32 | [Mutex] waiting for: [received:nodes:20bd7692-cc3c-44f2-a18e-5ee26dd182e5:localhost]

2020-06-15 23:33:32 | [Mutex] received everything.

2020-06-15 23:33:32 | [Mutex] isItemNotified: received:node:20bd7692-cc3c-44f2-a18e-5ee26dd182e5:localhost:node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c:Node 5126744d-ba27-4cb0-a5e3-a7e8d4198a4c :: false

publishItemsToNodes 0.271s
2020-06-15 23:33:29 |

2020-06-15 23:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:29 | ------------------------------------

2020-06-15 23:33:29 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node><item-id>item-2ac39623-3c8e-4e16-becc-cf3fbd707c95</item-id><entry><test>item-2ac39623-3c8e-4e16-becc-cf3fbd707c95</test></entry></data>

2020-06-15 23:33:29 | 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-2ac39623-3c8e-4e16-becc-cf3fbd707c95</value></item-id></result>

2020-06-15 23:33:29 | [Mutex] received everything.

2020-06-15 23:33:29 | [Mutex] isItemNotified: published:item:notifieditem-2ac39623-3c8e-4e16-becc-cf3fbd707c95:admin@localhost :: true

retractItemsFromNodes 0.256s
2020-06-15 23:33:29 |

2020-06-15 23:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:29 | ------------------------------------

2020-06-15 23:33:29 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node><item-id>item-2ac39623-3c8e-4e16-becc-cf3fbd707c95</item-id></data>

2020-06-15 23:33:30 | 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-2ac39623-3c8e-4e16-becc-cf3fbd707c95</value></item-id></result>

2020-06-15 23:33:30 | [Mutex] received everything.

2020-06-15 23:33:30 | [Mutex] isItemNotified: retracted:item:notifieditem-2ac39623-3c8e-4e16-becc-cf3fbd707c95:admin@localhost :: true

retrieveItemsFromNodes 0.320s
2020-06-15 23:33:29 |

2020-06-15 23:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:29 | ------------------------------------

2020-06-15 23:33:29 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node><item-id>item-2ac39623-3c8e-4e16-becc-cf3fbd707c95</item-id></data>

2020-06-15 23:33:29 | 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-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</value></node><item-id type="text-single" label="Item ID"><value>item-2ac39623-3c8e-4e16-becc-cf3fbd707c95</value></item-id><item type="text-multi" label="Item"><value><item id="item-2ac39623-3c8e-4e16-becc-cf3fbd707c95"><test>item-2ac39623-3c8e-4e16-becc-cf3fbd707c95</test></item></value></item></result>

2020-06-15 23:33:29 | [Mutex] notify: [retrieved:item:item-2ac39623-3c8e-4e16-becc-cf3fbd707c95:payload-matches:true:localhost]

2020-06-15 23:33:29 | [Mutex] received everything.

2020-06-15 23:33:29 | [Mutex] isItemNotified: retrieved:item:item-2ac39623-3c8e-4e16-becc-cf3fbd707c95:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.220s
2020-06-15 23:33:29 |

2020-06-15 23:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:29 | ------------------------------------

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

2020-06-15 23:33:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-7e7c11df-238c-44d0-b14b-16137eb027f0</value><value>test</value><value>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-06-15 23:33:29 |

2020-06-15 23:33:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:29 | ------------------------------------

2020-06-15 23:33:29 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c)</node-pattern></data>

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

subscribeNodes 1.153s
2020-06-15 23:33:27 |

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

2020-06-15 23:33:27 | ------------------------------------

2020-06-15 23:33:27 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node><jids><value>admin@localhost</value></jids></data>

2020-06-15 23:33: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.264s
2020-06-15 23:33:30 |

2020-06-15 23:33:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-15 23:33:30 | ------------------------------------

2020-06-15 23:33:30 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-5126744d-ba27-4cb0-a5e3-a7e8d4198a4c</node><jids><value>admin@localhost</value></jids></data>

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