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

Test duration: 9.920s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.122s
2020-05-25 23:04:43 |

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

2020-05-25 23:04:43 | ------------------------------------

2020-05-25 23:04:43 | [Mutex] waiting for: [configured:node:node-ecf475dd-f655-434e-ae75-68d573a69245:node-be2d849c-7777-4e97-ba0c-7a7c4ecce361]

2020-05-25 23:04:43 | [Mutex] received everything.

2020-05-25 23:04:43 | [Mutex] isItemNotified: configured:node:node-ecf475dd-f655-434e-ae75-68d573a69245:node-be2d849c-7777-4e97-ba0c-7a7c4ecce361 :: true

2020-05-25 23:04:44 | [Mutex] waiting for: [received:nodes:cafecf0f-5aab-458a-9faf-4b3925f71dcd:localhost]

2020-05-25 23:04:44 | [Mutex] received everything.

2020-05-25 23:04:44 | [Mutex] isItemNotified: received:node:cafecf0f-5aab-458a-9faf-4b3925f71dcd:localhost:node-ecf475dd-f655-434e-ae75-68d573a69245:Node ecf475dd-f655-434e-ae75-68d573a69245 :: true

2020-05-25 23:04:44 | [Mutex] waiting for: [received:nodes:666c97cf-26a9-48d7-b954-a27352d1b328:localhost]

2020-05-25 23:04:44 | [Mutex] received everything.

2020-05-25 23:04:44 | [Mutex] isItemNotified: received:node:666c97cf-26a9-48d7-b954-a27352d1b328:localhost:node-ecf475dd-f655-434e-ae75-68d573a69245:Node ecf475dd-f655-434e-ae75-68d573a69245 :: false

createNodes 1.627s
2020-05-25 23:04:40 |

2020-05-25 23:04:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:40 | ------------------------------------

2020-05-25 23:04:40 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node ecf475dd-f655-434e-ae75-68d573a69245</title></pubsub></data>

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

2020-05-25 23:04:42 | [Mutex] waiting for: [received:nodes:f3fb9013-7f48-4bb5-9a7a-f583133cf7c7:localhost]

2020-05-25 23:04:42 | [Mutex] received everything.

2020-05-25 23:04:42 | [Mutex] isItemNotified: received:node:f3fb9013-7f48-4bb5-9a7a-f583133cf7c7:localhost:node-ecf475dd-f655-434e-ae75-68d573a69245:Node ecf475dd-f655-434e-ae75-68d573a69245 :: true

createSubnodes 1.027s
2020-05-25 23:04:42 |

2020-05-25 23:04:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:42 | ------------------------------------

2020-05-25 23:04:42 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-be2d849c-7777-4e97-ba0c-7a7c4ecce361</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node be2d849c-7777-4e97-ba0c-7a7c4ecce361</title></pubsub></data>

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

2020-05-25 23:04:43 | [Mutex] waiting for: [received:nodes:0a8ff90e-7544-4e79-b13d-a00bdbb32f1c:localhost]

2020-05-25 23:04:43 | [Mutex] received everything.

2020-05-25 23:04:43 | [Mutex] isItemNotified: received:node:0a8ff90e-7544-4e79-b13d-a00bdbb32f1c:localhost:node-be2d849c-7777-4e97-ba0c-7a7c4ecce361:Node be2d849c-7777-4e97-ba0c-7a7c4ecce361 :: true

deleteNodes 1.044s
2020-05-25 23:04:48 |

2020-05-25 23:04:48 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:48 | ------------------------------------

2020-05-25 23:04:48 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-be2d849c-7777-4e97-ba0c-7a7c4ecce361</node></data>

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

2020-05-25 23:04:49 | [Mutex] waiting for: [received:nodes:a6a212aa-b808-4b61-9ac4-062a3eae3120:localhost]

2020-05-25 23:04:49 | [Mutex] received everything.

2020-05-25 23:04:49 | [Mutex] isItemNotified: received:node:a6a212aa-b808-4b61-9ac4-062a3eae3120:localhost:node-be2d849c-7777-4e97-ba0c-7a7c4ecce361:Node be2d849c-7777-4e97-ba0c-7a7c4ecce361 :: false

deleteSubnodes 1.106s
2020-05-25 23:04:47 |

2020-05-25 23:04:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:47 | ------------------------------------

2020-05-25 23:04:47 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node></data>

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

2020-05-25 23:04:48 | [Mutex] waiting for: [received:nodes:928a3057-731a-479c-acdc-e29bb8347cb1:localhost]

2020-05-25 23:04:48 | [Mutex] received everything.

