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

Test duration: 10.426s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.126s
2019-11-20 20:33:59 |

2019-11-20 20:33:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:33:59 | ------------------------------------

2019-11-20 20:33:59 | [Mutex] waiting for: [configured:node:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:node-d30d2ef8-d744-475d-a39b-21d1518f58df]

2019-11-20 20:33:59 | [Mutex] received everything.

2019-11-20 20:33:59 | [Mutex] isItemNotified: configured:node:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:node-d30d2ef8-d744-475d-a39b-21d1518f58df :: true

2019-11-20 20:34:00 | [Mutex] waiting for: [received:nodes:0ddf106b-8b42-4046-bb92-ff2a55966356:localhost]

2019-11-20 20:34:00 | [Mutex] received everything.

2019-11-20 20:34:00 | [Mutex] isItemNotified: received:node:0ddf106b-8b42-4046-bb92-ff2a55966356:localhost:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:Node f9c9e312-22dd-4b5e-a54b-6cb21e749d56 :: true

2019-11-20 20:34:00 | [Mutex] waiting for: [received:nodes:99b5a3e8-85f7-4c79-8359-1ac17d230ac9:localhost]

2019-11-20 20:34:00 | [Mutex] received everything.

2019-11-20 20:34:00 | [Mutex] isItemNotified: received:node:99b5a3e8-85f7-4c79-8359-1ac17d230ac9:localhost:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:Node f9c9e312-22dd-4b5e-a54b-6cb21e749d56 :: false

createNodes 1.661s
2019-11-20 20:33:56 |

2019-11-20 20:33:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:33:56 | ------------------------------------

2019-11-20 20:33:56 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node f9c9e312-22dd-4b5e-a54b-6cb21e749d56</title></pubsub></data>

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

2019-11-20 20:33:58 | [Mutex] waiting for: [received:nodes:2de39a01-4bb9-4d6b-97c6-61d22a4cd204:localhost]

2019-11-20 20:33:58 | [Mutex] received everything.

2019-11-20 20:33:58 | [Mutex] isItemNotified: received:node:2de39a01-4bb9-4d6b-97c6-61d22a4cd204:localhost:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:Node f9c9e312-22dd-4b5e-a54b-6cb21e749d56 :: true

createSubnodes 1.028s
2019-11-20 20:33:58 |

2019-11-20 20:33:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:33:58 | ------------------------------------

2019-11-20 20:33:58 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-d30d2ef8-d744-475d-a39b-21d1518f58df</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node d30d2ef8-d744-475d-a39b-21d1518f58df</title></pubsub></data>

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

2019-11-20 20:33:59 | [Mutex] waiting for: [received:nodes:d676aa37-e596-44b3-acd0-17ea9a633930:localhost]

2019-11-20 20:33:59 | [Mutex] received everything.

2019-11-20 20:33:59 | [Mutex] isItemNotified: received:node:d676aa37-e596-44b3-acd0-17ea9a633930:localhost:node-d30d2ef8-d744-475d-a39b-21d1518f58df:Node d30d2ef8-d744-475d-a39b-21d1518f58df :: true

deleteNodes 1.027s
2019-11-20 20:34:05 |

2019-11-20 20:34:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:05 | ------------------------------------

2019-11-20 20:34:05 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-d30d2ef8-d744-475d-a39b-21d1518f58df</node></data>

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

2019-11-20 20:34:06 | [Mutex] waiting for: [received:nodes:e0e13891-ca6e-49a4-a2ee-ebd25b67b2a0:localhost]

2019-11-20 20:34:06 | [Mutex] received everything.

2019-11-20 20:34:06 | [Mutex] isItemNotified: received:node:e0e13891-ca6e-49a4-a2ee-ebd25b67b2a0:localhost:node-d30d2ef8-d744-475d-a39b-21d1518f58df:Node d30d2ef8-d744-475d-a39b-21d1518f58df :: false

deleteSubnodes 1.203s
2019-11-20 20:34:03 |

2019-11-20 20:34:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:03 | ------------------------------------

2019-11-20 20:34:03 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node></data>

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

2019-11-20 20:34:05 | [Mutex] waiting for: [received:nodes:e4fb4b49-e3a4-4d49-aa81-77e4cbae1a49:localhost]

2019-11-20 20:34:05 | [Mutex] received everything.

