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

Test duration: 10.580s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.126s
2019-11-21 05:26:09 |

2019-11-21 05:26:09 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:09 | ------------------------------------

2019-11-21 05:26:09 | [Mutex] waiting for: [configured:node:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:node-8ee65964-507e-4bce-89a5-1ed2f46f2290]

2019-11-21 05:26:09 | [Mutex] received everything.

2019-11-21 05:26:09 | [Mutex] isItemNotified: configured:node:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:node-8ee65964-507e-4bce-89a5-1ed2f46f2290 :: true

2019-11-21 05:26:10 | [Mutex] waiting for: [received:nodes:5a1fda61-3dd2-4f50-bc2e-a9eaccd5d3d7:localhost]

2019-11-21 05:26:11 | [Mutex] received everything.

2019-11-21 05:26:11 | [Mutex] isItemNotified: received:node:5a1fda61-3dd2-4f50-bc2e-a9eaccd5d3d7:localhost:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:Node a5bfd068-5b6d-47f4-b52d-248211df4e0e :: true

2019-11-21 05:26:11 | [Mutex] waiting for: [received:nodes:f00fcc98-2d98-45fe-9192-a4e5737921c6:localhost]

2019-11-21 05:26:11 | [Mutex] received everything.

2019-11-21 05:26:11 | [Mutex] isItemNotified: received:node:f00fcc98-2d98-45fe-9192-a4e5737921c6:localhost:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:Node a5bfd068-5b6d-47f4-b52d-248211df4e0e :: false

createNodes 1.583s
2019-11-21 05:26:07 |

2019-11-21 05:26:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:07 | ------------------------------------

2019-11-21 05:26:07 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node a5bfd068-5b6d-47f4-b52d-248211df4e0e</title></pubsub></data>

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

2019-11-21 05:26:08 | [Mutex] waiting for: [received:nodes:9240ebd9-8388-46fc-bb10-9d09fb903d18:localhost]

2019-11-21 05:26:08 | [Mutex] received everything.

2019-11-21 05:26:08 | [Mutex] isItemNotified: received:node:9240ebd9-8388-46fc-bb10-9d09fb903d18:localhost:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:Node a5bfd068-5b6d-47f4-b52d-248211df4e0e :: true

createSubnodes 1.032s
2019-11-21 05:26:08 |

2019-11-21 05:26:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:08 | ------------------------------------

2019-11-21 05:26:08 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-8ee65964-507e-4bce-89a5-1ed2f46f2290</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 8ee65964-507e-4bce-89a5-1ed2f46f2290</title></pubsub></data>

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

2019-11-21 05:26:09 | [Mutex] waiting for: [received:nodes:d8fd126d-33a6-4dbd-b32b-3a501de4cf6a:localhost]

2019-11-21 05:26:09 | [Mutex] received everything.

2019-11-21 05:26:09 | [Mutex] isItemNotified: received:node:d8fd126d-33a6-4dbd-b32b-3a501de4cf6a:localhost:node-8ee65964-507e-4bce-89a5-1ed2f46f2290:Node 8ee65964-507e-4bce-89a5-1ed2f46f2290 :: true

deleteNodes 1.026s
2019-11-21 05:26:16 |

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

2019-11-21 05:26:16 | ------------------------------------

2019-11-21 05:26:16 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-8ee65964-507e-4bce-89a5-1ed2f46f2290</node></data>

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

2019-11-21 05:26:17 | [Mutex] waiting for: [received:nodes:ec149f72-b424-4719-a1dc-3473e6e8d0af:localhost]

2019-11-21 05:26:17 | [Mutex] received everything.

2019-11-21 05:26:17 | [Mutex] isItemNotified: received:node:ec149f72-b424-4719-a1dc-3473e6e8d0af:localhost:node-8ee65964-507e-4bce-89a5-1ed2f46f2290:Node 8ee65964-507e-4bce-89a5-1ed2f46f2290 :: false

deleteSubnodes 1.191s
2019-11-21 05:26:14 |

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

2019-11-21 05:26:14 | ------------------------------------

2019-11-21 05:26:14 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node></data>

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

2019-11-21 05:26:15 | [Mutex] waiting for: [received:nodes:c9561a92-dba1-4775-9777-b88f5d943538:localhost]

2019-11-21 05:26:16 | [Mutex] waiting for: [received:nodes:c9561a92-dba1-4775-9777-b88f5d943538:localhost]

2019-11-21 05:26:16 | [Mutex] received everything.

