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

Test duration: 10.430s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.164s
2019-11-21 03:33:56 |

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

2019-11-21 03:33:56 | ------------------------------------

2019-11-21 03:33:56 | [Mutex] waiting for: [configured:node:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:node-f0971fb3-8982-4afb-94a2-3552b8aeab32]

2019-11-21 03:33:56 | [Mutex] received everything.

2019-11-21 03:33:56 | [Mutex] isItemNotified: configured:node:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:node-f0971fb3-8982-4afb-94a2-3552b8aeab32 :: true

2019-11-21 03:33:57 | [Mutex] waiting for: [received:nodes:3f75069d-37c0-437b-895e-e6b00463c235:localhost]

2019-11-21 03:33:57 | [Mutex] received everything.

2019-11-21 03:33:57 | [Mutex] isItemNotified: received:node:3f75069d-37c0-437b-895e-e6b00463c235:localhost:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:Node 0dc2c2a2-ae39-42b2-bbea-f938ead3aeab :: true

2019-11-21 03:33:57 | [Mutex] waiting for: [received:nodes:36df94c9-c811-41e3-9b36-59beb4bfc0fc:localhost]

2019-11-21 03:33:57 | [Mutex] received everything.

2019-11-21 03:33:57 | [Mutex] isItemNotified: received:node:36df94c9-c811-41e3-9b36-59beb4bfc0fc:localhost:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:Node 0dc2c2a2-ae39-42b2-bbea-f938ead3aeab :: false

createNodes 1.750s
2019-11-21 03:33:53 |

2019-11-21 03:33:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 03:33:53 | ------------------------------------

2019-11-21 03:33:53 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</title></pubsub></data>

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

2019-11-21 03:33:55 | [Mutex] waiting for: [received:nodes:6c32edf9-c0ea-4376-bde8-414c157c2780:localhost]

2019-11-21 03:33:55 | [Mutex] received everything.

2019-11-21 03:33:55 | [Mutex] isItemNotified: received:node:6c32edf9-c0ea-4376-bde8-414c157c2780:localhost:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:Node 0dc2c2a2-ae39-42b2-bbea-f938ead3aeab :: true

createSubnodes 1.030s
2019-11-21 03:33:55 |

2019-11-21 03:33:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 03:33:55 | ------------------------------------

2019-11-21 03:33:55 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-f0971fb3-8982-4afb-94a2-3552b8aeab32</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node f0971fb3-8982-4afb-94a2-3552b8aeab32</title></pubsub></data>

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

2019-11-21 03:33:56 | [Mutex] waiting for: [received:nodes:060151e0-a25a-4dd3-bbb9-85bf7f2e7763:localhost]

2019-11-21 03:33:56 | [Mutex] received everything.

2019-11-21 03:33:56 | [Mutex] isItemNotified: received:node:060151e0-a25a-4dd3-bbb9-85bf7f2e7763:localhost:node-f0971fb3-8982-4afb-94a2-3552b8aeab32:Node f0971fb3-8982-4afb-94a2-3552b8aeab32 :: true

deleteNodes 1.026s
2019-11-21 03:34:02 |

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

2019-11-21 03:34:02 | ------------------------------------

2019-11-21 03:34:02 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-f0971fb3-8982-4afb-94a2-3552b8aeab32</node></data>

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

2019-11-21 03:34:03 | [Mutex] waiting for: [received:nodes:c35b58e8-056f-436b-bd58-2111c4021d00:localhost]

2019-11-21 03:34:03 | [Mutex] received everything.

2019-11-21 03:34:03 | [Mutex] isItemNotified: received:node:c35b58e8-056f-436b-bd58-2111c4021d00:localhost:node-f0971fb3-8982-4afb-94a2-3552b8aeab32:Node f0971fb3-8982-4afb-94a2-3552b8aeab32 :: false

deleteSubnodes 1.182s
2019-11-21 03:34:01 |

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

2019-11-21 03:34:01 | ------------------------------------

2019-11-21 03:34:01 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node></data>

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

