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

Test duration: 10.591s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.112s
2019-11-24 19:42:43 |

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

2019-11-24 19:42:43 | ------------------------------------

2019-11-24 19:42:43 | [Mutex] waiting for: [configured:node:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:node-3678e767-9d4f-45f3-a12a-5a765da873dd]

2019-11-24 19:42:43 | [Mutex] received everything.

2019-11-24 19:42:43 | [Mutex] isItemNotified: configured:node:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:node-3678e767-9d4f-45f3-a12a-5a765da873dd :: true

2019-11-24 19:42:44 | [Mutex] waiting for: [received:nodes:e99af8c7-b72a-43e9-a8b0-f348564c2629:localhost]

2019-11-24 19:42:44 | [Mutex] received everything.

2019-11-24 19:42:44 | [Mutex] isItemNotified: received:node:e99af8c7-b72a-43e9-a8b0-f348564c2629:localhost:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:Node 96fc6646-bff4-47bb-a6ff-533d76b44a6c :: true

2019-11-24 19:42:44 | [Mutex] waiting for: [received:nodes:5a227258-d780-4f0f-a70f-679a04781690:localhost]

2019-11-24 19:42:44 | [Mutex] received everything.

2019-11-24 19:42:44 | [Mutex] isItemNotified: received:node:5a227258-d780-4f0f-a70f-679a04781690:localhost:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:Node 96fc6646-bff4-47bb-a6ff-533d76b44a6c :: false

createNodes 1.627s
2019-11-24 19:42:40 |

2019-11-24 19:42:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:40 | ------------------------------------

2019-11-24 19:42:40 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 96fc6646-bff4-47bb-a6ff-533d76b44a6c</title></pubsub></data>

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

2019-11-24 19:42:42 | [Mutex] waiting for: [received:nodes:eedc6a88-2a16-4f01-8cc8-fd6c9e26932c:localhost]

2019-11-24 19:42:42 | [Mutex] received everything.

2019-11-24 19:42:42 | [Mutex] isItemNotified: received:node:eedc6a88-2a16-4f01-8cc8-fd6c9e26932c:localhost:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:Node 96fc6646-bff4-47bb-a6ff-533d76b44a6c :: true

createSubnodes 1.046s
2019-11-24 19:42:42 |

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

2019-11-24 19:42:42 | ------------------------------------

2019-11-24 19:42:42 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-3678e767-9d4f-45f3-a12a-5a765da873dd</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 3678e767-9d4f-45f3-a12a-5a765da873dd</title></pubsub></data>

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

2019-11-24 19:42:43 | [Mutex] waiting for: [received:nodes:cd7ffb8f-c9cc-4180-8c8e-a16b9ca16eb0:localhost]

2019-11-24 19:42:43 | [Mutex] waiting for: [received:nodes:cd7ffb8f-c9cc-4180-8c8e-a16b9ca16eb0:localhost]

2019-11-24 19:42:43 | [Mutex] received everything.

2019-11-24 19:42:43 | [Mutex] isItemNotified: received:node:cd7ffb8f-c9cc-4180-8c8e-a16b9ca16eb0:localhost:node-3678e767-9d4f-45f3-a12a-5a765da873dd:Node 3678e767-9d4f-45f3-a12a-5a765da873dd :: true

deleteNodes 1.022s
2019-11-24 19:42:49 |

2019-11-24 19:42:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:49 | ------------------------------------

2019-11-24 19:42:49 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-3678e767-9d4f-45f3-a12a-5a765da873dd</node></data>

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

2019-11-24 19:42:50 | [Mutex] waiting for: [received:nodes:9b36b8eb-1a4d-449b-b1ee-769407644747:localhost]

2019-11-24 19:42:50 | [Mutex] received everything.

2019-11-24 19:42:50 | [Mutex] isItemNotified: received:node:9b36b8eb-1a4d-449b-b1ee-769407644747:localhost:node-3678e767-9d4f-45f3-a12a-5a765da873dd:Node 3678e767-9d4f-45f3-a12a-5a765da873dd :: false

deleteSubnodes 1.193s
2019-11-24 19:42:47 |

2019-11-24 19:42:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:47 | ------------------------------------

2019-11-24 19:42:47 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node></data>

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

2019-11-24 19:42:49 | [Mutex] waiting for: [received:nodes:00608fd0-58fb-4469-92a9-8a5a9071e4bc:localhost]

