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

Test duration: 10.027s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.103s
2020-05-27 22:49:11 |

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

2020-05-27 22:49:11 | ------------------------------------

2020-05-27 22:49:11 | [Mutex] waiting for: [configured:node:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:node-221e2348-0223-48de-a163-fc3aac7ae7d1]

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

2020-05-27 22:49:11 | [Mutex] isItemNotified: configured:node:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:node-221e2348-0223-48de-a163-fc3aac7ae7d1 :: true

2020-05-27 22:49:12 | [Mutex] waiting for: [received:nodes:c675d5bc-5e93-46db-8bd1-649fcaaae17e:localhost]

2020-05-27 22:49:12 | [Mutex] received everything.

2020-05-27 22:49:12 | [Mutex] isItemNotified: received:node:c675d5bc-5e93-46db-8bd1-649fcaaae17e:localhost:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:Node ec5a5539-599a-4a1a-895b-676ba2d6a304 :: true

2020-05-27 22:49:12 | [Mutex] waiting for: [received:nodes:8a66b41f-0eea-482a-9fc6-ff8f1f0a820d:localhost]

2020-05-27 22:49:12 | [Mutex] received everything.

2020-05-27 22:49:12 | [Mutex] isItemNotified: received:node:8a66b41f-0eea-482a-9fc6-ff8f1f0a820d:localhost:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:Node ec5a5539-599a-4a1a-895b-676ba2d6a304 :: false

createNodes 1.567s
2020-05-27 22:49:08 |

2020-05-27 22:49:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:08 | ------------------------------------

2020-05-27 22:49:08 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node ec5a5539-599a-4a1a-895b-676ba2d6a304</title></pubsub></data>

2020-05-27 22:49:09 | 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 22:49:10 | [Mutex] waiting for: [received:nodes:809b8688-2f94-4b12-9b55-11f9dfcc1069:localhost]

2020-05-27 22:49:10 | [Mutex] received everything.

2020-05-27 22:49:10 | [Mutex] isItemNotified: received:node:809b8688-2f94-4b12-9b55-11f9dfcc1069:localhost:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:Node ec5a5539-599a-4a1a-895b-676ba2d6a304 :: true

createSubnodes 1.027s
2020-05-27 22:49:10 |

2020-05-27 22:49:10 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:10 | ------------------------------------

2020-05-27 22:49:10 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-221e2348-0223-48de-a163-fc3aac7ae7d1</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 221e2348-0223-48de-a163-fc3aac7ae7d1</title></pubsub></data>

2020-05-27 22:49:10 | 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 22:49:11 | [Mutex] waiting for: [received:nodes:2d63977b-54a5-4006-985c-1da5f68c4084:localhost]

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

2020-05-27 22:49:11 | [Mutex] isItemNotified: received:node:2d63977b-54a5-4006-985c-1da5f68c4084:localhost:node-221e2348-0223-48de-a163-fc3aac7ae7d1:Node 221e2348-0223-48de-a163-fc3aac7ae7d1 :: true

deleteNodes 1.018s
2020-05-27 22:49:17 |

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

2020-05-27 22:49:17 | ------------------------------------

2020-05-27 22:49:17 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-221e2348-0223-48de-a163-fc3aac7ae7d1</node></data>

2020-05-27 22:49:17 | 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 22:49:18 | [Mutex] waiting for: [received:nodes:844e3a81-68bc-4d52-8564-caf88dba7a54:localhost]

2020-05-27 22:49:18 | [Mutex] received everything.

2020-05-27 22:49:18 | [Mutex] isItemNotified: received:node:844e3a81-68bc-4d52-8564-caf88dba7a54:localhost:node-221e2348-0223-48de-a163-fc3aac7ae7d1:Node 221e2348-0223-48de-a163-fc3aac7ae7d1 :: false

deleteSubnodes 1.164s
2020-05-27 22:49:15 |

2020-05-27 22:49:15 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:15 | ------------------------------------

2020-05-27 22:49:15 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node></data>

2020-05-27 22:49:16 | 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 22:49:17 | [Mutex] waiting for: [received:nodes:7359d328-e72a-49fe-b6a9-218f218c923c:localhost]

2020-05-27 22:49:17 | [Mutex] received everything.

2020-05-27 22:49:17 | [Mutex] isItemNotified: received:node:7359d328-e72a-49fe-b6a9-218f218c923c:localhost:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:Node ec5a5539-599a-4a1a-895b-676ba2d6a304 :: false

