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

Test duration: 10.705s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.109s
2019-11-25 21:17:49 |

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

2019-11-25 21:17:49 | ------------------------------------

2019-11-25 21:17:49 | [Mutex] waiting for: [configured:node:node-d50d3a4c-b46c-4084-b917-8327e4820816:node-aa9f1af0-09c0-4458-a9da-d2f626eb0009]

2019-11-25 21:17:49 | [Mutex] received everything.

2019-11-25 21:17:49 | [Mutex] isItemNotified: configured:node:node-d50d3a4c-b46c-4084-b917-8327e4820816:node-aa9f1af0-09c0-4458-a9da-d2f626eb0009 :: true

2019-11-25 21:17:50 | [Mutex] waiting for: [received:nodes:b4c734eb-97d4-4d62-b5b9-783adefe60b9:localhost]

2019-11-25 21:17:50 | [Mutex] received everything.

2019-11-25 21:17:50 | [Mutex] isItemNotified: received:node:b4c734eb-97d4-4d62-b5b9-783adefe60b9:localhost:node-d50d3a4c-b46c-4084-b917-8327e4820816:Node d50d3a4c-b46c-4084-b917-8327e4820816 :: true

2019-11-25 21:17:50 | [Mutex] waiting for: [received:nodes:207b2373-54a5-435c-9232-c80586c468ee:localhost]

2019-11-25 21:17:50 | [Mutex] received everything.

2019-11-25 21:17:50 | [Mutex] isItemNotified: received:node:207b2373-54a5-435c-9232-c80586c468ee:localhost:node-d50d3a4c-b46c-4084-b917-8327e4820816:Node d50d3a4c-b46c-4084-b917-8327e4820816 :: false

createNodes 1.665s
2019-11-25 21:17:46 |

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

2019-11-25 21:17:46 | ------------------------------------

2019-11-25 21:17:46 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node d50d3a4c-b46c-4084-b917-8327e4820816</title></pubsub></data>

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

2019-11-25 21:17:47 | [Mutex] waiting for: [received:nodes:108a2532-54a7-4ad7-bccd-47752b1c5207:localhost]

2019-11-25 21:17:47 | [Mutex] received everything.

2019-11-25 21:17:47 | [Mutex] isItemNotified: received:node:108a2532-54a7-4ad7-bccd-47752b1c5207:localhost:node-d50d3a4c-b46c-4084-b917-8327e4820816:Node d50d3a4c-b46c-4084-b917-8327e4820816 :: true

createSubnodes 1.044s
2019-11-25 21:17:47 |

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

2019-11-25 21:17:47 | ------------------------------------

2019-11-25 21:17:47 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-aa9f1af0-09c0-4458-a9da-d2f626eb0009</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node aa9f1af0-09c0-4458-a9da-d2f626eb0009</title></pubsub></data>

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

2019-11-25 21:17:48 | [Mutex] waiting for: [received:nodes:d3b1321a-3efd-40fa-8183-158e04e7a15f:localhost]

2019-11-25 21:17:49 | [Mutex] received everything.

2019-11-25 21:17:49 | [Mutex] isItemNotified: received:node:d3b1321a-3efd-40fa-8183-158e04e7a15f:localhost:node-aa9f1af0-09c0-4458-a9da-d2f626eb0009:Node aa9f1af0-09c0-4458-a9da-d2f626eb0009 :: true

deleteNodes 1.049s
2019-11-25 21:17:54 |

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

2019-11-25 21:17:54 | ------------------------------------

2019-11-25 21:17:54 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-aa9f1af0-09c0-4458-a9da-d2f626eb0009</node></data>

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

2019-11-25 21:17:56 | [Mutex] waiting for: [received:nodes:f24e3817-507a-40b9-838d-54f300b00c2b:localhost]

2019-11-25 21:17:56 | [Mutex] received everything.

2019-11-25 21:17:56 | [Mutex] isItemNotified: received:node:f24e3817-507a-40b9-838d-54f300b00c2b:localhost:node-aa9f1af0-09c0-4458-a9da-d2f626eb0009:Node aa9f1af0-09c0-4458-a9da-d2f626eb0009 :: false

deleteSubnodes 1.149s
2019-11-25 21:17:53 |

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

2019-11-25 21:17:53 | ------------------------------------

2019-11-25 21:17:53 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node></data>

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

2019-11-25 21:17:54 | [Mutex] waiting for: [received:nodes:2eb7c48c-946d-48e7-9693-d97868f5e0df:localhost]

2019-11-25 21:17:54 | [Mutex] waiting for: [received:nodes:2eb7c48c-946d-48e7-9693-d97868f5e0df:localhost]

