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

Test duration: 10.429s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.128s
2019-11-22 19:43:53 |

2019-11-22 19:43:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:53 | ------------------------------------

2019-11-22 19:43:53 | [Mutex] waiting for: [configured:node:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:node-635e7cea-d991-49bd-af2b-c09ae0c87b85]

2019-11-22 19:43:53 | [Mutex] received everything.

2019-11-22 19:43:53 | [Mutex] isItemNotified: configured:node:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:node-635e7cea-d991-49bd-af2b-c09ae0c87b85 :: true

2019-11-22 19:43:54 | [Mutex] waiting for: [received:nodes:b2dceb15-cd05-4332-be22-48c5a458b9fd:localhost]

2019-11-22 19:43:54 | [Mutex] received everything.

2019-11-22 19:43:54 | [Mutex] isItemNotified: received:node:b2dceb15-cd05-4332-be22-48c5a458b9fd:localhost:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:Node f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3 :: true

2019-11-22 19:43:54 | [Mutex] waiting for: [received:nodes:475c3cdb-4793-4b5e-9038-4cd5b262fb67:localhost]

2019-11-22 19:43:54 | [Mutex] received everything.

2019-11-22 19:43:54 | [Mutex] isItemNotified: received:node:475c3cdb-4793-4b5e-9038-4cd5b262fb67:localhost:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:Node f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3 :: false

createNodes 1.813s
2019-11-22 19:43:50 |

2019-11-22 19:43:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:50 | ------------------------------------

2019-11-22 19:43:50 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</title></pubsub></data>

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

2019-11-22 19:43:51 | [Mutex] waiting for: [received:nodes:03a057f1-1957-4ae9-8629-d7f8e2e61013:localhost]

2019-11-22 19:43:51 | [Mutex] received everything.

2019-11-22 19:43:51 | [Mutex] isItemNotified: received:node:03a057f1-1957-4ae9-8629-d7f8e2e61013:localhost:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:Node f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3 :: true

createSubnodes 1.036s
2019-11-22 19:43:51 |

2019-11-22 19:43:51 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:51 | ------------------------------------

2019-11-22 19:43:51 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-635e7cea-d991-49bd-af2b-c09ae0c87b85</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 635e7cea-d991-49bd-af2b-c09ae0c87b85</title></pubsub></data>

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

2019-11-22 19:43:52 | [Mutex] waiting for: [received:nodes:ddb9fd07-9226-4058-a755-83f5a71eb92d:localhost]

2019-11-22 19:43:53 | [Mutex] received everything.

2019-11-22 19:43:53 | [Mutex] isItemNotified: received:node:ddb9fd07-9226-4058-a755-83f5a71eb92d:localhost:node-635e7cea-d991-49bd-af2b-c09ae0c87b85:Node 635e7cea-d991-49bd-af2b-c09ae0c87b85 :: true

deleteNodes 1.022s
2019-11-22 19:43:58 |

2019-11-22 19:43:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:58 | ------------------------------------

2019-11-22 19:43:58 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-635e7cea-d991-49bd-af2b-c09ae0c87b85</node></data>

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

2019-11-22 19:43:59 | [Mutex] waiting for: [received:nodes:482b7a1f-bb58-43ca-b6a7-e36de6b6b9a8:localhost]

2019-11-22 19:43:59 | [Mutex] received everything.

2019-11-22 19:43:59 | [Mutex] isItemNotified: received:node:482b7a1f-bb58-43ca-b6a7-e36de6b6b9a8:localhost:node-635e7cea-d991-49bd-af2b-c09ae0c87b85:Node 635e7cea-d991-49bd-af2b-c09ae0c87b85 :: false

deleteSubnodes 1.232s
2019-11-22 19:43:57 |

2019-11-22 19:43:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:57 | ------------------------------------

2019-11-22 19:43:57 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node></data>

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

2019-11-22 19:43:58 | [Mutex] waiting for: [received:nodes:f8445a4e-03bb-4ccc-811c-95f41d421f7f:localhost]

2019-11-22 19:43:58 | [Mutex] received everything.