2019-11-21 03:34:02 | [Mutex] waiting for: [received:nodes:2453c629-d82a-4ef3-a4dc-2bbcddd98638:localhost]

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

2019-11-21 03:34:02 | [Mutex] isItemNotified: received:node:2453c629-d82a-4ef3-a4dc-2bbcddd98638:localhost:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:Node 0dc2c2a2-ae39-42b2-bbea-f938ead3aeab :: false

2019-11-21 03:34:02 | [Mutex] waiting for: [received:nodes:8eb8af62-456b-4b40-81b4-e1a3d1a369c7:localhost]

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

2019-11-21 03:34:02 | [Mutex] isItemNotified: received:node:8eb8af62-456b-4b40-81b4-e1a3d1a369c7:localhost:node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab:Node 0dc2c2a2-ae39-42b2-bbea-f938ead3aeab :: false

publishItemsToNodes 0.268s
2019-11-21 03:33:58 |

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

2019-11-21 03:33:58 | ------------------------------------

2019-11-21 03:33:58 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node><item-id>item-df676c6f-e712-4635-a524-176c213f30bb</item-id><entry><test>item-df676c6f-e712-4635-a524-176c213f30bb</test></entry></data>

2019-11-21 03:33:58 | 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-df676c6f-e712-4635-a524-176c213f30bb</value></item-id></result>

2019-11-21 03:33:58 | [Mutex] waiting for: [published:item:notifieditem-df676c6f-e712-4635-a524-176c213f30bb:admin@localhost]

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

2019-11-21 03:33:59 | [Mutex] isItemNotified: published:item:notifieditem-df676c6f-e712-4635-a524-176c213f30bb:admin@localhost :: true

retractItemsFromNodes 0.259s
2019-11-21 03:33:59 |

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

2019-11-21 03:33:59 | ------------------------------------

2019-11-21 03:33:59 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node><item-id>item-df676c6f-e712-4635-a524-176c213f30bb</item-id></data>

2019-11-21 03:33:59 | 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-df676c6f-e712-4635-a524-176c213f30bb</value></item-id></result>

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

2019-11-21 03:33:59 | [Mutex] isItemNotified: retracted:item:notifieditem-df676c6f-e712-4635-a524-176c213f30bb:admin@localhost :: true

retrieveItemsFromNodes 0.196s
2019-11-21 03:33:59 |

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

2019-11-21 03:33:59 | ------------------------------------

2019-11-21 03:33:59 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node><item-id>item-df676c6f-e712-4635-a524-176c213f30bb</item-id></data>

2019-11-21 03:33:59 | 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-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</value></node><item-id type="text-single" label="Item ID"><value>item-df676c6f-e712-4635-a524-176c213f30bb</value></item-id><item type="text-multi" label="Item"><value><item id="item-df676c6f-e712-4635-a524-176c213f30bb"><test>item-df676c6f-e712-4635-a524-176c213f30bb</test></item></value></item></result>

2019-11-21 03:33:59 | [Mutex] notify: [retrieved:item:item-df676c6f-e712-4635-a524-176c213f30bb:payload-matches:true:localhost]

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

2019-11-21 03:33:59 | [Mutex] isItemNotified: retrieved:item:item-df676c6f-e712-4635-a524-176c213f30bb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.224s
2019-11-21 03:33:59 |

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

2019-11-21 03:33:59 | ------------------------------------

2019-11-21 03:33:59 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-11-21 03:33:59 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</value><value>node-f0971fb3-8982-4afb-94a2-3552b8aeab32</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2019-11-21 03:33:59 |

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

2019-11-21 03:33:59 | ------------------------------------

2019-11-21 03:33:59 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab)</node-pattern></data>

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

subscribeNodes 1.150s
2019-11-21 03:33:57 |

2019-11-21 03:33:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-21 03:33:57 | ------------------------------------

2019-11-21 03:33:57 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.287s
2019-11-21 03:33:59 |

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

2019-11-21 03:33:59 | ------------------------------------

2019-11-21 03:33:59 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-0dc2c2a2-ae39-42b2-bbea-f938ead3aeab</node><jids><value>admin@localhost</value></jids></data>

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