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

Test duration: 10.768s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.123s
2019-11-25 19:00:33 |

2019-11-25 19:00:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:33 | ------------------------------------

2019-11-25 19:00:33 | [Mutex] waiting for: [configured:node:node-88db67dd-f425-4651-94ef-28bbc878889b:node-b30effd5-9f21-40ae-8824-a5d254a36516]

2019-11-25 19:00:33 | [Mutex] received everything.

2019-11-25 19:00:33 | [Mutex] isItemNotified: configured:node:node-88db67dd-f425-4651-94ef-28bbc878889b:node-b30effd5-9f21-40ae-8824-a5d254a36516 :: true

2019-11-25 19:00:34 | [Mutex] waiting for: [received:nodes:bf86262d-5822-4f27-bec7-97a45b0b74e6:localhost]

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

2019-11-25 19:00:34 | [Mutex] isItemNotified: received:node:bf86262d-5822-4f27-bec7-97a45b0b74e6:localhost:node-88db67dd-f425-4651-94ef-28bbc878889b:Node 88db67dd-f425-4651-94ef-28bbc878889b :: true

2019-11-25 19:00:34 | [Mutex] waiting for: [received:nodes:8c73940a-ef85-4cc2-8b7f-b29e6bc94e88:localhost]

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

2019-11-25 19:00:34 | [Mutex] isItemNotified: received:node:8c73940a-ef85-4cc2-8b7f-b29e6bc94e88:localhost:node-88db67dd-f425-4651-94ef-28bbc878889b:Node 88db67dd-f425-4651-94ef-28bbc878889b :: false

createNodes 1.827s
2019-11-25 19:00:30 |

2019-11-25 19:00:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:30 | ------------------------------------

2019-11-25 19:00:30 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 88db67dd-f425-4651-94ef-28bbc878889b</title></pubsub></data>

2019-11-25 19:00:31 | 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 19:00:32 | [Mutex] waiting for: [received:nodes:7315a3ee-bacf-4977-a758-60d7fdd0eb22:localhost]

2019-11-25 19:00:32 | [Mutex] waiting for: [received:nodes:7315a3ee-bacf-4977-a758-60d7fdd0eb22:localhost]

2019-11-25 19:00:32 | [Mutex] received everything.

2019-11-25 19:00:32 | [Mutex] isItemNotified: received:node:7315a3ee-bacf-4977-a758-60d7fdd0eb22:localhost:node-88db67dd-f425-4651-94ef-28bbc878889b:Node 88db67dd-f425-4651-94ef-28bbc878889b :: true

createSubnodes 1.027s
2019-11-25 19:00:32 |

2019-11-25 19:00:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:32 | ------------------------------------

2019-11-25 19:00:32 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-b30effd5-9f21-40ae-8824-a5d254a36516</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node b30effd5-9f21-40ae-8824-a5d254a36516</title></pubsub></data>

2019-11-25 19:00:32 | 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 19:00:33 | [Mutex] waiting for: [received:nodes:4905f814-f63c-431b-92fb-b1db21254719:localhost]

2019-11-25 19:00:33 | [Mutex] received everything.

2019-11-25 19:00:33 | [Mutex] isItemNotified: received:node:4905f814-f63c-431b-92fb-b1db21254719:localhost:node-b30effd5-9f21-40ae-8824-a5d254a36516:Node b30effd5-9f21-40ae-8824-a5d254a36516 :: true

deleteNodes 1.026s
2019-11-25 19:00:39 |

2019-11-25 19:00:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:39 | ------------------------------------

2019-11-25 19:00:39 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-b30effd5-9f21-40ae-8824-a5d254a36516</node></data>

2019-11-25 19:00:39 | 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 19:00:40 | [Mutex] waiting for: [received:nodes:9fd013bb-48f4-4861-8af8-ab12ec537d3b:localhost]

2019-11-25 19:00:40 | [Mutex] received everything.

2019-11-25 19:00:40 | [Mutex] isItemNotified: received:node:9fd013bb-48f4-4861-8af8-ab12ec537d3b:localhost:node-b30effd5-9f21-40ae-8824-a5d254a36516:Node b30effd5-9f21-40ae-8824-a5d254a36516 :: false

