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

Test duration: 10.418s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.110s
2020-02-09 18:46:24 |

2020-02-09 18:46:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:24 | ------------------------------------

2020-02-09 18:46:24 | [Mutex] waiting for: [configured:node:node-3f7963f5-335b-4553-b497-446eb6e46368:node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2]

2020-02-09 18:46:24 | [Mutex] received everything.

2020-02-09 18:46:24 | [Mutex] isItemNotified: configured:node:node-3f7963f5-335b-4553-b497-446eb6e46368:node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2 :: true

2020-02-09 18:46:25 | [Mutex] waiting for: [received:nodes:abe1e9c5-2c31-4b2c-b593-8c8f03221eb3:localhost]

2020-02-09 18:46:25 | [Mutex] received everything.

2020-02-09 18:46:25 | [Mutex] isItemNotified: received:node:abe1e9c5-2c31-4b2c-b593-8c8f03221eb3:localhost:node-3f7963f5-335b-4553-b497-446eb6e46368:Node 3f7963f5-335b-4553-b497-446eb6e46368 :: true

2020-02-09 18:46:25 | [Mutex] waiting for: [received:nodes:9429e53d-7afa-4f23-a949-6faa5bfd229c:localhost]

2020-02-09 18:46:25 | [Mutex] received everything.

2020-02-09 18:46:25 | [Mutex] isItemNotified: received:node:9429e53d-7afa-4f23-a949-6faa5bfd229c:localhost:node-3f7963f5-335b-4553-b497-446eb6e46368:Node 3f7963f5-335b-4553-b497-446eb6e46368 :: false

createNodes 1.755s
2020-02-09 18:46:21 |

2020-02-09 18:46:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:21 | ------------------------------------

2020-02-09 18:46:21 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 3f7963f5-335b-4553-b497-446eb6e46368</title></pubsub></data>

2020-02-09 18:46:22 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-02-09 18:46:23 | [Mutex] waiting for: [received:nodes:5039e5eb-c1bc-44de-a294-a110404c3bd0:localhost]

2020-02-09 18:46:23 | [Mutex] received everything.

2020-02-09 18:46:23 | [Mutex] isItemNotified: received:node:5039e5eb-c1bc-44de-a294-a110404c3bd0:localhost:node-3f7963f5-335b-4553-b497-446eb6e46368:Node 3f7963f5-335b-4553-b497-446eb6e46368 :: true

createSubnodes 1.024s
2020-02-09 18:46:23 |

2020-02-09 18:46:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:23 | ------------------------------------

2020-02-09 18:46:23 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 4f06bb29-c5c3-4907-bd97-490c27e1a1d2</title></pubsub></data>

2020-02-09 18:46:23 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-02-09 18:46:24 | [Mutex] waiting for: [received:nodes:dd219acc-5388-469f-9233-b393c88abbf6:localhost]

2020-02-09 18:46:24 | [Mutex] waiting for: [received:nodes:dd219acc-5388-469f-9233-b393c88abbf6:localhost]

2020-02-09 18:46:24 | [Mutex] received everything.

2020-02-09 18:46:24 | [Mutex] isItemNotified: received:node:dd219acc-5388-469f-9233-b393c88abbf6:localhost:node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2:Node 4f06bb29-c5c3-4907-bd97-490c27e1a1d2 :: true

deleteNodes 1.022s
2020-02-09 18:46:30 |

2020-02-09 18:46:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:30 | ------------------------------------

2020-02-09 18:46:30 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2</node></data>

2020-02-09 18:46:30 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-02-09 18:46:31 | [Mutex] waiting for: [received:nodes:33c0a09d-bfb8-4f7a-9e4c-968a147c9716:localhost]

2020-02-09 18:46:31 | [Mutex] received everything.

2020-02-09 18:46:31 | [Mutex] isItemNotified: received:node:33c0a09d-bfb8-4f7a-9e4c-968a147c9716:localhost:node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2:Node 4f06bb29-c5c3-4907-bd97-490c27e1a1d2 :: false

deleteSubnodes 1.174s
2020-02-09 18:46:29 |

2020-02-09 18:46:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:29 | ------------------------------------

2020-02-09 18:46:29 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node></data>

2020-02-09 18:46:29 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-02-09 18:46:30 | [Mutex] waiting for: [received:nodes:2353af33-ac76-4e65-8837-d9f403865a5e:localhost]

2020-02-09 18:46:30 | [Mutex] received everything.

