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

Test duration: 10.234s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.119s
2019-11-20 19:03:05 |

2019-11-20 19:03:05 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:05 | ------------------------------------

2019-11-20 19:03:05 | [Mutex] waiting for: [configured:node:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:node-94acfa8f-6e1c-470e-a020-d1ac27635526]

2019-11-20 19:03:05 | [Mutex] received everything.

2019-11-20 19:03:05 | [Mutex] isItemNotified: configured:node:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:node-94acfa8f-6e1c-470e-a020-d1ac27635526 :: true

2019-11-20 19:03:06 | [Mutex] waiting for: [received:nodes:6ba3220b-fad3-4f89-987b-daae901f7296:localhost]

2019-11-20 19:03:06 | [Mutex] received everything.

2019-11-20 19:03:06 | [Mutex] isItemNotified: received:node:6ba3220b-fad3-4f89-987b-daae901f7296:localhost:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:Node 0b7334a7-f1af-4486-86a0-001a98bd8f16 :: true

2019-11-20 19:03:06 | [Mutex] waiting for: [received:nodes:1005a5ab-b9ea-49b4-9035-415ed306c2ba:localhost]

2019-11-20 19:03:06 | [Mutex] received everything.

2019-11-20 19:03:06 | [Mutex] isItemNotified: received:node:1005a5ab-b9ea-49b4-9035-415ed306c2ba:localhost:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:Node 0b7334a7-f1af-4486-86a0-001a98bd8f16 :: false

createNodes 1.686s
2019-11-20 19:03:02 |

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

2019-11-20 19:03:02 | ------------------------------------

2019-11-20 19:03:02 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 0b7334a7-f1af-4486-86a0-001a98bd8f16</title></pubsub></data>

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

2019-11-20 19:03:04 | [Mutex] waiting for: [received:nodes:90c07c20-6100-4a7d-9bac-182b5e0a5303:localhost]

2019-11-20 19:03:04 | [Mutex] received everything.

2019-11-20 19:03:04 | [Mutex] isItemNotified: received:node:90c07c20-6100-4a7d-9bac-182b5e0a5303:localhost:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:Node 0b7334a7-f1af-4486-86a0-001a98bd8f16 :: true

createSubnodes 1.023s
2019-11-20 19:03:04 |

2019-11-20 19:03:04 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:04 | ------------------------------------

2019-11-20 19:03:04 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-94acfa8f-6e1c-470e-a020-d1ac27635526</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 94acfa8f-6e1c-470e-a020-d1ac27635526</title></pubsub></data>

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

2019-11-20 19:03:05 | [Mutex] waiting for: [received:nodes:6a0b6ea3-8656-480a-a5bd-f7e5e03f813e:localhost]

2019-11-20 19:03:05 | [Mutex] received everything.

2019-11-20 19:03:05 | [Mutex] isItemNotified: received:node:6a0b6ea3-8656-480a-a5bd-f7e5e03f813e:localhost:node-94acfa8f-6e1c-470e-a020-d1ac27635526:Node 94acfa8f-6e1c-470e-a020-d1ac27635526 :: true

deleteNodes 1.026s
2019-11-20 19:03:11 |

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

2019-11-20 19:03:11 | ------------------------------------

2019-11-20 19:03:11 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-94acfa8f-6e1c-470e-a020-d1ac27635526</node></data>

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

2019-11-20 19:03:12 | [Mutex] waiting for: [received:nodes:04a27304-554a-420b-9baf-773ffe577be2:localhost]

2019-11-20 19:03:12 | [Mutex] received everything.

2019-11-20 19:03:12 | [Mutex] isItemNotified: received:node:04a27304-554a-420b-9baf-773ffe577be2:localhost:node-94acfa8f-6e1c-470e-a020-d1ac27635526:Node 94acfa8f-6e1c-470e-a020-d1ac27635526 :: false

deleteSubnodes 1.166s
2019-11-20 19:03:10 |

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

2019-11-20 19:03:10 | ------------------------------------

2019-11-20 19:03:10 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node></data>

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

2019-11-20 19:03:11 | [Mutex] waiting for: [received:nodes:d4a4961e-04b2-47ce-a788-f2eac55f89ca:localhost]

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

2019-11-20 19:03:11 | [Mutex] isItemNotified: received:node:d4a4961e-04b2-47ce-a788-f2eac55f89ca:localhost:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:Node 0b7334a7-f1af-4486-86a0-001a98bd8f16 :: false

