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

Test duration: 10.375s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.123s
2019-11-27 21:06:15 |

2019-11-27 21:06:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:15 | ------------------------------------

2019-11-27 21:06:15 | [Mutex] waiting for: [configured:node:node-00a51bcc-1581-4151-b44d-8941b30ebd78:node-60434787-1769-44d7-9c9d-f903b6a12e2f]

2019-11-27 21:06:15 | [Mutex] received everything.

2019-11-27 21:06:15 | [Mutex] isItemNotified: configured:node:node-00a51bcc-1581-4151-b44d-8941b30ebd78:node-60434787-1769-44d7-9c9d-f903b6a12e2f :: true

2019-11-27 21:06:16 | [Mutex] waiting for: [received:nodes:bfbf6f31-9e57-4bc1-8759-1a62137e2f9d:localhost]

2019-11-27 21:06:16 | [Mutex] received everything.

2019-11-27 21:06:16 | [Mutex] isItemNotified: received:node:bfbf6f31-9e57-4bc1-8759-1a62137e2f9d:localhost:node-00a51bcc-1581-4151-b44d-8941b30ebd78:Node 00a51bcc-1581-4151-b44d-8941b30ebd78 :: true

2019-11-27 21:06:16 | [Mutex] waiting for: [received:nodes:6a33e6ec-656e-4033-95c2-b08ff3efde07:localhost]

2019-11-27 21:06:16 | [Mutex] waiting for: [received:nodes:6a33e6ec-656e-4033-95c2-b08ff3efde07:localhost]

2019-11-27 21:06:16 | [Mutex] received everything.

2019-11-27 21:06:16 | [Mutex] isItemNotified: received:node:6a33e6ec-656e-4033-95c2-b08ff3efde07:localhost:node-00a51bcc-1581-4151-b44d-8941b30ebd78:Node 00a51bcc-1581-4151-b44d-8941b30ebd78 :: false

createNodes 1.794s
2019-11-27 21:06:12 |

2019-11-27 21:06:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:12 | ------------------------------------

2019-11-27 21:06:12 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 00a51bcc-1581-4151-b44d-8941b30ebd78</title></pubsub></data>

2019-11-27 21:06:13 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 21:06:14 | [Mutex] waiting for: [received:nodes:a2815814-cf02-4a1a-8919-9e80bcc18639:localhost]

2019-11-27 21:06:14 | [Mutex] received everything.

2019-11-27 21:06:14 | [Mutex] isItemNotified: received:node:a2815814-cf02-4a1a-8919-9e80bcc18639:localhost:node-00a51bcc-1581-4151-b44d-8941b30ebd78:Node 00a51bcc-1581-4151-b44d-8941b30ebd78 :: true

createSubnodes 1.049s
2019-11-27 21:06:14 |

2019-11-27 21:06:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:14 | ------------------------------------

2019-11-27 21:06:14 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-60434787-1769-44d7-9c9d-f903b6a12e2f</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 60434787-1769-44d7-9c9d-f903b6a12e2f</title></pubsub></data>

2019-11-27 21:06:14 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 21:06:15 | [Mutex] waiting for: [received:nodes:5d1ddc6f-f0a8-41d1-a18f-34af000f43dd:localhost]

2019-11-27 21:06:15 | [Mutex] received everything.

2019-11-27 21:06:15 | [Mutex] isItemNotified: received:node:5d1ddc6f-f0a8-41d1-a18f-34af000f43dd:localhost:node-60434787-1769-44d7-9c9d-f903b6a12e2f:Node 60434787-1769-44d7-9c9d-f903b6a12e2f :: true

deleteNodes 1.029s
2019-11-27 21:06:20 |

2019-11-27 21:06:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:20 | ------------------------------------

2019-11-27 21:06:20 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-60434787-1769-44d7-9c9d-f903b6a12e2f</node></data>

2019-11-27 21:06:20 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 21:06:21 | [Mutex] waiting for: [received:nodes:8a85d8ad-f18c-4e87-ab40-a39ad93f8319:localhost]

2019-11-27 21:06:21 | [Mutex] received everything.

2019-11-27 21:06:21 | [Mutex] isItemNotified: received:node:8a85d8ad-f18c-4e87-ab40-a39ad93f8319:localhost:node-60434787-1769-44d7-9c9d-f903b6a12e2f:Node 60434787-1769-44d7-9c9d-f903b6a12e2f :: false

deleteSubnodes 1.134s
2019-11-27 21:06:19 |

2019-11-27 21:06:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:19 | ------------------------------------

2019-11-27 21:06:19 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node></data>

2019-11-27 21:06:19 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-27 21:06:20 | [Mutex] waiting for: [received:nodes:eaf205c2-9d40-456a-a5d3-2af981dcd3cb:localhost]