2019-11-20 20:34:05 | [Mutex] isItemNotified: received:node:e4fb4b49-e3a4-4d49-aa81-77e4cbae1a49:localhost:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:Node f9c9e312-22dd-4b5e-a54b-6cb21e749d56 :: false

2019-11-20 20:34:05 | [Mutex] waiting for: [received:nodes:1fe864b0-2ca0-4bd7-8ec9-ee4d1e450b39:localhost]

2019-11-20 20:34:05 | [Mutex] received everything.

2019-11-20 20:34:05 | [Mutex] isItemNotified: received:node:1fe864b0-2ca0-4bd7-8ec9-ee4d1e450b39:localhost:node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56:Node f9c9e312-22dd-4b5e-a54b-6cb21e749d56 :: false

publishItemsToNodes 0.242s
2019-11-20 20:34:01 |

2019-11-20 20:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:01 | ------------------------------------

2019-11-20 20:34:01 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node><item-id>item-fc1273dc-6962-4bcb-b2f0-b9976f811238</item-id><entry><test>item-fc1273dc-6962-4bcb-b2f0-b9976f811238</test></entry></data>

2019-11-20 20:34:01 | 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-fc1273dc-6962-4bcb-b2f0-b9976f811238</value></item-id></result>

2019-11-20 20:34:01 | [Mutex] waiting for: [published:item:notifieditem-fc1273dc-6962-4bcb-b2f0-b9976f811238:admin@localhost]

2019-11-20 20:34:01 | [Mutex] received everything.

2019-11-20 20:34:01 | [Mutex] isItemNotified: published:item:notifieditem-fc1273dc-6962-4bcb-b2f0-b9976f811238:admin@localhost :: true

retractItemsFromNodes 0.255s
2019-11-20 20:34:02 |

2019-11-20 20:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:02 | ------------------------------------

2019-11-20 20:34:02 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node><item-id>item-fc1273dc-6962-4bcb-b2f0-b9976f811238</item-id></data>

2019-11-20 20:34:02 | 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-fc1273dc-6962-4bcb-b2f0-b9976f811238</value></item-id></result>

2019-11-20 20:34:02 | [Mutex] received everything.

2019-11-20 20:34:02 | [Mutex] isItemNotified: retracted:item:notifieditem-fc1273dc-6962-4bcb-b2f0-b9976f811238:admin@localhost :: true

retrieveItemsFromNodes 0.244s
2019-11-20 20:34:01 |

2019-11-20 20:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:01 | ------------------------------------

2019-11-20 20:34:01 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node><item-id>item-fc1273dc-6962-4bcb-b2f0-b9976f811238</item-id></data>

2019-11-20 20:34:01 | 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-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</value></node><item-id type="text-single" label="Item ID"><value>item-fc1273dc-6962-4bcb-b2f0-b9976f811238</value></item-id><item type="text-multi" label="Item"><value><item id="item-fc1273dc-6962-4bcb-b2f0-b9976f811238"><test>item-fc1273dc-6962-4bcb-b2f0-b9976f811238</test></item></value></item></result>

2019-11-20 20:34:01 | [Mutex] notify: [retrieved:item:item-fc1273dc-6962-4bcb-b2f0-b9976f811238:payload-matches:true:localhost]

2019-11-20 20:34:01 | [Mutex] received everything.

2019-11-20 20:34:01 | [Mutex] isItemNotified: retrieved:item:item-fc1273dc-6962-4bcb-b2f0-b9976f811238:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.240s
2019-11-20 20:34:01 |

2019-11-20 20:34:01 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:01 | ------------------------------------

2019-11-20 20:34:01 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-11-20 20:34:02 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-d30d2ef8-d744-475d-a39b-21d1518f58df</value><value>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.070s
2019-11-20 20:34:02 |

2019-11-20 20:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:02 | ------------------------------------

2019-11-20 20:34:02 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56)</node-pattern></data>

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

subscribeNodes 1.125s
2019-11-20 20:34:00 |

2019-11-20 20:34:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:00 | ------------------------------------

2019-11-20 20:34:00 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.299s
2019-11-20 20:34:02 |

2019-11-20 20:34:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 20:34:02 | ------------------------------------

2019-11-20 20:34:02 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-f9c9e312-22dd-4b5e-a54b-6cb21e749d56</node><jids><value>admin@localhost</value></jids></data>

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