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

Test duration: 10.111s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.116s
2020-05-19 17:43:18 |

2020-05-19 17:43:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:18 | ------------------------------------

2020-05-19 17:43:18 | [Mutex] waiting for: [configured:node:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:node-db28f720-0ee3-496a-8e3b-9c954c1c4432]

2020-05-19 17:43:18 | [Mutex] received everything.

2020-05-19 17:43:18 | [Mutex] isItemNotified: configured:node:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:node-db28f720-0ee3-496a-8e3b-9c954c1c4432 :: true

2020-05-19 17:43:19 | [Mutex] waiting for: [received:nodes:5fc1bf74-61db-4b3f-a860-93d010771600:localhost]

2020-05-19 17:43:19 | [Mutex] received everything.

2020-05-19 17:43:19 | [Mutex] isItemNotified: received:node:5fc1bf74-61db-4b3f-a860-93d010771600:localhost:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:Node bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b :: true

2020-05-19 17:43:19 | [Mutex] waiting for: [received:nodes:fd953ed4-0aaa-41a5-8075-5041debe1f40:localhost]

2020-05-19 17:43:19 | [Mutex] received everything.

2020-05-19 17:43:19 | [Mutex] isItemNotified: received:node:fd953ed4-0aaa-41a5-8075-5041debe1f40:localhost:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:Node bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b :: false

createNodes 1.635s
2020-05-19 17:43:16 |

2020-05-19 17:43:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:16 | ------------------------------------

2020-05-19 17:43:16 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</title></pubsub></data>

2020-05-19 17:43:16 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-19 17:43:17 | [Mutex] waiting for: [received:nodes:65d96ae2-ab81-472d-884c-c3202d958dda:localhost]

2020-05-19 17:43:17 | [Mutex] received everything.

2020-05-19 17:43:17 | [Mutex] isItemNotified: received:node:65d96ae2-ab81-472d-884c-c3202d958dda:localhost:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:Node bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b :: true

createSubnodes 1.021s
2020-05-19 17:43:17 |

2020-05-19 17:43:17 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:17 | ------------------------------------

2020-05-19 17:43:17 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-db28f720-0ee3-496a-8e3b-9c954c1c4432</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node db28f720-0ee3-496a-8e3b-9c954c1c4432</title></pubsub></data>

2020-05-19 17:43:17 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-19 17:43:18 | [Mutex] waiting for: [received:nodes:067dd0c7-e8e1-4c89-ab0e-777bafc73db6:localhost]

2020-05-19 17:43:18 | [Mutex] received everything.

2020-05-19 17:43:18 | [Mutex] isItemNotified: received:node:067dd0c7-e8e1-4c89-ab0e-777bafc73db6:localhost:node-db28f720-0ee3-496a-8e3b-9c954c1c4432:Node db28f720-0ee3-496a-8e3b-9c954c1c4432 :: true

deleteNodes 1.018s
2020-05-19 17:43:24 |

2020-05-19 17:43:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:24 | ------------------------------------

2020-05-19 17:43:24 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-db28f720-0ee3-496a-8e3b-9c954c1c4432</node></data>

2020-05-19 17:43:24 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-19 17:43:25 | [Mutex] waiting for: [received:nodes:e888b4fb-cc77-444a-817c-abd6a3f7d1b9:localhost]

2020-05-19 17:43:25 | [Mutex] received everything.

2020-05-19 17:43:25 | [Mutex] isItemNotified: received:node:e888b4fb-cc77-444a-817c-abd6a3f7d1b9:localhost:node-db28f720-0ee3-496a-8e3b-9c954c1c4432:Node db28f720-0ee3-496a-8e3b-9c954c1c4432 :: false

deleteSubnodes 1.115s
2020-05-19 17:43:23 |

2020-05-19 17:43:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:23 | ------------------------------------

2020-05-19 17:43:23 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node></data>

2020-05-19 17:43:23 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-19 17:43:24 | [Mutex] waiting for: [received:nodes:4f32643a-7157-4cd6-b889-b99024ecdbca:localhost]

2020-05-19 17:43:24 | [Mutex] waiting for: [received:nodes:4f32643a-7157-4cd6-b889-b99024ecdbca:localhost]

2020-05-19 17:43:24 | [Mutex] received everything.

