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

Test duration: 10.392s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.093s
2019-10-13 19:54:30 |

2019-10-13 19:54:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:30 | ------------------------------------

2019-10-13 19:54:30 | [Mutex] waiting for: [configured:node:node-5460a202-505d-4594-a79b-954ebc979c1d:node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab]

2019-10-13 19:54:31 | [Mutex] received everything.

2019-10-13 19:54:31 | [Mutex] isItemNotified: configured:node:node-5460a202-505d-4594-a79b-954ebc979c1d:node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab :: true

2019-10-13 19:54:32 | [Mutex] waiting for: [received:nodes:5593fdb2-8a22-42cb-b4ea-9f4997017cc5:localhost]

2019-10-13 19:54:32 | [Mutex] received everything.

2019-10-13 19:54:32 | [Mutex] isItemNotified: received:node:5593fdb2-8a22-42cb-b4ea-9f4997017cc5:localhost:node-5460a202-505d-4594-a79b-954ebc979c1d:Node 5460a202-505d-4594-a79b-954ebc979c1d :: true

2019-10-13 19:54:32 | [Mutex] waiting for: [received:nodes:6ecf6c9c-ccbe-4fd2-b8a3-8dce0c44ede8:localhost]

2019-10-13 19:54:32 | [Mutex] received everything.

2019-10-13 19:54:32 | [Mutex] isItemNotified: received:node:6ecf6c9c-ccbe-4fd2-b8a3-8dce0c44ede8:localhost:node-5460a202-505d-4594-a79b-954ebc979c1d:Node 5460a202-505d-4594-a79b-954ebc979c1d :: false

createNodes 1.624s
2019-10-13 19:54:28 |

2019-10-13 19:54:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:28 | ------------------------------------

2019-10-13 19:54:28 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 5460a202-505d-4594-a79b-954ebc979c1d</title></pubsub></data>

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

2019-10-13 19:54:29 | [Mutex] waiting for: [received:nodes:039eb27d-1428-4176-942a-8724707bfa14:localhost]

2019-10-13 19:54:29 | [Mutex] received everything.

2019-10-13 19:54:29 | [Mutex] isItemNotified: received:node:039eb27d-1428-4176-942a-8724707bfa14:localhost:node-5460a202-505d-4594-a79b-954ebc979c1d:Node 5460a202-505d-4594-a79b-954ebc979c1d :: true

createSubnodes 1.042s
2019-10-13 19:54:29 |

2019-10-13 19:54:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:29 | ------------------------------------

2019-10-13 19:54:29 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab</title></pubsub></data>

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

2019-10-13 19:54:30 | [Mutex] waiting for: [received:nodes:3ae16c01-1e72-4185-b34f-c0c6288c58fe:localhost]

2019-10-13 19:54:30 | [Mutex] waiting for: [received:nodes:3ae16c01-1e72-4185-b34f-c0c6288c58fe:localhost]

2019-10-13 19:54:30 | [Mutex] received everything.

2019-10-13 19:54:30 | [Mutex] isItemNotified: received:node:3ae16c01-1e72-4185-b34f-c0c6288c58fe:localhost:node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab:Node c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab :: true

deleteNodes 1.027s
2019-10-13 19:54:36 |

2019-10-13 19:54:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:36 | ------------------------------------

2019-10-13 19:54:36 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab</node></data>

2019-10-13 19:54:36 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-10-13 19:54:37 | [Mutex] waiting for: [received:nodes:a4950abe-0717-41a0-bbb5-6f3845f58302:localhost]

2019-10-13 19:54:37 | [Mutex] received everything.

2019-10-13 19:54:37 | [Mutex] isItemNotified: received:node:a4950abe-0717-41a0-bbb5-6f3845f58302:localhost:node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab:Node c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab :: false

deleteSubnodes 1.188s
2019-10-13 19:54:35 |

2019-10-13 19:54:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:35 | ------------------------------------

2019-10-13 19:54:35 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node></data>

2019-10-13 19:54:35 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-10-13 19:54:36 | [Mutex] waiting for: [received:nodes:3f5f15ef-2cce-448d-8aef-39826b3b594c:localhost]

2019-10-13 19:54:36 | [Mutex] received everything.

2019-10-13 19:54:36 | [Mutex] isItemNotified: received:node:3f5f15ef-2cce-448d-8aef-39826b3b594c:localhost:node-5460a202-505d-4594-a79b-954ebc979c1d:Node 5460a202-505d-4594-a79b-954ebc979c1d :: false