2019-11-21 05:26:16 | [Mutex] isItemNotified: received:node:c9561a92-dba1-4775-9777-b88f5d943538:localhost:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:Node a5bfd068-5b6d-47f4-b52d-248211df4e0e :: false

2019-11-21 05:26:16 | [Mutex] waiting for: [received:nodes:56e60899-7889-4664-9b07-59f1a1be6d24:localhost]

2019-11-21 05:26:16 | [Mutex] received everything.

2019-11-21 05:26:16 | [Mutex] isItemNotified: received:node:56e60899-7889-4664-9b07-59f1a1be6d24:localhost:node-a5bfd068-5b6d-47f4-b52d-248211df4e0e:Node a5bfd068-5b6d-47f4-b52d-248211df4e0e :: false

publishItemsToNodes 0.327s
2019-11-21 05:26:12 |

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

2019-11-21 05:26:12 | ------------------------------------

2019-11-21 05:26:12 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node><item-id>item-c93fcb05-5275-4d68-acb3-ec00ed947475</item-id><entry><test>item-c93fcb05-5275-4d68-acb3-ec00ed947475</test></entry></data>

2019-11-21 05:26:12 | 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-c93fcb05-5275-4d68-acb3-ec00ed947475</value></item-id></result>

2019-11-21 05:26:12 | [Mutex] waiting for: [published:item:notifieditem-c93fcb05-5275-4d68-acb3-ec00ed947475:admin@localhost]

2019-11-21 05:26:12 | [Mutex] received everything.

2019-11-21 05:26:12 | [Mutex] isItemNotified: published:item:notifieditem-c93fcb05-5275-4d68-acb3-ec00ed947475:admin@localhost :: true

retractItemsFromNodes 0.385s
2019-11-21 05:26:13 |

2019-11-21 05:26:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:13 | ------------------------------------

2019-11-21 05:26:13 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node><item-id>item-c93fcb05-5275-4d68-acb3-ec00ed947475</item-id></data>

2019-11-21 05:26:13 | 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-c93fcb05-5275-4d68-acb3-ec00ed947475</value></item-id></result>

2019-11-21 05:26:13 | [Mutex] received everything.

2019-11-21 05:26:13 | [Mutex] isItemNotified: retracted:item:notifieditem-c93fcb05-5275-4d68-acb3-ec00ed947475:admin@localhost :: true

retrieveItemsFromNodes 0.269s
2019-11-21 05:26:12 |

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

2019-11-21 05:26:12 | ------------------------------------

2019-11-21 05:26:12 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node><item-id>item-c93fcb05-5275-4d68-acb3-ec00ed947475</item-id></data>

2019-11-21 05:26:12 | 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-a5bfd068-5b6d-47f4-b52d-248211df4e0e</value></node><item-id label="Item ID" type="text-single"><value>item-c93fcb05-5275-4d68-acb3-ec00ed947475</value></item-id><item label="Item" type="text-multi"><value><item id="item-c93fcb05-5275-4d68-acb3-ec00ed947475"><test>item-c93fcb05-5275-4d68-acb3-ec00ed947475</test></item></value></item></result>

2019-11-21 05:26:12 | [Mutex] notify: [retrieved:item:item-c93fcb05-5275-4d68-acb3-ec00ed947475:payload-matches:true:localhost]

2019-11-21 05:26:12 | [Mutex] received everything.

2019-11-21 05:26:12 | [Mutex] isItemNotified: retrieved:item:item-c93fcb05-5275-4d68-acb3-ec00ed947475:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.304s
2019-11-21 05:26:12 |

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

2019-11-21 05:26:12 | ------------------------------------

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

2019-11-21 05:26:13 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</value><value>node-8ee65964-507e-4bce-89a5-1ed2f46f2290</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.059s
2019-11-21 05:26:13 |

2019-11-21 05:26:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:13 | ------------------------------------

2019-11-21 05:26:13 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-a5bfd068-5b6d-47f4-b52d-248211df4e0e)</node-pattern></data>

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

subscribeNodes 1.169s
2019-11-21 05:26:11 |

2019-11-21 05:26:11 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:11 | ------------------------------------

2019-11-21 05:26:11 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.288s
2019-11-21 05:26:13 |

2019-11-21 05:26:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 05:26:13 | ------------------------------------

2019-11-21 05:26:13 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-a5bfd068-5b6d-47f4-b52d-248211df4e0e</node><jids><value>admin@localhost</value></jids></data>

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