2020-05-19 17:43:24 | [Mutex] isItemNotified: received:node:4f32643a-7157-4cd6-b889-b99024ecdbca:localhost:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:Node bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b :: false

2020-05-19 17:43:24 | [Mutex] waiting for: [received:nodes:25bdb304-6ccf-4972-9dbd-f83709730900:localhost]

2020-05-19 17:43:24 | [Mutex] received everything.

2020-05-19 17:43:24 | [Mutex] isItemNotified: received:node:25bdb304-6ccf-4972-9dbd-f83709730900:localhost:node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b:Node bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b :: false

publishItemsToNodes 0.191s
2020-05-19 17:43:21 |

2020-05-19 17:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:21 | ------------------------------------

2020-05-19 17:43:21 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node><item-id>item-5c7dd249-97cb-49f2-bb9e-14a496311374</item-id><entry><test>item-5c7dd249-97cb-49f2-bb9e-14a496311374</test></entry></data>

2020-05-19 17:43:21 | 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-5c7dd249-97cb-49f2-bb9e-14a496311374</value></item-id></result>

2020-05-19 17:43:21 | [Mutex] waiting for: [published:item:notifieditem-5c7dd249-97cb-49f2-bb9e-14a496311374:admin@localhost]

2020-05-19 17:43:21 | [Mutex] received everything.

2020-05-19 17:43:21 | [Mutex] isItemNotified: published:item:notifieditem-5c7dd249-97cb-49f2-bb9e-14a496311374:admin@localhost :: true

retractItemsFromNodes 0.204s
2020-05-19 17:43:21 |

2020-05-19 17:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:21 | ------------------------------------

2020-05-19 17:43:21 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node><item-id>item-5c7dd249-97cb-49f2-bb9e-14a496311374</item-id></data>

2020-05-19 17:43:22 | 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-5c7dd249-97cb-49f2-bb9e-14a496311374</value></item-id></result>

2020-05-19 17:43:22 | [Mutex] received everything.

2020-05-19 17:43:22 | [Mutex] isItemNotified: retracted:item:notifieditem-5c7dd249-97cb-49f2-bb9e-14a496311374:admin@localhost :: true

retrieveItemsFromNodes 0.191s
2020-05-19 17:43:21 |

2020-05-19 17:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:21 | ------------------------------------

2020-05-19 17:43:21 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node><item-id>item-5c7dd249-97cb-49f2-bb9e-14a496311374</item-id></data>

2020-05-19 17:43:21 | 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-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</value></node><item-id label="Item ID" type="text-single"><value>item-5c7dd249-97cb-49f2-bb9e-14a496311374</value></item-id><item label="Item" type="text-multi"><value><item id="item-5c7dd249-97cb-49f2-bb9e-14a496311374"><test>item-5c7dd249-97cb-49f2-bb9e-14a496311374</test></item></value></item></result>

2020-05-19 17:43:21 | [Mutex] notify: [retrieved:item:item-5c7dd249-97cb-49f2-bb9e-14a496311374:payload-matches:true:localhost]

2020-05-19 17:43:21 | [Mutex] received everything.

2020-05-19 17:43:21 | [Mutex] isItemNotified: retrieved:item:item-5c7dd249-97cb-49f2-bb9e-14a496311374:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.280s
2020-05-19 17:43:21 |

2020-05-19 17:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:21 | ------------------------------------

2020-05-19 17:43:21 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-05-19 17:43:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</value><value>node-db28f720-0ee3-496a-8e3b-9c954c1c4432</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.059s
2020-05-19 17:43:21 |

2020-05-19 17:43:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:21 | ------------------------------------

2020-05-19 17:43:21 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b)</node-pattern></data>

2020-05-19 17:43:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.103s
2020-05-19 17:43:19 |

2020-05-19 17:43:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:19 | ------------------------------------

2020-05-19 17:43:19 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node><jids><value>admin@localhost</value></jids></data>

2020-05-19 17:43:20 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.216s
2020-05-19 17:43:22 |

2020-05-19 17:43:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-19 17:43:22 | ------------------------------------

2020-05-19 17:43:22 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-bcf12b2c-3f2d-43f7-89b8-172fb5e4ac5b</node><jids><value>admin@localhost</value></jids></data>

2020-05-19 17:43:22 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>