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

Test duration: 9.891s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.112s
2020-05-27 11:04:26 |

2020-05-27 11:04:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:26 | ------------------------------------

2020-05-27 11:04:26 | [Mutex] waiting for: [configured:node:node-7413c86f-16b9-4239-b779-2e0566dd805d:node-742aa9b0-209d-4a81-8f09-e03fbba5f34a]

2020-05-27 11:04:26 | [Mutex] received everything.

2020-05-27 11:04:26 | [Mutex] isItemNotified: configured:node:node-7413c86f-16b9-4239-b779-2e0566dd805d:node-742aa9b0-209d-4a81-8f09-e03fbba5f34a :: true

2020-05-27 11:04:27 | [Mutex] waiting for: [received:nodes:7470d7a0-92c7-4e18-a2a8-3bc383443c4d:localhost]

2020-05-27 11:04:27 | [Mutex] received everything.

2020-05-27 11:04:27 | [Mutex] isItemNotified: received:node:7470d7a0-92c7-4e18-a2a8-3bc383443c4d:localhost:node-7413c86f-16b9-4239-b779-2e0566dd805d:Node 7413c86f-16b9-4239-b779-2e0566dd805d :: true

2020-05-27 11:04:27 | [Mutex] waiting for: [received:nodes:b4c56f52-e683-471a-91b6-b3c770fa780a:localhost]

2020-05-27 11:04:27 | [Mutex] received everything.

2020-05-27 11:04:27 | [Mutex] isItemNotified: received:node:b4c56f52-e683-471a-91b6-b3c770fa780a:localhost:node-7413c86f-16b9-4239-b779-2e0566dd805d:Node 7413c86f-16b9-4239-b779-2e0566dd805d :: false

createNodes 1.541s
2020-05-27 11:04:24 |

2020-05-27 11:04:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:24 | ------------------------------------

2020-05-27 11:04:24 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 7413c86f-16b9-4239-b779-2e0566dd805d</title></pubsub></data>

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

2020-05-27 11:04:25 | [Mutex] waiting for: [received:nodes:488b5cd0-a41d-4235-be1a-967da459e1c3:localhost]

2020-05-27 11:04:25 | [Mutex] received everything.

2020-05-27 11:04:25 | [Mutex] isItemNotified: received:node:488b5cd0-a41d-4235-be1a-967da459e1c3:localhost:node-7413c86f-16b9-4239-b779-2e0566dd805d:Node 7413c86f-16b9-4239-b779-2e0566dd805d :: true

createSubnodes 1.029s
2020-05-27 11:04:25 |

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

2020-05-27 11:04:25 | ------------------------------------

2020-05-27 11:04:25 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-742aa9b0-209d-4a81-8f09-e03fbba5f34a</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 742aa9b0-209d-4a81-8f09-e03fbba5f34a</title></pubsub></data>

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

2020-05-27 11:04:26 | [Mutex] waiting for: [received:nodes:81c863df-01fc-4da8-ad23-e07ebc58b253:localhost]

2020-05-27 11:04:26 | [Mutex] received everything.

2020-05-27 11:04:26 | [Mutex] isItemNotified: received:node:81c863df-01fc-4da8-ad23-e07ebc58b253:localhost:node-742aa9b0-209d-4a81-8f09-e03fbba5f34a:Node 742aa9b0-209d-4a81-8f09-e03fbba5f34a :: true

deleteNodes 1.017s
2020-05-27 11:04:32 |

2020-05-27 11:04:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:32 | ------------------------------------

2020-05-27 11:04:32 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-742aa9b0-209d-4a81-8f09-e03fbba5f34a</node></data>

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

2020-05-27 11:04:33 | [Mutex] waiting for: [received:nodes:a6b1dcf0-422e-4aec-a5e4-245159476132:localhost]

2020-05-27 11:04:33 | [Mutex] received everything.

2020-05-27 11:04:33 | [Mutex] isItemNotified: received:node:a6b1dcf0-422e-4aec-a5e4-245159476132:localhost:node-742aa9b0-209d-4a81-8f09-e03fbba5f34a:Node 742aa9b0-209d-4a81-8f09-e03fbba5f34a :: false

deleteSubnodes 1.120s
2020-05-27 11:04:31 |

