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

Test duration: 10.326s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.113s
2019-12-03 20:43:36 |

2019-12-03 20:43:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:36 | ------------------------------------

2019-12-03 20:43:36 | [Mutex] waiting for: [configured:node:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:node-c1e712db-098c-4c12-ab87-d43f00857d66]

2019-12-03 20:43:36 | [Mutex] received everything.

2019-12-03 20:43:36 | [Mutex] isItemNotified: configured:node:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:node-c1e712db-098c-4c12-ab87-d43f00857d66 :: true

2019-12-03 20:43:37 | [Mutex] waiting for: [received:nodes:e83b2c38-87c2-49c1-b8a5-f2f8402b7ccb:localhost]

2019-12-03 20:43:37 | [Mutex] received everything.

2019-12-03 20:43:37 | [Mutex] isItemNotified: received:node:e83b2c38-87c2-49c1-b8a5-f2f8402b7ccb:localhost:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:Node ae28f4b1-c04f-48aa-8641-cff7dd01c02b :: true

2019-12-03 20:43:37 | [Mutex] waiting for: [received:nodes:ba1afed8-041c-4040-be25-0addf1054283:localhost]

2019-12-03 20:43:37 | [Mutex] received everything.

2019-12-03 20:43:37 | [Mutex] isItemNotified: received:node:ba1afed8-041c-4040-be25-0addf1054283:localhost:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:Node ae28f4b1-c04f-48aa-8641-cff7dd01c02b :: false

createNodes 1.769s
2019-12-03 20:43:33 |

2019-12-03 20:43:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:33 | ------------------------------------

2019-12-03 20:43:33 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node ae28f4b1-c04f-48aa-8641-cff7dd01c02b</title></pubsub></data>

2019-12-03 20:43:34 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-12-03 20:43:35 | [Mutex] waiting for: [received:nodes:27456bb2-ce0e-47e9-9fde-032603c550bf:localhost]

2019-12-03 20:43:35 | [Mutex] received everything.

2019-12-03 20:43:35 | [Mutex] isItemNotified: received:node:27456bb2-ce0e-47e9-9fde-032603c550bf:localhost:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:Node ae28f4b1-c04f-48aa-8641-cff7dd01c02b :: true

createSubnodes 1.030s
2019-12-03 20:43:35 |

2019-12-03 20:43:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:35 | ------------------------------------

2019-12-03 20:43:35 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-c1e712db-098c-4c12-ab87-d43f00857d66</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node c1e712db-098c-4c12-ab87-d43f00857d66</title></pubsub></data>

2019-12-03 20:43:35 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-12-03 20:43:36 | [Mutex] waiting for: [received:nodes:64304c4c-4ef9-47e5-ad0e-baf1168abb3d:localhost]

2019-12-03 20:43:36 | [Mutex] received everything.

2019-12-03 20:43:36 | [Mutex] isItemNotified: received:node:64304c4c-4ef9-47e5-ad0e-baf1168abb3d:localhost:node-c1e712db-098c-4c12-ab87-d43f00857d66:Node c1e712db-098c-4c12-ab87-d43f00857d66 :: true

deleteNodes 1.020s
2019-12-03 20:43:42 |

2019-12-03 20:43:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:42 | ------------------------------------

2019-12-03 20:43:42 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-c1e712db-098c-4c12-ab87-d43f00857d66</node></data>

2019-12-03 20:43:42 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-12-03 20:43:43 | [Mutex] waiting for: [received:nodes:1ab4524b-9011-4b7c-b2e7-347596ef39cd:localhost]

2019-12-03 20:43:43 | [Mutex] received everything.

2019-12-03 20:43:43 | [Mutex] isItemNotified: received:node:1ab4524b-9011-4b7c-b2e7-347596ef39cd:localhost:node-c1e712db-098c-4c12-ab87-d43f00857d66:Node c1e712db-098c-4c12-ab87-d43f00857d66 :: false

deleteSubnodes 1.205s
2019-12-03 20:43:41 |

2019-12-03 20:43:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:41 | ------------------------------------

