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

Test duration: 10.366s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.108s
2019-11-25 20:18:21 |

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

2019-11-25 20:18:21 | ------------------------------------

2019-11-25 20:18:21 | [Mutex] waiting for: [configured:node:node-e26edd4e-f320-4008-88a3-c4e179ad658a:node-36edcf97-0285-4500-bace-98ec9e902d08]

2019-11-25 20:18:21 | [Mutex] received everything.

2019-11-25 20:18:21 | [Mutex] isItemNotified: configured:node:node-e26edd4e-f320-4008-88a3-c4e179ad658a:node-36edcf97-0285-4500-bace-98ec9e902d08 :: true

2019-11-25 20:18:22 | [Mutex] waiting for: [received:nodes:eec9f8c4-113e-42ef-bb24-ff8df491bc79:localhost]

2019-11-25 20:18:22 | [Mutex] received everything.

2019-11-25 20:18:22 | [Mutex] isItemNotified: received:node:eec9f8c4-113e-42ef-bb24-ff8df491bc79:localhost:node-e26edd4e-f320-4008-88a3-c4e179ad658a:Node e26edd4e-f320-4008-88a3-c4e179ad658a :: true

2019-11-25 20:18:22 | [Mutex] waiting for: [received:nodes:7d0708e6-3e5e-4163-b109-6600a1eaf985:localhost]

2019-11-25 20:18:22 | [Mutex] received everything.

2019-11-25 20:18:22 | [Mutex] isItemNotified: received:node:7d0708e6-3e5e-4163-b109-6600a1eaf985:localhost:node-e26edd4e-f320-4008-88a3-c4e179ad658a:Node e26edd4e-f320-4008-88a3-c4e179ad658a :: false

createNodes 1.559s
2019-11-25 20:18:18 |

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

2019-11-25 20:18:18 | ------------------------------------

2019-11-25 20:18:18 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node e26edd4e-f320-4008-88a3-c4e179ad658a</title></pubsub></data>

2019-11-25 20:18:19 | 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:18:20 | [Mutex] waiting for: [received:nodes:14bdb168-f329-414b-9a70-70e6daa91972:localhost]

2019-11-25 20:18:20 | [Mutex] waiting for: [received:nodes:14bdb168-f329-414b-9a70-70e6daa91972:localhost]

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

2019-11-25 20:18:20 | [Mutex] isItemNotified: received:node:14bdb168-f329-414b-9a70-70e6daa91972:localhost:node-e26edd4e-f320-4008-88a3-c4e179ad658a:Node e26edd4e-f320-4008-88a3-c4e179ad658a :: true

createSubnodes 1.031s
2019-11-25 20:18:20 |

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

2019-11-25 20:18:20 | ------------------------------------

2019-11-25 20:18:20 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-36edcf97-0285-4500-bace-98ec9e902d08</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 36edcf97-0285-4500-bace-98ec9e902d08</title></pubsub></data>

2019-11-25 20:18:20 | 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:18:21 | [Mutex] waiting for: [received:nodes:bed90560-94c0-4ca0-a10b-66ee51f5ff71:localhost]

2019-11-25 20:18:21 | [Mutex] received everything.

2019-11-25 20:18:21 | [Mutex] isItemNotified: received:node:bed90560-94c0-4ca0-a10b-66ee51f5ff71:localhost:node-36edcf97-0285-4500-bace-98ec9e902d08:Node 36edcf97-0285-4500-bace-98ec9e902d08 :: true

deleteNodes 1.022s
2019-11-25 20:18:27 |

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

2019-11-25 20:18:27 | ------------------------------------

2019-11-25 20:18:27 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-36edcf97-0285-4500-bace-98ec9e902d08</node></data>

2019-11-25 20:18:27 | 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:18:28 | [Mutex] waiting for: [received:nodes:537ad9d1-2ac6-49b1-98b0-177be5f357a1:localhost]

2019-11-25 20:18:28 | [Mutex] waiting for: [received:nodes:537ad9d1-2ac6-49b1-98b0-177be5f357a1:localhost]

2019-11-25 20:18:28 | [Mutex] received everything.

2019-11-25 20:18:28 | [Mutex] isItemNotified: received:node:537ad9d1-2ac6-49b1-98b0-177be5f357a1:localhost:node-36edcf97-0285-4500-bace-98ec9e902d08:Node 36edcf97-0285-4500-bace-98ec9e902d08 :: false

deleteSubnodes 1.211s
2019-11-25 20:18:25 |

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

2019-11-25 20:18:25 | ------------------------------------

2019-11-25 20:18:25 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node></data>

2019-11-25 20:18:26 | 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:18:27 | [Mutex] waiting for: [received:nodes:3ae5f6ff-9eb8-4355-92f1-c72752193b46:localhost]

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