2019-11-20 19:03:11 | [Mutex] waiting for: [received:nodes:08596664-4b76-47db-bd2c-5da51033e810:localhost]

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

2019-11-20 19:03:11 | [Mutex] isItemNotified: received:node:08596664-4b76-47db-bd2c-5da51033e810:localhost:node-0b7334a7-f1af-4486-86a0-001a98bd8f16:Node 0b7334a7-f1af-4486-86a0-001a98bd8f16 :: false

publishItemsToNodes 0.255s
2019-11-20 19:03:07 |

2019-11-20 19:03:07 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:07 | ------------------------------------

2019-11-20 19:03:07 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node><item-id>item-bd6cf048-1f33-4a1c-beff-57a01d38b299</item-id><entry><test>item-bd6cf048-1f33-4a1c-beff-57a01d38b299</test></entry></data>

2019-11-20 19:03:08 | 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-bd6cf048-1f33-4a1c-beff-57a01d38b299</value></item-id></result>

2019-11-20 19:03:08 | [Mutex] waiting for: [published:item:notifieditem-bd6cf048-1f33-4a1c-beff-57a01d38b299:admin@localhost]

2019-11-20 19:03:08 | [Mutex] received everything.

2019-11-20 19:03:08 | [Mutex] isItemNotified: published:item:notifieditem-bd6cf048-1f33-4a1c-beff-57a01d38b299:admin@localhost :: true

retractItemsFromNodes 0.242s
2019-11-20 19:03:08 |

2019-11-20 19:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:08 | ------------------------------------

2019-11-20 19:03:08 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node><item-id>item-bd6cf048-1f33-4a1c-beff-57a01d38b299</item-id></data>

2019-11-20 19:03:08 | 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-bd6cf048-1f33-4a1c-beff-57a01d38b299</value></item-id></result>

2019-11-20 19:03:08 | [Mutex] waiting for: [retracted:item:notifieditem-bd6cf048-1f33-4a1c-beff-57a01d38b299:admin@localhost]

2019-11-20 19:03:08 | [Mutex] received everything.

2019-11-20 19:03:08 | [Mutex] isItemNotified: retracted:item:notifieditem-bd6cf048-1f33-4a1c-beff-57a01d38b299:admin@localhost :: true

retrieveItemsFromNodes 0.172s
2019-11-20 19:03:08 |

2019-11-20 19:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:08 | ------------------------------------

2019-11-20 19:03:08 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node><item-id>item-bd6cf048-1f33-4a1c-beff-57a01d38b299</item-id></data>

2019-11-20 19:03:08 | 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-0b7334a7-f1af-4486-86a0-001a98bd8f16</value></node><item-id label="Item ID" type="text-single"><value>item-bd6cf048-1f33-4a1c-beff-57a01d38b299</value></item-id><item label="Item" type="text-multi"><value><item id="item-bd6cf048-1f33-4a1c-beff-57a01d38b299"><test>item-bd6cf048-1f33-4a1c-beff-57a01d38b299</test></item></value></item></result>

2019-11-20 19:03:08 | [Mutex] notify: [retrieved:item:item-bd6cf048-1f33-4a1c-beff-57a01d38b299:payload-matches:true:localhost]

2019-11-20 19:03:08 | [Mutex] received everything.

2019-11-20 19:03:08 | [Mutex] isItemNotified: retrieved:item:item-bd6cf048-1f33-4a1c-beff-57a01d38b299:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.219s
2019-11-20 19:03:08 |

2019-11-20 19:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:08 | ------------------------------------

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

2019-11-20 19:03:08 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</value><value>node-94acfa8f-6e1c-470e-a020-d1ac27635526</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.062s
2019-11-20 19:03:08 |

2019-11-20 19:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:08 | ------------------------------------

2019-11-20 19:03:08 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-0b7334a7-f1af-4486-86a0-001a98bd8f16)</node-pattern></data>

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

subscribeNodes 1.127s
2019-11-20 19:03:06 |

2019-11-20 19:03:06 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:06 | ------------------------------------

2019-11-20 19:03:06 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.232s
2019-11-20 19:03:08 |

2019-11-20 19:03:08 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-20 19:03:08 | ------------------------------------

2019-11-20 19:03:08 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-0b7334a7-f1af-4486-86a0-001a98bd8f16</node><jids><value>admin@localhost</value></jids></data>

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