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

Test duration: 7.883s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.031s
2019-03-02 14:44:40 |

2019-03-02 14:44:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:40 | ------------------------------------

2019-03-02 14:44:40 | [Mutex] waiting for: [configured:node:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5]

2019-03-02 14:44:40 | [Mutex] received everything.

2019-03-02 14:44:40 | [Mutex] isItemNotified: configured:node:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5 :: true

2019-03-02 14:44:41 | [Mutex] waiting for: [received:nodes:e214bf3d-8347-4ab3-82c8-8aeb0f918653:localhost]

2019-03-02 14:44:41 | [Mutex] received everything.

2019-03-02 14:44:41 | [Mutex] isItemNotified: received:node:e214bf3d-8347-4ab3-82c8-8aeb0f918653:localhost:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:Node 76f67b7a-3920-4481-8f9a-180ee953c1fb :: true

2019-03-02 14:44:41 | [Mutex] waiting for: [received:nodes:98cb44b6-da94-4b49-b31a-bc9d987248f2:localhost]

2019-03-02 14:44:41 | [Mutex] waiting for: [received:nodes:98cb44b6-da94-4b49-b31a-bc9d987248f2:localhost]

2019-03-02 14:44:41 | [Mutex] received everything.

2019-03-02 14:44:41 | [Mutex] isItemNotified: received:node:98cb44b6-da94-4b49-b31a-bc9d987248f2:localhost:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:Node 76f67b7a-3920-4481-8f9a-180ee953c1fb :: false

createNodes 1.222s
2019-03-02 14:44:38 |

2019-03-02 14:44:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:38 | ------------------------------------

2019-03-02 14:44:38 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 76f67b7a-3920-4481-8f9a-180ee953c1fb</title></pubsub></data>

2019-03-02 14:44:38 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-03-02 14:44:39 | [Mutex] waiting for: [received:nodes:9ea0960d-86a0-413a-93ef-81c20d8cc025:localhost]

2019-03-02 14:44:39 | [Mutex] received everything.

2019-03-02 14:44:39 | [Mutex] isItemNotified: received:node:9ea0960d-86a0-413a-93ef-81c20d8cc025:localhost:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:Node 76f67b7a-3920-4481-8f9a-180ee953c1fb :: true

createSubnodes 1.025s
2019-03-02 14:44:39 |

2019-03-02 14:44:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:39 | ------------------------------------

2019-03-02 14:44:39 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5</title></pubsub></data>

2019-03-02 14:44:39 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-03-02 14:44:40 | [Mutex] received everything.

2019-03-02 14:44:40 | [Mutex] isItemNotified: received:node:f40108a0-0e5f-4594-ab78-29c415111ce1:localhost:node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5:Node 7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5 :: true

deleteNodes 1.025s
2019-03-02 14:44:44 |

2019-03-02 14:44:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:44 | ------------------------------------

2019-03-02 14:44:44 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5</node></data>

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

2019-03-02 14:44:45 | [Mutex] waiting for: [received:nodes:b965e768-66e5-438b-b8df-63f1f08ba21c:localhost]

2019-03-02 14:44:45 | [Mutex] received everything.

2019-03-02 14:44:45 | [Mutex] isItemNotified: received:node:b965e768-66e5-438b-b8df-63f1f08ba21c:localhost:node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5:Node 7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5 :: false

deleteSubnodes 1.029s
2019-03-02 14:44:43 |

2019-03-02 14:44:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:43 | ------------------------------------

2019-03-02 14:44:43 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node></data>

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

2019-03-02 14:44:44 | [Mutex] waiting for: [received:nodes:44f87a4a-5d7a-4324-9d82-82311dc0311e:localhost]

2019-03-02 14:44:44 | [Mutex] received everything.

2019-03-02 14:44:44 | [Mutex] isItemNotified: received:node:44f87a4a-5d7a-4324-9d82-82311dc0311e:localhost:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:Node 76f67b7a-3920-4481-8f9a-180ee953c1fb :: false

2019-03-02 14:44:44 | [Mutex] waiting for: [received:nodes:2c7681b5-0cb4-4ac4-8f4d-55798424b55c:localhost]

2019-03-02 14:44:44 | [Mutex] received everything.