2019-11-25 20:18:27 | [Mutex] isItemNotified: received:node:3ae5f6ff-9eb8-4355-92f1-c72752193b46:localhost:node-e26edd4e-f320-4008-88a3-c4e179ad658a:Node e26edd4e-f320-4008-88a3-c4e179ad658a :: false

2019-11-25 20:18:27 | [Mutex] waiting for: [received:nodes:37c07bd2-ac32-4923-85d7-bfffee5dc09c:localhost]

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

2019-11-25 20:18:27 | [Mutex] isItemNotified: received:node:37c07bd2-ac32-4923-85d7-bfffee5dc09c:localhost:node-e26edd4e-f320-4008-88a3-c4e179ad658a:Node e26edd4e-f320-4008-88a3-c4e179ad658a :: false

publishItemsToNodes 0.281s
2019-11-25 20:18:23 |

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

2019-11-25 20:18:23 | ------------------------------------

2019-11-25 20:18:23 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node><item-id>item-5c76274a-a9f5-4960-9111-82da59b036a4</item-id><entry><test>item-5c76274a-a9f5-4960-9111-82da59b036a4</test></entry></data>

2019-11-25 20:18:23 | 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-5c76274a-a9f5-4960-9111-82da59b036a4</value></item-id></result>

2019-11-25 20:18:23 | [Mutex] waiting for: [published:item:notifieditem-5c76274a-a9f5-4960-9111-82da59b036a4:admin@localhost]

2019-11-25 20:18:23 | [Mutex] received everything.

2019-11-25 20:18:23 | [Mutex] isItemNotified: published:item:notifieditem-5c76274a-a9f5-4960-9111-82da59b036a4:admin@localhost :: true

retractItemsFromNodes 0.311s
2019-11-25 20:18:24 |

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

2019-11-25 20:18:24 | ------------------------------------

2019-11-25 20:18:24 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node><item-id>item-5c76274a-a9f5-4960-9111-82da59b036a4</item-id></data>

2019-11-25 20:18:24 | 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-5c76274a-a9f5-4960-9111-82da59b036a4</value></item-id></result>

2019-11-25 20:18:24 | [Mutex] waiting for: [retracted:item:notifieditem-5c76274a-a9f5-4960-9111-82da59b036a4:admin@localhost]

2019-11-25 20:18:24 | [Mutex] received everything.

2019-11-25 20:18:24 | [Mutex] isItemNotified: retracted:item:notifieditem-5c76274a-a9f5-4960-9111-82da59b036a4:admin@localhost :: true

retrieveItemsFromNodes 0.137s
2019-11-25 20:18:23 |

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

2019-11-25 20:18:23 | ------------------------------------

2019-11-25 20:18:23 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node><item-id>item-5c76274a-a9f5-4960-9111-82da59b036a4</item-id></data>

2019-11-25 20:18:23 | 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-e26edd4e-f320-4008-88a3-c4e179ad658a</value></node><item-id label="Item ID" type="text-single"><value>item-5c76274a-a9f5-4960-9111-82da59b036a4</value></item-id><item label="Item" type="text-multi"><value><item id="item-5c76274a-a9f5-4960-9111-82da59b036a4"><test>item-5c76274a-a9f5-4960-9111-82da59b036a4</test></item></value></item></result>

2019-11-25 20:18:23 | [Mutex] notify: [retrieved:item:item-5c76274a-a9f5-4960-9111-82da59b036a4:payload-matches:true:localhost]

2019-11-25 20:18:23 | [Mutex] received everything.

2019-11-25 20:18:23 | [Mutex] isItemNotified: retrieved:item:item-5c76274a-a9f5-4960-9111-82da59b036a4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.286s
2019-11-25 20:18:23 |

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

2019-11-25 20:18:23 | ------------------------------------

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

2019-11-25 20:18:24 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-e26edd4e-f320-4008-88a3-c4e179ad658a</value><value>node-36edcf97-0285-4500-bace-98ec9e902d08</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.059s
2019-11-25 20:18:24 |

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

2019-11-25 20:18:24 | ------------------------------------

2019-11-25 20:18:24 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-e26edd4e-f320-4008-88a3-c4e179ad658a)</node-pattern></data>

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

subscribeNodes 1.144s
2019-11-25 20:18:22 |

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

2019-11-25 20:18:22 | ------------------------------------

2019-11-25 20:18:22 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.397s
2019-11-25 20:18:24 |

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

2019-11-25 20:18:24 | ------------------------------------

2019-11-25 20:18:24 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-e26edd4e-f320-4008-88a3-c4e179ad658a</node><jids><value>admin@localhost</value></jids></data>

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