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

Test duration: 10.546s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.139s
2019-11-20 21:03:54 |

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

2019-11-20 21:03:54 | ------------------------------------

2019-11-20 21:03:54 | [Mutex] waiting for: [configured:node:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:node-73162dc7-b415-43b9-ad76-3ec92d25f63d]

2019-11-20 21:03:54 | [Mutex] received everything.

2019-11-20 21:03:54 | [Mutex] isItemNotified: configured:node:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:node-73162dc7-b415-43b9-ad76-3ec92d25f63d :: true

2019-11-20 21:03:55 | [Mutex] waiting for: [received:nodes:946c74e2-0729-48b3-b846-8cbf08c058d5:localhost]

2019-11-20 21:03:55 | [Mutex] received everything.

2019-11-20 21:03:55 | [Mutex] isItemNotified: received:node:946c74e2-0729-48b3-b846-8cbf08c058d5:localhost:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:Node aea7ae0c-8712-4aa9-b8e1-62a1c6078d11 :: true

2019-11-20 21:03:55 | [Mutex] waiting for: [received:nodes:44c08fc2-a116-4bb4-937b-df3581ba96b2:localhost]

2019-11-20 21:03:55 | [Mutex] received everything.

2019-11-20 21:03:55 | [Mutex] isItemNotified: received:node:44c08fc2-a116-4bb4-937b-df3581ba96b2:localhost:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:Node aea7ae0c-8712-4aa9-b8e1-62a1c6078d11 :: false

createNodes 1.584s
2019-11-20 21:03:51 |

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

2019-11-20 21:03:51 | ------------------------------------

2019-11-20 21:03:51 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</title></pubsub></data>

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

2019-11-20 21:03:53 | [Mutex] waiting for: [received:nodes:b02c97de-ef56-428d-ad17-f7951781c385:localhost]

2019-11-20 21:03:53 | [Mutex] received everything.

2019-11-20 21:03:53 | [Mutex] isItemNotified: received:node:b02c97de-ef56-428d-ad17-f7951781c385:localhost:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:Node aea7ae0c-8712-4aa9-b8e1-62a1c6078d11 :: true

createSubnodes 1.030s
2019-11-20 21:03:53 |

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

2019-11-20 21:03:53 | ------------------------------------

2019-11-20 21:03:53 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-73162dc7-b415-43b9-ad76-3ec92d25f63d</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 73162dc7-b415-43b9-ad76-3ec92d25f63d</title></pubsub></data>

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

2019-11-20 21:03:54 | [Mutex] waiting for: [received:nodes:f1f4d894-9994-46c8-b1dd-fec90af8dfe9:localhost]

2019-11-20 21:03:54 | [Mutex] received everything.

2019-11-20 21:03:54 | [Mutex] isItemNotified: received:node:f1f4d894-9994-46c8-b1dd-fec90af8dfe9:localhost:node-73162dc7-b415-43b9-ad76-3ec92d25f63d:Node 73162dc7-b415-43b9-ad76-3ec92d25f63d :: true

deleteNodes 1.022s
2019-11-20 21:04:00 |

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

2019-11-20 21:04:00 | ------------------------------------

2019-11-20 21:04:00 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-73162dc7-b415-43b9-ad76-3ec92d25f63d</node></data>

2019-11-20 21:04:00 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-20 21:04:01 | [Mutex] waiting for: [received:nodes:68f66667-2ed5-4a63-8466-b4fdd7b53da6:localhost]

2019-11-20 21:04:01 | [Mutex] received everything.

2019-11-20 21:04:01 | [Mutex] isItemNotified: received:node:68f66667-2ed5-4a63-8466-b4fdd7b53da6:localhost:node-73162dc7-b415-43b9-ad76-3ec92d25f63d:Node 73162dc7-b415-43b9-ad76-3ec92d25f63d :: false

deleteSubnodes 1.115s
2019-11-20 21:03:59 |

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

2019-11-20 21:03:59 | ------------------------------------

