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

Test duration: 10.606s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.124s
2019-11-24 18:43:14 |

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

2019-11-24 18:43:14 | ------------------------------------

2019-11-24 18:43:14 | [Mutex] waiting for: [configured:node:node-8ae3eccb-a58d-455d-b319-40c337522a28:node-373274b8-8baa-4066-9daa-dfca85b0ada6]

2019-11-24 18:43:15 | [Mutex] received everything.

2019-11-24 18:43:15 | [Mutex] isItemNotified: configured:node:node-8ae3eccb-a58d-455d-b319-40c337522a28:node-373274b8-8baa-4066-9daa-dfca85b0ada6 :: true

2019-11-24 18:43:16 | [Mutex] waiting for: [received:nodes:dbda0a24-4385-4e21-9b48-d714c3a7d540:localhost]

2019-11-24 18:43:16 | [Mutex] received everything.

2019-11-24 18:43:16 | [Mutex] isItemNotified: received:node:dbda0a24-4385-4e21-9b48-d714c3a7d540:localhost:node-8ae3eccb-a58d-455d-b319-40c337522a28:Node 8ae3eccb-a58d-455d-b319-40c337522a28 :: true

2019-11-24 18:43:16 | [Mutex] waiting for: [received:nodes:3d147c7f-e206-4dad-86b9-ba2668888463:localhost]

2019-11-24 18:43:16 | [Mutex] received everything.

2019-11-24 18:43:16 | [Mutex] isItemNotified: received:node:3d147c7f-e206-4dad-86b9-ba2668888463:localhost:node-8ae3eccb-a58d-455d-b319-40c337522a28:Node 8ae3eccb-a58d-455d-b319-40c337522a28 :: false

createNodes 1.701s
2019-11-24 18:43:12 |

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

2019-11-24 18:43:12 | ------------------------------------

2019-11-24 18:43:12 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 8ae3eccb-a58d-455d-b319-40c337522a28</title></pubsub></data>

2019-11-24 18:43:12 | 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 18:43:13 | [Mutex] waiting for: [received:nodes:5dc06034-fa62-4ad4-a26f-1111f2c7a3ea:localhost]

2019-11-24 18:43:13 | [Mutex] received everything.

2019-11-24 18:43:13 | [Mutex] isItemNotified: received:node:5dc06034-fa62-4ad4-a26f-1111f2c7a3ea:localhost:node-8ae3eccb-a58d-455d-b319-40c337522a28:Node 8ae3eccb-a58d-455d-b319-40c337522a28 :: true

createSubnodes 1.024s
2019-11-24 18:43:13 |

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

2019-11-24 18:43:13 | ------------------------------------

2019-11-24 18:43:13 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-373274b8-8baa-4066-9daa-dfca85b0ada6</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 373274b8-8baa-4066-9daa-dfca85b0ada6</title></pubsub></data>

2019-11-24 18:43:13 | 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 18:43:14 | [Mutex] waiting for: [received:nodes:c806eb03-91e5-4be8-9361-c47fef318be8:localhost]

2019-11-24 18:43:14 | [Mutex] received everything.

2019-11-24 18:43:14 | [Mutex] isItemNotified: received:node:c806eb03-91e5-4be8-9361-c47fef318be8:localhost:node-373274b8-8baa-4066-9daa-dfca85b0ada6:Node 373274b8-8baa-4066-9daa-dfca85b0ada6 :: true

deleteNodes 1.029s
2019-11-24 18:43:20 |

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

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

2019-11-24 18:43:20 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-373274b8-8baa-4066-9daa-dfca85b0ada6</node></data>

2019-11-24 18:43:20 | 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 18:43:21 | [Mutex] waiting for: [received:nodes:26f426e8-93ee-4958-9f2f-2054bceec770:localhost]

2019-11-24 18:43:21 | [Mutex] received everything.

2019-11-24 18:43:21 | [Mutex] isItemNotified: received:node:26f426e8-93ee-4958-9f2f-2054bceec770:localhost:node-373274b8-8baa-4066-9daa-dfca85b0ada6:Node 373274b8-8baa-4066-9daa-dfca85b0ada6 :: false

deleteSubnodes 1.141s
2019-11-24 18:43:19 |

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

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

2019-11-24 18:43:19 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node></data>

2019-11-24 18:43:19 | 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 18:43:20 | [Mutex] waiting for: [received:nodes:cbebc59c-b11c-4811-bcda-0e11dc4ca865:localhost]

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