2020-02-09 18:46:30 | [Mutex] isItemNotified: received:node:2353af33-ac76-4e65-8837-d9f403865a5e:localhost:node-3f7963f5-335b-4553-b497-446eb6e46368:Node 3f7963f5-335b-4553-b497-446eb6e46368 :: false

2020-02-09 18:46:30 | [Mutex] waiting for: [received:nodes:fc345580-b8ad-4d36-aa04-22a22a42a9ca:localhost]

2020-02-09 18:46:30 | [Mutex] received everything.

2020-02-09 18:46:30 | [Mutex] isItemNotified: received:node:fc345580-b8ad-4d36-aa04-22a22a42a9ca:localhost:node-3f7963f5-335b-4553-b497-446eb6e46368:Node 3f7963f5-335b-4553-b497-446eb6e46368 :: false

publishItemsToNodes 0.299s
2020-02-09 18:46:26 |

2020-02-09 18:46:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:26 | ------------------------------------

2020-02-09 18:46:26 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node><item-id>item-5284d2b3-ec96-4a4d-9a63-48280a695921</item-id><entry><test>item-5284d2b3-ec96-4a4d-9a63-48280a695921</test></entry></data>

2020-02-09 18:46:27 | 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-5284d2b3-ec96-4a4d-9a63-48280a695921</value></item-id></result>

2020-02-09 18:46:27 | [Mutex] received everything.

2020-02-09 18:46:27 | [Mutex] isItemNotified: published:item:notifieditem-5284d2b3-ec96-4a4d-9a63-48280a695921:admin@localhost :: true

retractItemsFromNodes 0.218s
2020-02-09 18:46:27 |

2020-02-09 18:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:27 | ------------------------------------

2020-02-09 18:46:27 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node><item-id>item-5284d2b3-ec96-4a4d-9a63-48280a695921</item-id></data>

2020-02-09 18:46:27 | 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-5284d2b3-ec96-4a4d-9a63-48280a695921</value></item-id></result>

2020-02-09 18:46:27 | [Mutex] waiting for: [retracted:item:notifieditem-5284d2b3-ec96-4a4d-9a63-48280a695921:admin@localhost]

2020-02-09 18:46:27 | [Mutex] received everything.

2020-02-09 18:46:27 | [Mutex] isItemNotified: retracted:item:notifieditem-5284d2b3-ec96-4a4d-9a63-48280a695921:admin@localhost :: true

retrieveItemsFromNodes 0.211s
2020-02-09 18:46:27 |

2020-02-09 18:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:27 | ------------------------------------

2020-02-09 18:46:27 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node><item-id>item-5284d2b3-ec96-4a4d-9a63-48280a695921</item-id></data>

2020-02-09 18:46:27 | 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-3f7963f5-335b-4553-b497-446eb6e46368</value></node><item-id type="text-single" label="Item ID"><value>item-5284d2b3-ec96-4a4d-9a63-48280a695921</value></item-id><item type="text-multi" label="Item"><value><item id="item-5284d2b3-ec96-4a4d-9a63-48280a695921"><test>item-5284d2b3-ec96-4a4d-9a63-48280a695921</test></item></value></item></result>

2020-02-09 18:46:27 | [Mutex] notify: [retrieved:item:item-5284d2b3-ec96-4a4d-9a63-48280a695921:payload-matches:true:localhost]

2020-02-09 18:46:27 | [Mutex] received everything.

2020-02-09 18:46:27 | [Mutex] isItemNotified: retrieved:item:item-5284d2b3-ec96-4a4d-9a63-48280a695921:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.244s
2020-02-09 18:46:27 |

2020-02-09 18:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:27 | ------------------------------------

2020-02-09 18:46:27 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-02-09 18:46:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-3f7963f5-335b-4553-b497-446eb6e46368</value><value>node-4f06bb29-c5c3-4907-bd97-490c27e1a1d2</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2020-02-09 18:46:27 |

2020-02-09 18:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:27 | ------------------------------------

2020-02-09 18:46:27 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-3f7963f5-335b-4553-b497-446eb6e46368)</node-pattern></data>

2020-02-09 18:46:27 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"/></result>

subscribeNodes 1.100s
2020-02-09 18:46:25 |

2020-02-09 18:46:25 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:25 | ------------------------------------

2020-02-09 18:46:25 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node><jids><value>admin@localhost</value></jids></data>

2020-02-09 18:46:25 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.268s
2020-02-09 18:46:27 |

2020-02-09 18:46:27 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-02-09 18:46:27 | ------------------------------------

2020-02-09 18:46:27 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-3f7963f5-335b-4553-b497-446eb6e46368</node><jids><value>admin@localhost</value></jids></data>

2020-02-09 18:46:28 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>