2019-11-22 19:43:58 | [Mutex] isItemNotified: received:node:f8445a4e-03bb-4ccc-811c-95f41d421f7f:localhost:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:Node f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3 :: false

2019-11-22 19:43:58 | [Mutex] waiting for: [received:nodes:7748a0ee-1144-470e-82f4-77538efd168a:localhost]

2019-11-22 19:43:58 | [Mutex] received everything.

2019-11-22 19:43:58 | [Mutex] isItemNotified: received:node:7748a0ee-1144-470e-82f4-77538efd168a:localhost:node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3:Node f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3 :: false

publishItemsToNodes 0.310s
2019-11-22 19:43:55 |

2019-11-22 19:43:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:55 | ------------------------------------

2019-11-22 19:43:55 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node><item-id>item-fa1f82c8-8b39-489e-b801-cac8cae1b862</item-id><entry><test>item-fa1f82c8-8b39-489e-b801-cac8cae1b862</test></entry></data>

2019-11-22 19:43:55 | 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-fa1f82c8-8b39-489e-b801-cac8cae1b862</value></item-id></result>

2019-11-22 19:43:55 | [Mutex] waiting for: [published:item:notifieditem-fa1f82c8-8b39-489e-b801-cac8cae1b862:admin@localhost]

2019-11-22 19:43:55 | [Mutex] received everything.

2019-11-22 19:43:55 | [Mutex] isItemNotified: published:item:notifieditem-fa1f82c8-8b39-489e-b801-cac8cae1b862:admin@localhost :: true

retractItemsFromNodes 0.239s
2019-11-22 19:43:56 |

2019-11-22 19:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:56 | ------------------------------------

2019-11-22 19:43:56 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node><item-id>item-fa1f82c8-8b39-489e-b801-cac8cae1b862</item-id></data>

2019-11-22 19:43:56 | 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-fa1f82c8-8b39-489e-b801-cac8cae1b862</value></item-id></result>

2019-11-22 19:43:56 | [Mutex] received everything.

2019-11-22 19:43:56 | [Mutex] isItemNotified: retracted:item:notifieditem-fa1f82c8-8b39-489e-b801-cac8cae1b862:admin@localhost :: true

retrieveItemsFromNodes 0.241s
2019-11-22 19:43:55 |

2019-11-22 19:43:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:55 | ------------------------------------

2019-11-22 19:43:55 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node><item-id>item-fa1f82c8-8b39-489e-b801-cac8cae1b862</item-id></data>

2019-11-22 19:43:55 | 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-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</value></node><item-id label="Item ID" type="text-single"><value>item-fa1f82c8-8b39-489e-b801-cac8cae1b862</value></item-id><item label="Item" type="text-multi"><value><item id="item-fa1f82c8-8b39-489e-b801-cac8cae1b862"><test>item-fa1f82c8-8b39-489e-b801-cac8cae1b862</test></item></value></item></result>

2019-11-22 19:43:55 | [Mutex] notify: [retrieved:item:item-fa1f82c8-8b39-489e-b801-cac8cae1b862:payload-matches:true:localhost]

2019-11-22 19:43:55 | [Mutex] received everything.

2019-11-22 19:43:55 | [Mutex] isItemNotified: retrieved:item:item-fa1f82c8-8b39-489e-b801-cac8cae1b862:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.192s
2019-11-22 19:43:55 |

2019-11-22 19:43:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:55 | ------------------------------------

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

2019-11-22 19:43:55 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</value><value>node-635e7cea-d991-49bd-af2b-c09ae0c87b85</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2019-11-22 19:43:56 |

2019-11-22 19:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:56 | ------------------------------------

2019-11-22 19:43:56 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3)</node-pattern></data>

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

subscribeNodes 1.120s
2019-11-22 19:43:54 |

2019-11-22 19:43:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:54 | ------------------------------------

2019-11-22 19:43:54 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.267s
2019-11-22 19:43:56 |

2019-11-22 19:43:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-22 19:43:56 | ------------------------------------

2019-11-22 19:43:56 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-f1ec41e2-5f44-40ea-a9df-39eeac2fe4f3</node><jids><value>admin@localhost</value></jids></data>

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