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

Test duration: 10.334s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.123s
2019-11-25 20:47:53 |

2019-11-25 20:47:53 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:53 | ------------------------------------

2019-11-25 20:47:53 | [Mutex] waiting for: [configured:node:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:node-19037893-f215-4d90-ac15-d2fd1f49a59f]

2019-11-25 20:47:53 | [Mutex] received everything.

2019-11-25 20:47:53 | [Mutex] isItemNotified: configured:node:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:node-19037893-f215-4d90-ac15-d2fd1f49a59f :: true

2019-11-25 20:47:54 | [Mutex] waiting for: [received:nodes:5503d454-d6ea-467f-a8c8-9b6e5dddb74e:localhost]

2019-11-25 20:47:54 | [Mutex] received everything.

2019-11-25 20:47:54 | [Mutex] isItemNotified: received:node:5503d454-d6ea-467f-a8c8-9b6e5dddb74e:localhost:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:Node 62efc130-8d6c-4097-a139-6c9ac797d0c6 :: true

2019-11-25 20:47:54 | [Mutex] waiting for: [received:nodes:8944d1e4-ae60-4f33-8813-3f78024ec3ef:localhost]

2019-11-25 20:47:54 | [Mutex] received everything.

2019-11-25 20:47:54 | [Mutex] isItemNotified: received:node:8944d1e4-ae60-4f33-8813-3f78024ec3ef:localhost:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:Node 62efc130-8d6c-4097-a139-6c9ac797d0c6 :: false

createNodes 1.642s
2019-11-25 20:47:50 |

2019-11-25 20:47:50 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:50 | ------------------------------------

2019-11-25 20:47:50 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 62efc130-8d6c-4097-a139-6c9ac797d0c6</title></pubsub></data>

2019-11-25 20:47: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-25 20:47:52 | [Mutex] waiting for: [received:nodes:a2818f9b-411f-4121-9f3f-9d0589db0dfc:localhost]

2019-11-25 20:47:52 | [Mutex] received everything.

2019-11-25 20:47:52 | [Mutex] isItemNotified: received:node:a2818f9b-411f-4121-9f3f-9d0589db0dfc:localhost:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:Node 62efc130-8d6c-4097-a139-6c9ac797d0c6 :: true

createSubnodes 1.029s
2019-11-25 20:47:52 |

2019-11-25 20:47:52 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:52 | ------------------------------------

2019-11-25 20:47:52 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-19037893-f215-4d90-ac15-d2fd1f49a59f</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 19037893-f215-4d90-ac15-d2fd1f49a59f</title></pubsub></data>

2019-11-25 20:47:52 | 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 20:47:53 | [Mutex] waiting for: [received:nodes:b4710c45-d772-4936-b212-c208b2321ecb:localhost]

2019-11-25 20:47:53 | [Mutex] received everything.

2019-11-25 20:47:53 | [Mutex] isItemNotified: received:node:b4710c45-d772-4936-b212-c208b2321ecb:localhost:node-19037893-f215-4d90-ac15-d2fd1f49a59f:Node 19037893-f215-4d90-ac15-d2fd1f49a59f :: true

deleteNodes 1.025s
2019-11-25 20:47:59 |

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

2019-11-25 20:47:59 | ------------------------------------

2019-11-25 20:47:59 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-19037893-f215-4d90-ac15-d2fd1f49a59f</node></data>

2019-11-25 20:47:59 | 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 20:48:00 | [Mutex] waiting for: [received:nodes:de9cde2c-2c6f-4291-a927-327b3b58e1d1:localhost]

2019-11-25 20:48:00 | [Mutex] waiting for: [received:nodes:de9cde2c-2c6f-4291-a927-327b3b58e1d1:localhost]

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

2019-11-25 20:48:00 | [Mutex] isItemNotified: received:node:de9cde2c-2c6f-4291-a927-327b3b58e1d1:localhost:node-19037893-f215-4d90-ac15-d2fd1f49a59f:Node 19037893-f215-4d90-ac15-d2fd1f49a59f :: false