2020-05-25 23:04:48 | [Mutex] isItemNotified: received:node:928a3057-731a-479c-acdc-e29bb8347cb1:localhost:node-ecf475dd-f655-434e-ae75-68d573a69245:Node ecf475dd-f655-434e-ae75-68d573a69245 :: false

2020-05-25 23:04:48 | [Mutex] waiting for: [received:nodes:b64eb46b-feb6-46c8-a0a9-1b0f9ec2ca79:localhost]

2020-05-25 23:04:48 | [Mutex] received everything.

2020-05-25 23:04:48 | [Mutex] isItemNotified: received:node:b64eb46b-feb6-46c8-a0a9-1b0f9ec2ca79:localhost:node-ecf475dd-f655-434e-ae75-68d573a69245:Node ecf475dd-f655-434e-ae75-68d573a69245 :: false

publishItemsToNodes 0.174s
2020-05-25 23:04:45 |

2020-05-25 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:45 | ------------------------------------

2020-05-25 23:04:45 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node><item-id>item-f18e6d95-9c47-493b-8ca5-ba2596cfc103</item-id><entry><test>item-f18e6d95-9c47-493b-8ca5-ba2596cfc103</test></entry></data>

2020-05-25 23:04:45 | 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-f18e6d95-9c47-493b-8ca5-ba2596cfc103</value></item-id></result>

2020-05-25 23:04:45 | [Mutex] received everything.

2020-05-25 23:04:45 | [Mutex] isItemNotified: published:item:notifieditem-f18e6d95-9c47-493b-8ca5-ba2596cfc103:admin@localhost :: true

retractItemsFromNodes 0.250s
2020-05-25 23:04:46 |

2020-05-25 23:04:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:46 | ------------------------------------

2020-05-25 23:04:46 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node><item-id>item-f18e6d95-9c47-493b-8ca5-ba2596cfc103</item-id></data>

2020-05-25 23:04:46 | 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-f18e6d95-9c47-493b-8ca5-ba2596cfc103</value></item-id></result>

2020-05-25 23:04:46 | [Mutex] waiting for: [retracted:item:notifieditem-f18e6d95-9c47-493b-8ca5-ba2596cfc103:admin@localhost]

2020-05-25 23:04:46 | [Mutex] received everything.

2020-05-25 23:04:46 | [Mutex] isItemNotified: retracted:item:notifieditem-f18e6d95-9c47-493b-8ca5-ba2596cfc103:admin@localhost :: true

retrieveItemsFromNodes 0.139s
2020-05-25 23:04:45 |

2020-05-25 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:45 | ------------------------------------

2020-05-25 23:04:45 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node><item-id>item-f18e6d95-9c47-493b-8ca5-ba2596cfc103</item-id></data>

2020-05-25 23:04:45 | 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-ecf475dd-f655-434e-ae75-68d573a69245</value></node><item-id label="Item ID" type="text-single"><value>item-f18e6d95-9c47-493b-8ca5-ba2596cfc103</value></item-id><item label="Item" type="text-multi"><value><item id="item-f18e6d95-9c47-493b-8ca5-ba2596cfc103"><test>item-f18e6d95-9c47-493b-8ca5-ba2596cfc103</test></item></value></item></result>

2020-05-25 23:04:45 | [Mutex] notify: [retrieved:item:item-f18e6d95-9c47-493b-8ca5-ba2596cfc103:payload-matches:true:localhost]

2020-05-25 23:04:45 | [Mutex] received everything.

2020-05-25 23:04:45 | [Mutex] isItemNotified: retrieved:item:item-f18e6d95-9c47-493b-8ca5-ba2596cfc103:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.168s
2020-05-25 23:04:45 |

2020-05-25 23:04:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:45 | ------------------------------------

2020-05-25 23:04:45 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-05-25 23:04:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-be2d849c-7777-4e97-ba0c-7a7c4ecce361</value><value>node-ecf475dd-f655-434e-ae75-68d573a69245</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.070s
2020-05-25 23:04:46 |

2020-05-25 23:04:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:46 | ------------------------------------

2020-05-25 23:04:46 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-ecf475dd-f655-434e-ae75-68d573a69245)</node-pattern></data>

2020-05-25 23:04:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.133s
2020-05-25 23:04:44 |

2020-05-25 23:04:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:44 | ------------------------------------

2020-05-25 23:04:44 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node><jids><value>admin@localhost</value></jids></data>

2020-05-25 23:04:44 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.209s
2020-05-25 23:04:46 |

2020-05-25 23:04:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-25 23:04:46 | ------------------------------------

2020-05-25 23:04:46 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-ecf475dd-f655-434e-ae75-68d573a69245</node><jids><value>admin@localhost</value></jids></data>

2020-05-25 23:04:46 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>