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

Test duration: 10.657s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.147s
2019-11-27 20:34:11 |

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

2019-11-27 20:34:11 | ------------------------------------

2019-11-27 20:34:11 | [Mutex] waiting for: [configured:node:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:node-45de6fd1-868b-4295-bfdb-37830b05422e]

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

2019-11-27 20:34:11 | [Mutex] isItemNotified: configured:node:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:node-45de6fd1-868b-4295-bfdb-37830b05422e :: true

2019-11-27 20:34:12 | [Mutex] waiting for: [received:nodes:3c6e91d7-8c3c-4da8-8017-71f8ed1aa29a:localhost]

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

2019-11-27 20:34:12 | [Mutex] isItemNotified: received:node:3c6e91d7-8c3c-4da8-8017-71f8ed1aa29a:localhost:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:Node 7e1775ee-59ce-454d-b0a5-aad8910f7035 :: true

2019-11-27 20:34:12 | [Mutex] waiting for: [received:nodes:18390742-cae1-4248-a074-00e380116b6e:localhost]

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

2019-11-27 20:34:12 | [Mutex] isItemNotified: received:node:18390742-cae1-4248-a074-00e380116b6e:localhost:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:Node 7e1775ee-59ce-454d-b0a5-aad8910f7035 :: false

createNodes 1.673s
2019-11-27 20:34:09 |

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

2019-11-27 20:34:09 | ------------------------------------

2019-11-27 20:34:09 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 7e1775ee-59ce-454d-b0a5-aad8910f7035</title></pubsub></data>

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

2019-11-27 20:34:10 | [Mutex] waiting for: [received:nodes:62a22dc7-7aef-493d-aae1-4efd7d43238d:localhost]

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

2019-11-27 20:34:10 | [Mutex] isItemNotified: received:node:62a22dc7-7aef-493d-aae1-4efd7d43238d:localhost:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:Node 7e1775ee-59ce-454d-b0a5-aad8910f7035 :: true

createSubnodes 1.032s
2019-11-27 20:34:10 |

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

2019-11-27 20:34:10 | ------------------------------------

2019-11-27 20:34:10 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-45de6fd1-868b-4295-bfdb-37830b05422e</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 45de6fd1-868b-4295-bfdb-37830b05422e</title></pubsub></data>

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

2019-11-27 20:34:11 | [Mutex] waiting for: [received:nodes:2face8a9-b8a5-49a3-8c6e-d8c9d0b47909:localhost]

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

2019-11-27 20:34:11 | [Mutex] isItemNotified: received:node:2face8a9-b8a5-49a3-8c6e-d8c9d0b47909:localhost:node-45de6fd1-868b-4295-bfdb-37830b05422e:Node 45de6fd1-868b-4295-bfdb-37830b05422e :: true

deleteNodes 1.025s
2019-11-27 20:34:17 |

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

2019-11-27 20:34:17 | ------------------------------------

2019-11-27 20:34:17 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-45de6fd1-868b-4295-bfdb-37830b05422e</node></data>

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

2019-11-27 20:34:19 | [Mutex] waiting for: [received:nodes:41b83e01-eabc-4285-9070-41bfc32ad54f:localhost]

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

2019-11-27 20:34:19 | [Mutex] isItemNotified: received:node:41b83e01-eabc-4285-9070-41bfc32ad54f:localhost:node-45de6fd1-868b-4295-bfdb-37830b05422e:Node 45de6fd1-868b-4295-bfdb-37830b05422e :: false

deleteSubnodes 1.363s
2019-11-27 20:34:16 |

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

2019-11-27 20:34:16 | ------------------------------------

2019-11-27 20:34:16 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node></data>

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

2019-11-27 20:34:17 | [Mutex] waiting for: [received:nodes:eb2d5325-9e4e-440e-8125-74d8ffae19e1:localhost]

2019-11-27 20:34:17 | [Mutex] waiting for: [received:nodes:eb2d5325-9e4e-440e-8125-74d8ffae19e1:localhost]

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

