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

Test duration: 9.838s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.106s
2020-05-26 23:19:57 |

2020-05-26 23:19:57 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:19:57 | ------------------------------------

2020-05-26 23:19:57 | [Mutex] waiting for: [configured:node:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:node-be442c7e-a490-4bbb-8c36-7dcbd690ca14]

2020-05-26 23:19:57 | [Mutex] received everything.

2020-05-26 23:19:57 | [Mutex] isItemNotified: configured:node:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:node-be442c7e-a490-4bbb-8c36-7dcbd690ca14 :: true

2020-05-26 23:19:58 | [Mutex] waiting for: [received:nodes:9960f816-2b78-4528-acd0-5422e9c0c097:localhost]

2020-05-26 23:19:58 | [Mutex] received everything.

2020-05-26 23:19:58 | [Mutex] isItemNotified: received:node:9960f816-2b78-4528-acd0-5422e9c0c097:localhost:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:Node 01c3bcb9-1926-4b22-b052-0930ddb8f3ac :: true

2020-05-26 23:19:58 | [Mutex] waiting for: [received:nodes:a8eac4c2-c380-4143-ac03-95ff9564325c:localhost]

2020-05-26 23:19:58 | [Mutex] received everything.

2020-05-26 23:19:58 | [Mutex] isItemNotified: received:node:a8eac4c2-c380-4143-ac03-95ff9564325c:localhost:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:Node 01c3bcb9-1926-4b22-b052-0930ddb8f3ac :: false

createNodes 1.458s
2020-05-26 23:19:55 |

2020-05-26 23:19:55 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:19:55 | ------------------------------------

2020-05-26 23:19:55 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 01c3bcb9-1926-4b22-b052-0930ddb8f3ac</title></pubsub></data>

2020-05-26 23:19:55 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-26 23:19:56 | [Mutex] waiting for: [received:nodes:40ca7f40-3424-470b-8ae0-d605f39f9b74:localhost]

2020-05-26 23:19:56 | [Mutex] received everything.

2020-05-26 23:19:56 | [Mutex] isItemNotified: received:node:40ca7f40-3424-470b-8ae0-d605f39f9b74:localhost:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:Node 01c3bcb9-1926-4b22-b052-0930ddb8f3ac :: true

createSubnodes 1.020s
2020-05-26 23:19:56 |

2020-05-26 23:19:56 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:19:56 | ------------------------------------

2020-05-26 23:19:56 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-be442c7e-a490-4bbb-8c36-7dcbd690ca14</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node be442c7e-a490-4bbb-8c36-7dcbd690ca14</title></pubsub></data>

2020-05-26 23:19:56 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-26 23:19:57 | [Mutex] waiting for: [received:nodes:632b7c4d-5e05-4845-97e7-311ef2fc7d90:localhost]

2020-05-26 23:19:57 | [Mutex] received everything.

2020-05-26 23:19:57 | [Mutex] isItemNotified: received:node:632b7c4d-5e05-4845-97e7-311ef2fc7d90:localhost:node-be442c7e-a490-4bbb-8c36-7dcbd690ca14:Node be442c7e-a490-4bbb-8c36-7dcbd690ca14 :: true

deleteNodes 1.023s
2020-05-26 23:20:03 |

2020-05-26 23:20:03 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:03 | ------------------------------------

2020-05-26 23:20:03 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-be442c7e-a490-4bbb-8c36-7dcbd690ca14</node></data>

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

2020-05-26 23:20:04 | [Mutex] waiting for: [received:nodes:27b3a804-9a18-4136-ab4d-90f8c998a100:localhost]

2020-05-26 23:20:04 | [Mutex] received everything.

2020-05-26 23:20:04 | [Mutex] isItemNotified: received:node:27b3a804-9a18-4136-ab4d-90f8c998a100:localhost:node-be442c7e-a490-4bbb-8c36-7dcbd690ca14:Node be442c7e-a490-4bbb-8c36-7dcbd690ca14 :: false

deleteSubnodes 1.185s
2020-05-26 23:20:02 |

2020-05-26 23:20:02 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:02 | ------------------------------------

2020-05-26 23:20:02 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node></data>

2020-05-26 23:20:02 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-05-26 23:20:03 | [Mutex] waiting for: [received:nodes:32ecc491-cc04-4601-b118-39882ee6b634:localhost]

2020-05-26 23:20:03 | [Mutex] received everything.