2019-03-02 14:44:44 | [Mutex] isItemNotified: received:node:2c7681b5-0cb4-4ac4-8f4d-55798424b55c:localhost:node-76f67b7a-3920-4481-8f9a-180ee953c1fb:Node 76f67b7a-3920-4481-8f9a-180ee953c1fb :: false

publishItemsToNodes 0.030s
2019-03-02 14:44:42 |

2019-03-02 14:44:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:42 | ------------------------------------

2019-03-02 14:44:42 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node><item-id>item-639a3702-cec4-46e9-aafe-cf7c40d3df86</item-id><entry><test>item-639a3702-cec4-46e9-aafe-cf7c40d3df86</test></entry></data>

2019-03-02 14:44:42 | 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-639a3702-cec4-46e9-aafe-cf7c40d3df86</value></item-id></result>

2019-03-02 14:44:42 | [Mutex] received everything.

2019-03-02 14:44:42 | [Mutex] isItemNotified: published:item:notifieditem-639a3702-cec4-46e9-aafe-cf7c40d3df86:admin@localhost :: true

retractItemsFromNodes 0.027s
2019-03-02 14:44:42 |

2019-03-02 14:44:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:42 | ------------------------------------

2019-03-02 14:44:42 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node><item-id>item-639a3702-cec4-46e9-aafe-cf7c40d3df86</item-id></data>

2019-03-02 14:44:42 | 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-639a3702-cec4-46e9-aafe-cf7c40d3df86</value></item-id></result>

2019-03-02 14:44:42 | [Mutex] waiting for: [retracted:item:notifieditem-639a3702-cec4-46e9-aafe-cf7c40d3df86:admin@localhost]

2019-03-02 14:44:42 | [Mutex] received everything.

2019-03-02 14:44:42 | [Mutex] isItemNotified: retracted:item:notifieditem-639a3702-cec4-46e9-aafe-cf7c40d3df86:admin@localhost :: true

retrieveItemsFromNodes 0.026s
2019-03-02 14:44:42 |

2019-03-02 14:44:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:42 | ------------------------------------

2019-03-02 14:44:42 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node><item-id>item-639a3702-cec4-46e9-aafe-cf7c40d3df86</item-id></data>

2019-03-02 14:44:42 | 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-76f67b7a-3920-4481-8f9a-180ee953c1fb</value></node><item-id label="Item ID" type="text-single"><value>item-639a3702-cec4-46e9-aafe-cf7c40d3df86</value></item-id><item label="Item" type="text-multi"><value><item id="item-639a3702-cec4-46e9-aafe-cf7c40d3df86"><test>item-639a3702-cec4-46e9-aafe-cf7c40d3df86</test></item></value></item></result>

2019-03-02 14:44:42 | [Mutex] notify: [retrieved:item:item-639a3702-cec4-46e9-aafe-cf7c40d3df86:payload-matches:true:localhost]

2019-03-02 14:44:42 | [Mutex] received everything.

2019-03-02 14:44:42 | [Mutex] isItemNotified: retrieved:item:item-639a3702-cec4-46e9-aafe-cf7c40d3df86:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.017s
2019-03-02 14:44:42 |

2019-03-02 14:44:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:42 | ------------------------------------

2019-03-02 14:44:42 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-03-02 14:44:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>test</value><value>node-7134d8ac-1bb8-4718-86ae-0d2d5dcfcde5</value><value>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.014s
2019-03-02 14:44:42 |

2019-03-02 14:44:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:42 | ------------------------------------

2019-03-02 14:44:42 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-76f67b7a-3920-4481-8f9a-180ee953c1fb)</node-pattern></data>

2019-03-02 14:44:42 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.022s
2019-03-02 14:44:41 |

2019-03-02 14:44:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:41 | ------------------------------------

2019-03-02 14:44:41 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node><jids><value>admin@localhost</value></jids></data>

2019-03-02 14:44:41 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.020s
2019-03-02 14:44:42 |

2019-03-02 14:44:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-03-02 14:44:42 | ------------------------------------

2019-03-02 14:44:42 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-76f67b7a-3920-4481-8f9a-180ee953c1fb</node><jids><value>admin@localhost</value></jids></data>

2019-03-02 14:44:42 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>