2019-11-27 20:34:17 | [Mutex] isItemNotified: received:node:eb2d5325-9e4e-440e-8125-74d8ffae19e1:localhost:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:Node 7e1775ee-59ce-454d-b0a5-aad8910f7035 :: false

2019-11-27 20:34:17 | [Mutex] waiting for: [received:nodes:62aaa284-809d-481e-bac4-2c6c4931a221:localhost]

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

2019-11-27 20:34:17 | [Mutex] isItemNotified: received:node:62aaa284-809d-481e-bac4-2c6c4931a221:localhost:node-7e1775ee-59ce-454d-b0a5-aad8910f7035:Node 7e1775ee-59ce-454d-b0a5-aad8910f7035 :: false

publishItemsToNodes 0.311s
2019-11-27 20:34:14 |

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

2019-11-27 20:34:14 | ------------------------------------

2019-11-27 20:34:14 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node><item-id>item-3584480f-47dc-43cb-9a20-45bc57dddb0a</item-id><entry><test>item-3584480f-47dc-43cb-9a20-45bc57dddb0a</test></entry></data>

2019-11-27 20:34:14 | 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-3584480f-47dc-43cb-9a20-45bc57dddb0a</value></item-id></result>

2019-11-27 20:34:14 | [Mutex] waiting for: [published:item:notifieditem-3584480f-47dc-43cb-9a20-45bc57dddb0a:admin@localhost]

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

2019-11-27 20:34:14 | [Mutex] isItemNotified: published:item:notifieditem-3584480f-47dc-43cb-9a20-45bc57dddb0a:admin@localhost :: true

retractItemsFromNodes 0.287s
2019-11-27 20:34:14 |

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

2019-11-27 20:34:14 | ------------------------------------

2019-11-27 20:34:14 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node><item-id>item-3584480f-47dc-43cb-9a20-45bc57dddb0a</item-id></data>

2019-11-27 20:34:15 | 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-3584480f-47dc-43cb-9a20-45bc57dddb0a</value></item-id></result>

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

2019-11-27 20:34:15 | [Mutex] isItemNotified: retracted:item:notifieditem-3584480f-47dc-43cb-9a20-45bc57dddb0a:admin@localhost :: true

retrieveItemsFromNodes 0.243s
2019-11-27 20:34:14 |

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

2019-11-27 20:34:14 | ------------------------------------

2019-11-27 20:34:14 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node><item-id>item-3584480f-47dc-43cb-9a20-45bc57dddb0a</item-id></data>

2019-11-27 20:34:14 | 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-7e1775ee-59ce-454d-b0a5-aad8910f7035</value></node><item-id type="text-single" label="Item ID"><value>item-3584480f-47dc-43cb-9a20-45bc57dddb0a</value></item-id><item type="text-multi" label="Item"><value><item id="item-3584480f-47dc-43cb-9a20-45bc57dddb0a"><test>item-3584480f-47dc-43cb-9a20-45bc57dddb0a</test></item></value></item></result>

2019-11-27 20:34:14 | [Mutex] notify: [retrieved:item:item-3584480f-47dc-43cb-9a20-45bc57dddb0a:payload-matches:true:localhost]

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

2019-11-27 20:34:14 | [Mutex] isItemNotified: retrieved:item:item-3584480f-47dc-43cb-9a20-45bc57dddb0a:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.264s
2019-11-27 20:34:14 |

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

2019-11-27 20:34:14 | ------------------------------------

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

2019-11-27 20:34:14 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</value><value>node-45de6fd1-868b-4295-bfdb-37830b05422e</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.066s
2019-11-27 20:34:14 |

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

2019-11-27 20:34:14 | ------------------------------------

2019-11-27 20:34:14 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-7e1775ee-59ce-454d-b0a5-aad8910f7035)</node-pattern></data>

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

subscribeNodes 1.135s
2019-11-27 20:34:12 |

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

2019-11-27 20:34:12 | ------------------------------------

2019-11-27 20:34:12 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.335s
2019-11-27 20:34:15 |

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

2019-11-27 20:34:15 | ------------------------------------

2019-11-27 20:34:15 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-7e1775ee-59ce-454d-b0a5-aad8910f7035</node><jids><value>admin@localhost</value></jids></data>

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