2020-05-26 23:20:03 | [Mutex] isItemNotified: received:node:32ecc491-cc04-4601-b118-39882ee6b634:localhost:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:Node 01c3bcb9-1926-4b22-b052-0930ddb8f3ac :: false

2020-05-26 23:20:03 | [Mutex] waiting for: [received:nodes:478625dd-303d-459f-a152-cfe7f281bc64:localhost]

2020-05-26 23:20:03 | [Mutex] received everything.

2020-05-26 23:20:03 | [Mutex] isItemNotified: received:node:478625dd-303d-459f-a152-cfe7f281bc64:localhost:node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac:Node 01c3bcb9-1926-4b22-b052-0930ddb8f3ac :: false

publishItemsToNodes 0.253s
2020-05-26 23:19:59 |

2020-05-26 23:19:59 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:19:59 | ------------------------------------

2020-05-26 23:19:59 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node><item-id>item-3693cbe1-793c-443d-8f30-8e96df8a2bdb</item-id><entry><test>item-3693cbe1-793c-443d-8f30-8e96df8a2bdb</test></entry></data>

2020-05-26 23:20:00 | 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-3693cbe1-793c-443d-8f30-8e96df8a2bdb</value></item-id></result>

2020-05-26 23:20:00 | [Mutex] waiting for: [published:item:notifieditem-3693cbe1-793c-443d-8f30-8e96df8a2bdb:admin@localhost]

2020-05-26 23:20:00 | [Mutex] received everything.

2020-05-26 23:20:00 | [Mutex] isItemNotified: published:item:notifieditem-3693cbe1-793c-443d-8f30-8e96df8a2bdb:admin@localhost :: true

retractItemsFromNodes 0.235s
2020-05-26 23:20:00 |

2020-05-26 23:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:00 | ------------------------------------

2020-05-26 23:20:00 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node><item-id>item-3693cbe1-793c-443d-8f30-8e96df8a2bdb</item-id></data>

2020-05-26 23:20:00 | 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-3693cbe1-793c-443d-8f30-8e96df8a2bdb</value></item-id></result>

2020-05-26 23:20:00 | [Mutex] received everything.

2020-05-26 23:20:00 | [Mutex] isItemNotified: retracted:item:notifieditem-3693cbe1-793c-443d-8f30-8e96df8a2bdb:admin@localhost :: true

retrieveItemsFromNodes 0.139s
2020-05-26 23:20:00 |

2020-05-26 23:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:00 | ------------------------------------

2020-05-26 23:20:00 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node><item-id>item-3693cbe1-793c-443d-8f30-8e96df8a2bdb</item-id></data>

2020-05-26 23:20:00 | 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-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</value></node><item-id label="Item ID" type="text-single"><value>item-3693cbe1-793c-443d-8f30-8e96df8a2bdb</value></item-id><item label="Item" type="text-multi"><value><item id="item-3693cbe1-793c-443d-8f30-8e96df8a2bdb"><test>item-3693cbe1-793c-443d-8f30-8e96df8a2bdb</test></item></value></item></result>

2020-05-26 23:20:00 | [Mutex] notify: [retrieved:item:item-3693cbe1-793c-443d-8f30-8e96df8a2bdb:payload-matches:true:localhost]

2020-05-26 23:20:00 | [Mutex] received everything.

2020-05-26 23:20:00 | [Mutex] isItemNotified: retrieved:item:item-3693cbe1-793c-443d-8f30-8e96df8a2bdb:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.213s
2020-05-26 23:20:00 |

2020-05-26 23:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:00 | ------------------------------------

2020-05-26 23:20:00 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-05-26 23:20:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-be442c7e-a490-4bbb-8c36-7dcbd690ca14</value><value>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-05-26 23:20:00 |

2020-05-26 23:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:00 | ------------------------------------

2020-05-26 23:20:00 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac)</node-pattern></data>

2020-05-26 23:20:00 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.134s
2020-05-26 23:19:58 |

2020-05-26 23:19:58 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:19:58 | ------------------------------------

2020-05-26 23:19:58 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node><jids><value>admin@localhost</value></jids></data>

2020-05-26 23:19:58 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.228s
2020-05-26 23:20:00 |

2020-05-26 23:20:00 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-05-26 23:20:00 | ------------------------------------

2020-05-26 23:20:00 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-01c3bcb9-1926-4b22-b052-0930ddb8f3ac</node><jids><value>admin@localhost</value></jids></data>

2020-05-26 23:20:01 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>