deleteSubnodes 1.160s
2019-11-25 20:47:57 |

2019-11-25 20:47:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:57 | ------------------------------------

2019-11-25 20:47:57 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node></data>

2019-11-25 20:47: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-25 20:47:59 | [Mutex] waiting for: [received:nodes:789fc912-1240-471b-b70d-9dc129096d6d:localhost]

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

2019-11-25 20:47:59 | [Mutex] isItemNotified: received:node:789fc912-1240-471b-b70d-9dc129096d6d:localhost:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:Node 62efc130-8d6c-4097-a139-6c9ac797d0c6 :: false

2019-11-25 20:47:59 | [Mutex] waiting for: [received:nodes:fd17bc16-e63f-4554-84f5-715166a7aa38:localhost]

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

2019-11-25 20:47:59 | [Mutex] isItemNotified: received:node:fd17bc16-e63f-4554-84f5-715166a7aa38:localhost:node-62efc130-8d6c-4097-a139-6c9ac797d0c6:Node 62efc130-8d6c-4097-a139-6c9ac797d0c6 :: false

publishItemsToNodes 0.344s
2019-11-25 20:47:55 |

2019-11-25 20:47:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:55 | ------------------------------------

2019-11-25 20:47:55 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node><item-id>item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</item-id><entry><test>item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</test></entry></data>

2019-11-25 20:47: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-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</value></item-id></result>

2019-11-25 20:47:55 | [Mutex] received everything.

2019-11-25 20:47:55 | [Mutex] isItemNotified: published:item:notifieditem-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a:admin@localhost :: true

retractItemsFromNodes 0.227s
2019-11-25 20:47:56 |

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

2019-11-25 20:47:56 | ------------------------------------

2019-11-25 20:47:56 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node><item-id>item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</item-id></data>

2019-11-25 20:47: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-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</value></item-id></result>

2019-11-25 20:47:56 | [Mutex] received everything.

2019-11-25 20:47:56 | [Mutex] isItemNotified: retracted:item:notifieditem-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a:admin@localhost :: true

retrieveItemsFromNodes 0.252s
2019-11-25 20:47:55 |

2019-11-25 20:47:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:55 | ------------------------------------

2019-11-25 20:47:55 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node><item-id>item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</item-id></data>

2019-11-25 20:47:56 | 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-62efc130-8d6c-4097-a139-6c9ac797d0c6</value></node><item-id label="Item ID" type="text-single"><value>item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</value></item-id><item label="Item" type="text-multi"><value><item id="item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a"><test>item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a</test></item></value></item></result>

2019-11-25 20:47:56 | [Mutex] notify: [retrieved:item:item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a:payload-matches:true:localhost]

2019-11-25 20:47:56 | [Mutex] received everything.

2019-11-25 20:47:56 | [Mutex] isItemNotified: retrieved:item:item-62b3e1e0-b3f1-4552-a1f1-72a552d97d0a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.188s
2019-11-25 20:47:56 |

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

2019-11-25 20:47:56 | ------------------------------------

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

2019-11-25 20:47:56 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-19037893-f215-4d90-ac15-d2fd1f49a59f</value><value>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2019-11-25 20:47:56 |

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

2019-11-25 20:47:56 | ------------------------------------

2019-11-25 20:47:56 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-62efc130-8d6c-4097-a139-6c9ac797d0c6)</node-pattern></data>

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

subscribeNodes 1.244s
2019-11-25 20:47:54 |

2019-11-25 20:47:54 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-25 20:47:54 | ------------------------------------

2019-11-25 20:47:54 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node><jids><value>admin@localhost</value></jids></data>

2019-11-25 20:47: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.263s
2019-11-25 20:47:56 |

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

2019-11-25 20:47:56 | ------------------------------------

2019-11-25 20:47:56 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-62efc130-8d6c-4097-a139-6c9ac797d0c6</node><jids><value>admin@localhost</value></jids></data>

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