2019-11-24 19:42:49 | [Mutex] received everything.

2019-11-24 19:42:49 | [Mutex] isItemNotified: received:node:00608fd0-58fb-4469-92a9-8a5a9071e4bc:localhost:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:Node 96fc6646-bff4-47bb-a6ff-533d76b44a6c :: false

2019-11-24 19:42:49 | [Mutex] waiting for: [received:nodes:1b6ed25a-2c92-45f6-96f1-1c9a9aef765b:localhost]

2019-11-24 19:42:49 | [Mutex] received everything.

2019-11-24 19:42:49 | [Mutex] isItemNotified: received:node:1b6ed25a-2c92-45f6-96f1-1c9a9aef765b:localhost:node-96fc6646-bff4-47bb-a6ff-533d76b44a6c:Node 96fc6646-bff4-47bb-a6ff-533d76b44a6c :: false

publishItemsToNodes 0.287s
2019-11-24 19:42:45 |

2019-11-24 19:42:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:45 | ------------------------------------

2019-11-24 19:42:45 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node><item-id>item-995fc618-ebf9-42a2-8b89-ff096d8647fd</item-id><entry><test>item-995fc618-ebf9-42a2-8b89-ff096d8647fd</test></entry></data>

2019-11-24 19:42:45 | 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-995fc618-ebf9-42a2-8b89-ff096d8647fd</value></item-id></result>

2019-11-24 19:42:45 | [Mutex] received everything.

2019-11-24 19:42:45 | [Mutex] isItemNotified: published:item:notifieditem-995fc618-ebf9-42a2-8b89-ff096d8647fd:admin@localhost :: true

retractItemsFromNodes 0.315s
2019-11-24 19:42:46 |

2019-11-24 19:42:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:46 | ------------------------------------

2019-11-24 19:42:46 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node><item-id>item-995fc618-ebf9-42a2-8b89-ff096d8647fd</item-id></data>

2019-11-24 19:42:46 | 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-995fc618-ebf9-42a2-8b89-ff096d8647fd</value></item-id></result>

2019-11-24 19:42:46 | [Mutex] received everything.

2019-11-24 19:42:46 | [Mutex] isItemNotified: retracted:item:notifieditem-995fc618-ebf9-42a2-8b89-ff096d8647fd:admin@localhost :: true

retrieveItemsFromNodes 0.267s
2019-11-24 19:42:45 |

2019-11-24 19:42:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:45 | ------------------------------------

2019-11-24 19:42:45 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node><item-id>item-995fc618-ebf9-42a2-8b89-ff096d8647fd</item-id></data>

2019-11-24 19:42:45 | 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-96fc6646-bff4-47bb-a6ff-533d76b44a6c</value></node><item-id label="Item ID" type="text-single"><value>item-995fc618-ebf9-42a2-8b89-ff096d8647fd</value></item-id><item label="Item" type="text-multi"><value><item id="item-995fc618-ebf9-42a2-8b89-ff096d8647fd"><test>item-995fc618-ebf9-42a2-8b89-ff096d8647fd</test></item></value></item></result>

2019-11-24 19:42:45 | [Mutex] notify: [retrieved:item:item-995fc618-ebf9-42a2-8b89-ff096d8647fd:payload-matches:true:localhost]

2019-11-24 19:42:45 | [Mutex] received everything.

2019-11-24 19:42:45 | [Mutex] isItemNotified: retrieved:item:item-995fc618-ebf9-42a2-8b89-ff096d8647fd:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.308s
2019-11-24 19:42:45 |

2019-11-24 19:42:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:45 | ------------------------------------

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

2019-11-24 19:42:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-3678e767-9d4f-45f3-a12a-5a765da873dd</value><value>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2019-11-24 19:42:46 |

2019-11-24 19:42:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:46 | ------------------------------------

2019-11-24 19:42:46 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-96fc6646-bff4-47bb-a6ff-533d76b44a6c)</node-pattern></data>

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

subscribeNodes 1.152s
2019-11-24 19:42:44 |

2019-11-24 19:42:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:44 | ------------------------------------

2019-11-24 19:42:44 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.339s
2019-11-24 19:42:46 |

2019-11-24 19:42:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 19:42:46 | ------------------------------------

2019-11-24 19:42:46 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-96fc6646-bff4-47bb-a6ff-533d76b44a6c</node><jids><value>admin@localhost</value></jids></data>

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