2019-11-20 21:03:59 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node></data>

2019-11-20 21:03:59 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2019-11-20 21:04:00 | [Mutex] waiting for: [received:nodes:174e852a-6091-4ca3-b8c1-5781abd257d3:localhost]

2019-11-20 21:04:00 | [Mutex] waiting for: [received:nodes:174e852a-6091-4ca3-b8c1-5781abd257d3:localhost]

2019-11-20 21:04:00 | [Mutex] received everything.

2019-11-20 21:04:00 | [Mutex] isItemNotified: received:node:174e852a-6091-4ca3-b8c1-5781abd257d3:localhost:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:Node aea7ae0c-8712-4aa9-b8e1-62a1c6078d11 :: false

2019-11-20 21:04:00 | [Mutex] waiting for: [received:nodes:b0bb4e48-d8fe-484c-8bd7-afa3dfa11a32:localhost]

2019-11-20 21:04:00 | [Mutex] received everything.

2019-11-20 21:04:00 | [Mutex] isItemNotified: received:node:b0bb4e48-d8fe-484c-8bd7-afa3dfa11a32:localhost:node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11:Node aea7ae0c-8712-4aa9-b8e1-62a1c6078d11 :: false

publishItemsToNodes 0.304s
2019-11-20 21:03:56 |

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

2019-11-20 21:03:56 | ------------------------------------

2019-11-20 21:03:56 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node><item-id>item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</item-id><entry><test>item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</test></entry></data>

2019-11-20 21:03:56 | 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-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</value></item-id></result>

2019-11-20 21:03:56 | [Mutex] received everything.

2019-11-20 21:03:56 | [Mutex] isItemNotified: published:item:notifieditem-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35:admin@localhost :: true

retractItemsFromNodes 0.196s
2019-11-20 21:03:57 |

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

2019-11-20 21:03:57 | ------------------------------------

2019-11-20 21:03:57 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node><item-id>item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</item-id></data>

2019-11-20 21:03:57 | 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-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</value></item-id></result>

2019-11-20 21:03:57 | [Mutex] waiting for: [retracted:item:notifieditem-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35:admin@localhost]

2019-11-20 21:03:57 | [Mutex] received everything.

2019-11-20 21:03:57 | [Mutex] isItemNotified: retracted:item:notifieditem-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35:admin@localhost :: true

retrieveItemsFromNodes 0.318s
2019-11-20 21:03:56 |

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

2019-11-20 21:03:56 | ------------------------------------

2019-11-20 21:03:56 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node><item-id>item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</item-id></data>

2019-11-20 21:03:57 | 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-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</value></node><item-id type="text-single" label="Item ID"><value>item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</value></item-id><item type="text-multi" label="Item"><value><item id="item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35"><test>item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35</test></item></value></item></result>

2019-11-20 21:03:57 | [Mutex] notify: [retrieved:item:item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35:payload-matches:true:localhost]

2019-11-20 21:03:57 | [Mutex] received everything.

2019-11-20 21:03:57 | [Mutex] isItemNotified: retrieved:item:item-0d5fbce7-4204-4784-bd90-fa3d8d6a7f35:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.144s
2019-11-20 21:03:57 |

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

2019-11-20 21:03:57 | ------------------------------------

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

2019-11-20 21:03:57 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>node-73162dc7-b415-43b9-ad76-3ec92d25f63d</value><value>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.057s
2019-11-20 21:03:57 |

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

2019-11-20 21:03:57 | ------------------------------------

2019-11-20 21:03:57 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11)</node-pattern></data>

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

subscribeNodes 1.215s
2019-11-20 21:03:55 |

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

2019-11-20 21:03:55 | ------------------------------------

2019-11-20 21:03:55 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.382s
2019-11-20 21:03:57 |

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

2019-11-20 21:03:57 | ------------------------------------

2019-11-20 21:03:57 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-aea7ae0c-8712-4aa9-b8e1-62a1c6078d11</node><jids><value>admin@localhost</value></jids></data>

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