2020-05-27 11:04:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:31 | ------------------------------------

2020-05-27 11:04:31 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node></data>

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

2020-05-27 11:04:32 | [Mutex] waiting for: [received:nodes:f0c2b960-f15b-4fb9-84cf-f4689db68d03:localhost]

2020-05-27 11:04:32 | [Mutex] received everything.

2020-05-27 11:04:32 | [Mutex] isItemNotified: received:node:f0c2b960-f15b-4fb9-84cf-f4689db68d03:localhost:node-7413c86f-16b9-4239-b779-2e0566dd805d:Node 7413c86f-16b9-4239-b779-2e0566dd805d :: false

2020-05-27 11:04:32 | [Mutex] waiting for: [received:nodes:8024321d-13d6-4662-93eb-61635767e633:localhost]

2020-05-27 11:04:32 | [Mutex] received everything.

2020-05-27 11:04:32 | [Mutex] isItemNotified: received:node:8024321d-13d6-4662-93eb-61635767e633:localhost:node-7413c86f-16b9-4239-b779-2e0566dd805d:Node 7413c86f-16b9-4239-b779-2e0566dd805d :: false

publishItemsToNodes 0.221s
2020-05-27 11:04:29 |

2020-05-27 11:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:29 | ------------------------------------

2020-05-27 11:04:29 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node><item-id>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</item-id><entry><test>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</test></entry></data>

2020-05-27 11:04:29 | from localhost for action publish-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</value></item-id></result>

2020-05-27 11:04:29 | [Mutex] received everything.

2020-05-27 11:04:29 | [Mutex] isItemNotified: published:item:notifieditem-eb212ddc-6885-424c-a9a8-802fc6d5ca6e:admin@localhost :: true

retractItemsFromNodes 0.220s
2020-05-27 11:04:29 |

2020-05-27 11:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:29 | ------------------------------------

2020-05-27 11:04:29 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node><item-id>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</item-id></data>

2020-05-27 11:04:29 | from localhost for action delete-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</value></item-id></result>

2020-05-27 11:04:29 | [Mutex] received everything.

2020-05-27 11:04:29 | [Mutex] isItemNotified: retracted:item:notifieditem-eb212ddc-6885-424c-a9a8-802fc6d5ca6e:admin@localhost :: true

retrieveItemsFromNodes 0.163s
2020-05-27 11:04:29 |

2020-05-27 11:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:29 | ------------------------------------

2020-05-27 11:04:29 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node><item-id>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</item-id></data>

2020-05-27 11:04:29 | from localhost for action retrieve-item got result code 200 and payload
<result><title>Retrive PubSub node item</title><node type="text-single" label="Node"><value>node-7413c86f-16b9-4239-b779-2e0566dd805d</value></node><item-id type="text-single" label="Item ID"><value>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</value></item-id><item type="text-multi" label="Item"><value><item id="item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e"><test>item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e</test></item></value></item></result>

2020-05-27 11:04:29 | [Mutex] notify: [retrieved:item:item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e:payload-matches:true:localhost]

2020-05-27 11:04:29 | [Mutex] received everything.

2020-05-27 11:04:29 | [Mutex] isItemNotified: retrieved:item:item-eb212ddc-6885-424c-a9a8-802fc6d5ca6e:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.264s
2020-05-27 11:04:29 |

2020-05-27 11:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:29 | ------------------------------------

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

2020-05-27 11:04:29 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-742aa9b0-209d-4a81-8f09-e03fbba5f34a</value><value>node-7413c86f-16b9-4239-b779-2e0566dd805d</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-05-27 11:04:29 |

2020-05-27 11:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:29 | ------------------------------------

2020-05-27 11:04:29 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-7413c86f-16b9-4239-b779-2e0566dd805d)</node-pattern></data>

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

subscribeNodes 1.098s
2020-05-27 11:04:27 |

2020-05-27 11:04:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:27 | ------------------------------------

2020-05-27 11:04:27 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.256s
2020-05-27 11:04:29 |

2020-05-27 11:04:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 11:04:29 | ------------------------------------

2020-05-27 11:04:29 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-7413c86f-16b9-4239-b779-2e0566dd805d</node><jids><value>admin@localhost</value></jids></data>

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