2019-12-03 20:43:41 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node></data>

2019-12-03 20:43:41 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-12-03 20:43:42 | [Mutex] waiting for: [received:nodes:1ff8ce48-9088-4104-9cca-2da562b31f05:localhost]

2019-12-03 20:43:42 | [Mutex] received everything.

2019-12-03 20:43:42 | [Mutex] isItemNotified: received:node:1ff8ce48-9088-4104-9cca-2da562b31f05:localhost:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:Node ae28f4b1-c04f-48aa-8641-cff7dd01c02b :: false

2019-12-03 20:43:42 | [Mutex] waiting for: [received:nodes:09067112-895d-4bff-a0ca-cb359447d879:localhost]

2019-12-03 20:43:42 | [Mutex] received everything.

2019-12-03 20:43:42 | [Mutex] isItemNotified: received:node:09067112-895d-4bff-a0ca-cb359447d879:localhost:node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b:Node ae28f4b1-c04f-48aa-8641-cff7dd01c02b :: false

publishItemsToNodes 0.244s
2019-12-03 20:43:38 |

2019-12-03 20:43:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:38 | ------------------------------------

2019-12-03 20:43:38 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node><item-id>item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</item-id><entry><test>item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</test></entry></data>

2019-12-03 20:43:39 | 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-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</value></item-id></result>

2019-12-03 20:43:39 | [Mutex] waiting for: [published:item:notifieditem-0b2546ee-b5bc-47ba-94d4-3556cdb08bca:admin@localhost]

2019-12-03 20:43:39 | [Mutex] received everything.

2019-12-03 20:43:39 | [Mutex] isItemNotified: published:item:notifieditem-0b2546ee-b5bc-47ba-94d4-3556cdb08bca:admin@localhost :: true

retractItemsFromNodes 0.249s
2019-12-03 20:43:39 |

2019-12-03 20:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:39 | ------------------------------------

2019-12-03 20:43:39 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node><item-id>item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</item-id></data>

2019-12-03 20:43:39 | 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-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</value></item-id></result>

2019-12-03 20:43:39 | [Mutex] received everything.

2019-12-03 20:43:39 | [Mutex] isItemNotified: retracted:item:notifieditem-0b2546ee-b5bc-47ba-94d4-3556cdb08bca:admin@localhost :: true

retrieveItemsFromNodes 0.110s
2019-12-03 20:43:39 |

2019-12-03 20:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:39 | ------------------------------------

2019-12-03 20:43:39 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node><item-id>item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</item-id></data>

2019-12-03 20:43:39 | 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-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</value></node><item-id label="Item ID" type="text-single"><value>item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</value></item-id><item label="Item" type="text-multi"><value><item id="item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca"><test>item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca</test></item></value></item></result>

2019-12-03 20:43:39 | [Mutex] notify: [retrieved:item:item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca:payload-matches:true:localhost]

2019-12-03 20:43:39 | [Mutex] received everything.

2019-12-03 20:43:39 | [Mutex] isItemNotified: retrieved:item:item-0b2546ee-b5bc-47ba-94d4-3556cdb08bca:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.239s
2019-12-03 20:43:39 |

2019-12-03 20:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:39 | ------------------------------------

2019-12-03 20:43:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-12-03 20:43:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</value><value>node-c1e712db-098c-4c12-ab87-d43f00857d66</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2019-12-03 20:43:39 |

2019-12-03 20:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:39 | ------------------------------------

2019-12-03 20:43:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b)</node-pattern></data>

2019-12-03 20:43:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.177s
2019-12-03 20:43:37 |

2019-12-03 20:43:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:37 | ------------------------------------

2019-12-03 20:43:37 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node><jids><value>admin@localhost</value></jids></data>

2019-12-03 20:43:37 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.305s
2019-12-03 20:43:39 |

2019-12-03 20:43:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-12-03 20:43:39 | ------------------------------------

2019-12-03 20:43:39 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-ae28f4b1-c04f-48aa-8641-cff7dd01c02b</node><jids><value>admin@localhost</value></jids></data>

2019-12-03 20:43:40 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>