2020-05-27 22:49:17 | [Mutex] waiting for: [received:nodes:d2b613b8-6838-4ef6-a794-b7b39e9197f0:localhost]

2020-05-27 22:49:17 | [Mutex] received everything.

2020-05-27 22:49:17 | [Mutex] isItemNotified: received:node:d2b613b8-6838-4ef6-a794-b7b39e9197f0:localhost:node-ec5a5539-599a-4a1a-895b-676ba2d6a304:Node ec5a5539-599a-4a1a-895b-676ba2d6a304 :: false

publishItemsToNodes 0.168s
2020-05-27 22:49:13 |

2020-05-27 22:49:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:13 | ------------------------------------

2020-05-27 22:49:13 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node><item-id>item-bd5e0607-5330-4666-bf75-cec40e603ab9</item-id><entry><test>item-bd5e0607-5330-4666-bf75-cec40e603ab9</test></entry></data>

2020-05-27 22:49:13 | 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-bd5e0607-5330-4666-bf75-cec40e603ab9</value></item-id></result>

2020-05-27 22:49:13 | [Mutex] waiting for: [published:item:notifieditem-bd5e0607-5330-4666-bf75-cec40e603ab9:admin@localhost]

2020-05-27 22:49:13 | [Mutex] received everything.

2020-05-27 22:49:13 | [Mutex] isItemNotified: published:item:notifieditem-bd5e0607-5330-4666-bf75-cec40e603ab9:admin@localhost :: true

retractItemsFromNodes 0.260s
2020-05-27 22:49:14 |

2020-05-27 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:14 | ------------------------------------

2020-05-27 22:49:14 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node><item-id>item-bd5e0607-5330-4666-bf75-cec40e603ab9</item-id></data>

2020-05-27 22:49:14 | 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-bd5e0607-5330-4666-bf75-cec40e603ab9</value></item-id></result>

2020-05-27 22:49:14 | [Mutex] waiting for: [retracted:item:notifieditem-bd5e0607-5330-4666-bf75-cec40e603ab9:admin@localhost]

2020-05-27 22:49:14 | [Mutex] received everything.

2020-05-27 22:49:14 | [Mutex] isItemNotified: retracted:item:notifieditem-bd5e0607-5330-4666-bf75-cec40e603ab9:admin@localhost :: true

retrieveItemsFromNodes 0.194s
2020-05-27 22:49:13 |

2020-05-27 22:49:13 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:13 | ------------------------------------

2020-05-27 22:49:13 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node><item-id>item-bd5e0607-5330-4666-bf75-cec40e603ab9</item-id></data>

2020-05-27 22:49:14 | 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-ec5a5539-599a-4a1a-895b-676ba2d6a304</value></node><item-id label="Item ID" type="text-single"><value>item-bd5e0607-5330-4666-bf75-cec40e603ab9</value></item-id><item label="Item" type="text-multi"><value><item id="item-bd5e0607-5330-4666-bf75-cec40e603ab9"><test>item-bd5e0607-5330-4666-bf75-cec40e603ab9</test></item></value></item></result>

2020-05-27 22:49:14 | [Mutex] notify: [retrieved:item:item-bd5e0607-5330-4666-bf75-cec40e603ab9:payload-matches:true:localhost]

2020-05-27 22:49:14 | [Mutex] received everything.

2020-05-27 22:49:14 | [Mutex] isItemNotified: retrieved:item:item-bd5e0607-5330-4666-bf75-cec40e603ab9:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.224s
2020-05-27 22:49:14 |

2020-05-27 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:14 | ------------------------------------

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

2020-05-27 22:49:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</value><value>node-221e2348-0223-48de-a163-fc3aac7ae7d1</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.106s
2020-05-27 22:49:14 |

2020-05-27 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:14 | ------------------------------------

2020-05-27 22:49:14 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-ec5a5539-599a-4a1a-895b-676ba2d6a304)</node-pattern></data>

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

subscribeNodes 1.136s
2020-05-27 22:49:12 |

2020-05-27 22:49:12 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:12 | ------------------------------------

2020-05-27 22:49:12 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.193s
2020-05-27 22:49:14 |

2020-05-27 22:49:14 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-27 22:49:14 | ------------------------------------

2020-05-27 22:49:14 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-ec5a5539-599a-4a1a-895b-676ba2d6a304</node><jids><value>admin@localhost</value></jids></data>

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