2019-11-25 21:17:54 | [Mutex] received everything.

2019-11-25 21:17:54 | [Mutex] isItemNotified: received:node:2eb7c48c-946d-48e7-9693-d97868f5e0df:localhost:node-d50d3a4c-b46c-4084-b917-8327e4820816:Node d50d3a4c-b46c-4084-b917-8327e4820816 :: false

2019-11-25 21:17:54 | [Mutex] waiting for: [received:nodes:1f860ffa-6dd0-4451-abf5-218bda556c97:localhost]

2019-11-25 21:17:54 | [Mutex] received everything.

2019-11-25 21:17:54 | [Mutex] isItemNotified: received:node:1f860ffa-6dd0-4451-abf5-218bda556c97:localhost:node-d50d3a4c-b46c-4084-b917-8327e4820816:Node d50d3a4c-b46c-4084-b917-8327e4820816 :: false

publishItemsToNodes 0.296s
2019-11-25 21:17:51 |

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

2019-11-25 21:17:51 | ------------------------------------

2019-11-25 21:17:51 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node><item-id>item-77fed1bd-aa19-46ef-99bf-3da80870b4c9</item-id><entry><test>item-77fed1bd-aa19-46ef-99bf-3da80870b4c9</test></entry></data>

2019-11-25 21:17:51 | 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-77fed1bd-aa19-46ef-99bf-3da80870b4c9</value></item-id></result>

2019-11-25 21:17:51 | [Mutex] waiting for: [published:item:notifieditem-77fed1bd-aa19-46ef-99bf-3da80870b4c9:admin@localhost]

2019-11-25 21:17:51 | [Mutex] received everything.

2019-11-25 21:17:51 | [Mutex] isItemNotified: published:item:notifieditem-77fed1bd-aa19-46ef-99bf-3da80870b4c9:admin@localhost :: true

retractItemsFromNodes 0.339s
2019-11-25 21:17:52 |

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

2019-11-25 21:17:52 | ------------------------------------

2019-11-25 21:17:52 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node><item-id>item-77fed1bd-aa19-46ef-99bf-3da80870b4c9</item-id></data>

2019-11-25 21:17:52 | 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-77fed1bd-aa19-46ef-99bf-3da80870b4c9</value></item-id></result>

2019-11-25 21:17:52 | [Mutex] received everything.

2019-11-25 21:17:52 | [Mutex] isItemNotified: retracted:item:notifieditem-77fed1bd-aa19-46ef-99bf-3da80870b4c9:admin@localhost :: true

retrieveItemsFromNodes 0.281s
2019-11-25 21:17:51 |

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

2019-11-25 21:17:51 | ------------------------------------

2019-11-25 21:17:51 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node><item-id>item-77fed1bd-aa19-46ef-99bf-3da80870b4c9</item-id></data>

2019-11-25 21:17:51 | 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-d50d3a4c-b46c-4084-b917-8327e4820816</value></node><item-id label="Item ID" type="text-single"><value>item-77fed1bd-aa19-46ef-99bf-3da80870b4c9</value></item-id><item label="Item" type="text-multi"><value><item id="item-77fed1bd-aa19-46ef-99bf-3da80870b4c9"><test>item-77fed1bd-aa19-46ef-99bf-3da80870b4c9</test></item></value></item></result>

2019-11-25 21:17:51 | [Mutex] notify: [retrieved:item:item-77fed1bd-aa19-46ef-99bf-3da80870b4c9:payload-matches:true:localhost]

2019-11-25 21:17:51 | [Mutex] received everything.

2019-11-25 21:17:51 | [Mutex] isItemNotified: retrieved:item:item-77fed1bd-aa19-46ef-99bf-3da80870b4c9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.316s
2019-11-25 21:17:51 |

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

2019-11-25 21:17:51 | ------------------------------------

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

2019-11-25 21:17:52 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-aa9f1af0-09c0-4458-a9da-d2f626eb0009</value><value>node-d50d3a4c-b46c-4084-b917-8327e4820816</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2019-11-25 21:17:52 |

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

2019-11-25 21:17:52 | ------------------------------------

2019-11-25 21:17:52 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-d50d3a4c-b46c-4084-b917-8327e4820816)</node-pattern></data>

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

subscribeNodes 1.145s
2019-11-25 21:17:50 |

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

2019-11-25 21:17:50 | ------------------------------------

2019-11-25 21:17:50 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.279s
2019-11-25 21:17:52 |

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

2019-11-25 21:17:52 | ------------------------------------

2019-11-25 21:17:52 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-d50d3a4c-b46c-4084-b917-8327e4820816</node><jids><value>admin@localhost</value></jids></data>

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