deleteSubnodes 1.184s
2019-11-25 19:00:38 |

2019-11-25 19:00:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:38 | ------------------------------------

2019-11-25 19:00:38 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node></data>

2019-11-25 19:00:38 | 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 19:00:39 | [Mutex] waiting for: [received:nodes:cc82d8fd-7f0e-43ff-b14d-49c29f44f759:localhost]

2019-11-25 19:00:39 | [Mutex] received everything.

2019-11-25 19:00:39 | [Mutex] isItemNotified: received:node:cc82d8fd-7f0e-43ff-b14d-49c29f44f759:localhost:node-88db67dd-f425-4651-94ef-28bbc878889b:Node 88db67dd-f425-4651-94ef-28bbc878889b :: false

2019-11-25 19:00:39 | [Mutex] waiting for: [received:nodes:bd2c5293-b4bb-482f-99c9-aaa98c93942e:localhost]

2019-11-25 19:00:39 | [Mutex] received everything.

2019-11-25 19:00:39 | [Mutex] isItemNotified: received:node:bd2c5293-b4bb-482f-99c9-aaa98c93942e:localhost:node-88db67dd-f425-4651-94ef-28bbc878889b:Node 88db67dd-f425-4651-94ef-28bbc878889b :: false

publishItemsToNodes 0.330s
2019-11-25 19:00:35 |

2019-11-25 19:00:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:35 | ------------------------------------

2019-11-25 19:00:35 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node><item-id>item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</item-id><entry><test>item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</test></entry></data>

2019-11-25 19:00:36 | 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-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</value></item-id></result>

2019-11-25 19:00:36 | [Mutex] received everything.

2019-11-25 19:00:36 | [Mutex] isItemNotified: published:item:notifieditem-8a9b4a23-9b22-4839-abd8-c797ad47ef0a:admin@localhost :: true

retractItemsFromNodes 0.335s
2019-11-25 19:00:36 |

2019-11-25 19:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:36 | ------------------------------------

2019-11-25 19:00:36 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node><item-id>item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</item-id></data>

2019-11-25 19:00:37 | 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-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</value></item-id></result>

2019-11-25 19:00:37 | [Mutex] received everything.

2019-11-25 19:00:37 | [Mutex] isItemNotified: retracted:item:notifieditem-8a9b4a23-9b22-4839-abd8-c797ad47ef0a:admin@localhost :: true

retrieveItemsFromNodes 0.232s
2019-11-25 19:00:36 |

2019-11-25 19:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:36 | ------------------------------------

2019-11-25 19:00:36 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node><item-id>item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</item-id></data>

2019-11-25 19:00:36 | 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-88db67dd-f425-4651-94ef-28bbc878889b</value></node><item-id label="Item ID" type="text-single"><value>item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</value></item-id><item label="Item" type="text-multi"><value><item id="item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a"><test>item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a</test></item></value></item></result>

2019-11-25 19:00:36 | [Mutex] notify: [retrieved:item:item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a:payload-matches:true:localhost]

2019-11-25 19:00:36 | [Mutex] received everything.

2019-11-25 19:00:36 | [Mutex] isItemNotified: retrieved:item:item-8a9b4a23-9b22-4839-abd8-c797ad47ef0a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.215s
2019-11-25 19:00:36 |

2019-11-25 19:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:36 | ------------------------------------

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

2019-11-25 19:00:36 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-88db67dd-f425-4651-94ef-28bbc878889b</value><value>node-b30effd5-9f21-40ae-8824-a5d254a36516</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.059s
2019-11-25 19:00:36 |

2019-11-25 19:00:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:36 | ------------------------------------

2019-11-25 19:00:36 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-88db67dd-f425-4651-94ef-28bbc878889b)</node-pattern></data>

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

subscribeNodes 1.133s
2019-11-25 19:00:34 |

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

2019-11-25 19:00:34 | ------------------------------------

2019-11-25 19:00:34 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.311s
2019-11-25 19:00:37 |

2019-11-25 19:00:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 19:00:37 | ------------------------------------

2019-11-25 19:00:37 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-88db67dd-f425-4651-94ef-28bbc878889b</node><jids><value>admin@localhost</value></jids></data>

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