2019-10-13 19:54:36 | [Mutex] waiting for: [received:nodes:bd1812c7-d7e5-47b9-9273-459be50717ce:localhost]

2019-10-13 19:54:36 | [Mutex] received everything.

2019-10-13 19:54:36 | [Mutex] isItemNotified: received:node:bd1812c7-d7e5-47b9-9273-459be50717ce:localhost:node-5460a202-505d-4594-a79b-954ebc979c1d:Node 5460a202-505d-4594-a79b-954ebc979c1d :: false

publishItemsToNodes 0.233s
2019-10-13 19:54:33 |

2019-10-13 19:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:33 | ------------------------------------

2019-10-13 19:54:33 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node><item-id>item-88157945-48c8-48df-8ecd-6db22fdd107b</item-id><entry><test>item-88157945-48c8-48df-8ecd-6db22fdd107b</test></entry></data>

2019-10-13 19:54:33 | 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-88157945-48c8-48df-8ecd-6db22fdd107b</value></item-id></result>

2019-10-13 19:54:33 | [Mutex] received everything.

2019-10-13 19:54:33 | [Mutex] isItemNotified: published:item:notifieditem-88157945-48c8-48df-8ecd-6db22fdd107b:admin@localhost :: true

retractItemsFromNodes 0.323s
2019-10-13 19:54:34 |

2019-10-13 19:54:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:34 | ------------------------------------

2019-10-13 19:54:34 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node><item-id>item-88157945-48c8-48df-8ecd-6db22fdd107b</item-id></data>

2019-10-13 19:54:34 | 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-88157945-48c8-48df-8ecd-6db22fdd107b</value></item-id></result>

2019-10-13 19:54:34 | [Mutex] waiting for: [retracted:item:notifieditem-88157945-48c8-48df-8ecd-6db22fdd107b:admin@localhost]

2019-10-13 19:54:34 | [Mutex] received everything.

2019-10-13 19:54:34 | [Mutex] isItemNotified: retracted:item:notifieditem-88157945-48c8-48df-8ecd-6db22fdd107b:admin@localhost :: true

retrieveItemsFromNodes 0.246s
2019-10-13 19:54:33 |

2019-10-13 19:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:33 | ------------------------------------

2019-10-13 19:54:33 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node><item-id>item-88157945-48c8-48df-8ecd-6db22fdd107b</item-id></data>

2019-10-13 19:54:33 | 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-5460a202-505d-4594-a79b-954ebc979c1d</value></node><item-id label="Item ID" type="text-single"><value>item-88157945-48c8-48df-8ecd-6db22fdd107b</value></item-id><item label="Item" type="text-multi"><value><item id="item-88157945-48c8-48df-8ecd-6db22fdd107b"><test>item-88157945-48c8-48df-8ecd-6db22fdd107b</test></item></value></item></result>

2019-10-13 19:54:33 | [Mutex] notify: [retrieved:item:item-88157945-48c8-48df-8ecd-6db22fdd107b:payload-matches:true:localhost]

2019-10-13 19:54:33 | [Mutex] received everything.

2019-10-13 19:54:33 | [Mutex] isItemNotified: retrieved:item:item-88157945-48c8-48df-8ecd-6db22fdd107b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.252s
2019-10-13 19:54:33 |

2019-10-13 19:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:33 | ------------------------------------

2019-10-13 19:54:33 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2019-10-13 19:54:33 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-5460a202-505d-4594-a79b-954ebc979c1d</value><value>node-c4ad2212-6ae2-47a9-a6f9-2ab7806e5bab</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.058s
2019-10-13 19:54:33 |

2019-10-13 19:54:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:33 | ------------------------------------

2019-10-13 19:54:33 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-5460a202-505d-4594-a79b-954ebc979c1d)</node-pattern></data>

2019-10-13 19:54:34 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.188s
2019-10-13 19:54:32 |

2019-10-13 19:54:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:32 | ------------------------------------

2019-10-13 19:54:32 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node><jids><value>admin@localhost</value></jids></data>

2019-10-13 19:54:32 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.351s
2019-10-13 19:54:34 |

2019-10-13 19:54:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-10-13 19:54:34 | ------------------------------------

2019-10-13 19:54:34 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-5460a202-505d-4594-a79b-954ebc979c1d</node><jids><value>admin@localhost</value></jids></data>

2019-10-13 19:54:34 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>