2019-11-24 18:43:20 | [Mutex] isItemNotified: received:node:cbebc59c-b11c-4811-bcda-0e11dc4ca865:localhost:node-8ae3eccb-a58d-455d-b319-40c337522a28:Node 8ae3eccb-a58d-455d-b319-40c337522a28 :: false

2019-11-24 18:43:20 | [Mutex] waiting for: [received:nodes:5e31212c-c942-4c1c-bda9-5b06b024860c:localhost]

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

2019-11-24 18:43:20 | [Mutex] isItemNotified: received:node:5e31212c-c942-4c1c-bda9-5b06b024860c:localhost:node-8ae3eccb-a58d-455d-b319-40c337522a28:Node 8ae3eccb-a58d-455d-b319-40c337522a28 :: false

publishItemsToNodes 0.276s
2019-11-24 18:43:17 |

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

2019-11-24 18:43:17 | ------------------------------------

2019-11-24 18:43:17 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node><item-id>item-34206f0c-e340-4886-8e1b-ec3729ae9af4</item-id><entry><test>item-34206f0c-e340-4886-8e1b-ec3729ae9af4</test></entry></data>

2019-11-24 18:43:17 | 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-34206f0c-e340-4886-8e1b-ec3729ae9af4</value></item-id></result>

2019-11-24 18:43:17 | [Mutex] waiting for: [published:item:notifieditem-34206f0c-e340-4886-8e1b-ec3729ae9af4:admin@localhost]

2019-11-24 18:43:17 | [Mutex] received everything.

2019-11-24 18:43:17 | [Mutex] isItemNotified: published:item:notifieditem-34206f0c-e340-4886-8e1b-ec3729ae9af4:admin@localhost :: true

retractItemsFromNodes 0.375s
2019-11-24 18:43:18 |

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

2019-11-24 18:43:18 | ------------------------------------

2019-11-24 18:43:18 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node><item-id>item-34206f0c-e340-4886-8e1b-ec3729ae9af4</item-id></data>

2019-11-24 18:43:18 | 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-34206f0c-e340-4886-8e1b-ec3729ae9af4</value></item-id></result>

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

2019-11-24 18:43:18 | [Mutex] isItemNotified: retracted:item:notifieditem-34206f0c-e340-4886-8e1b-ec3729ae9af4:admin@localhost :: true

retrieveItemsFromNodes 0.298s
2019-11-24 18:43:17 |

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

2019-11-24 18:43:17 | ------------------------------------

2019-11-24 18:43:17 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node><item-id>item-34206f0c-e340-4886-8e1b-ec3729ae9af4</item-id></data>

2019-11-24 18:43:17 | 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-8ae3eccb-a58d-455d-b319-40c337522a28</value></node><item-id type="text-single" label="Item ID"><value>item-34206f0c-e340-4886-8e1b-ec3729ae9af4</value></item-id><item type="text-multi" label="Item"><value><item id="item-34206f0c-e340-4886-8e1b-ec3729ae9af4"><test>item-34206f0c-e340-4886-8e1b-ec3729ae9af4</test></item></value></item></result>

2019-11-24 18:43:17 | [Mutex] notify: [retrieved:item:item-34206f0c-e340-4886-8e1b-ec3729ae9af4:payload-matches:true:localhost]

2019-11-24 18:43:17 | [Mutex] received everything.

2019-11-24 18:43:17 | [Mutex] isItemNotified: retrieved:item:item-34206f0c-e340-4886-8e1b-ec3729ae9af4:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.296s
2019-11-24 18:43:17 |

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

2019-11-24 18:43:17 | ------------------------------------

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

2019-11-24 18:43:18 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-373274b8-8baa-4066-9daa-dfca85b0ada6</value><value>node-8ae3eccb-a58d-455d-b319-40c337522a28</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2019-11-24 18:43:18 |

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

2019-11-24 18:43:18 | ------------------------------------

2019-11-24 18:43:18 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-8ae3eccb-a58d-455d-b319-40c337522a28)</node-pattern></data>

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

subscribeNodes 1.137s
2019-11-24 18:43:16 |

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

2019-11-24 18:43:16 | ------------------------------------

2019-11-24 18:43:16 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.271s
2019-11-24 18:43:18 |

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

2019-11-24 18:43:18 | ------------------------------------

2019-11-24 18:43:18 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-8ae3eccb-a58d-455d-b319-40c337522a28</node><jids><value>admin@localhost</value></jids></data>

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