2019-11-27 21:06:20 | [Mutex] received everything.

2019-11-27 21:06:20 | [Mutex] isItemNotified: received:node:eaf205c2-9d40-456a-a5d3-2af981dcd3cb:localhost:node-00a51bcc-1581-4151-b44d-8941b30ebd78:Node 00a51bcc-1581-4151-b44d-8941b30ebd78 :: false

2019-11-27 21:06:20 | [Mutex] waiting for: [received:nodes:9ef0068e-5cab-44a0-825d-ca82ad3b69d5:localhost]

2019-11-27 21:06:20 | [Mutex] received everything.

2019-11-27 21:06:20 | [Mutex] isItemNotified: received:node:9ef0068e-5cab-44a0-825d-ca82ad3b69d5:localhost:node-00a51bcc-1581-4151-b44d-8941b30ebd78:Node 00a51bcc-1581-4151-b44d-8941b30ebd78 :: false

publishItemsToNodes 0.287s
2019-11-27 21:06:17 |

2019-11-27 21:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:17 | ------------------------------------

2019-11-27 21:06:17 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node><item-id>item-bb37129c-05c0-4e89-a989-202c451a77d4</item-id><entry><test>item-bb37129c-05c0-4e89-a989-202c451a77d4</test></entry></data>

2019-11-27 21:06:17 | 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-bb37129c-05c0-4e89-a989-202c451a77d4</value></item-id></result>

2019-11-27 21:06:17 | [Mutex] waiting for: [published:item:notifieditem-bb37129c-05c0-4e89-a989-202c451a77d4:admin@localhost]

2019-11-27 21:06:17 | [Mutex] received everything.

2019-11-27 21:06:17 | [Mutex] isItemNotified: published:item:notifieditem-bb37129c-05c0-4e89-a989-202c451a77d4:admin@localhost :: true

retractItemsFromNodes 0.195s
2019-11-27 21:06:18 |

2019-11-27 21:06:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:18 | ------------------------------------

2019-11-27 21:06:18 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node><item-id>item-bb37129c-05c0-4e89-a989-202c451a77d4</item-id></data>

2019-11-27 21:06:18 | 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-bb37129c-05c0-4e89-a989-202c451a77d4</value></item-id></result>

2019-11-27 21:06:18 | [Mutex] received everything.

2019-11-27 21:06:18 | [Mutex] isItemNotified: retracted:item:notifieditem-bb37129c-05c0-4e89-a989-202c451a77d4:admin@localhost :: true

retrieveItemsFromNodes 0.209s
2019-11-27 21:06:17 |

2019-11-27 21:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:17 | ------------------------------------

2019-11-27 21:06:17 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node><item-id>item-bb37129c-05c0-4e89-a989-202c451a77d4</item-id></data>

2019-11-27 21:06:17 | 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-00a51bcc-1581-4151-b44d-8941b30ebd78</value></node><item-id label="Item ID" type="text-single"><value>item-bb37129c-05c0-4e89-a989-202c451a77d4</value></item-id><item label="Item" type="text-multi"><value><item id="item-bb37129c-05c0-4e89-a989-202c451a77d4"><test>item-bb37129c-05c0-4e89-a989-202c451a77d4</test></item></value></item></result>

2019-11-27 21:06:17 | [Mutex] notify: [retrieved:item:item-bb37129c-05c0-4e89-a989-202c451a77d4:payload-matches:true:localhost]

2019-11-27 21:06:17 | [Mutex] received everything.

2019-11-27 21:06:17 | [Mutex] isItemNotified: retrieved:item:item-bb37129c-05c0-4e89-a989-202c451a77d4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.186s
2019-11-27 21:06:17 |

2019-11-27 21:06:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:17 | ------------------------------------

2019-11-27 21:06:17 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-11-27 21:06:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-60434787-1769-44d7-9c9d-f903b6a12e2f</value><value>node-00a51bcc-1581-4151-b44d-8941b30ebd78</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.064s
2019-11-27 21:06:18 |

2019-11-27 21:06:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:18 | ------------------------------------

2019-11-27 21:06:18 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-00a51bcc-1581-4151-b44d-8941b30ebd78)</node-pattern></data>

2019-11-27 21:06:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.138s
2019-11-27 21:06:16 |

2019-11-27 21:06:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:16 | ------------------------------------

2019-11-27 21:06:16 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node><jids><value>admin@localhost</value></jids></data>

2019-11-27 21:06:16 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.219s
2019-11-27 21:06:18 |

2019-11-27 21:06:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-27 21:06:18 | ------------------------------------

2019-11-27 21:06:18 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-00a51bcc-1581-4151-b44d-8941b30ebd78</node><jids><value>admin@localhost</value></jids></data>

2019-11-27 21:06:18 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>