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

Test duration: 9.899s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.118s
2020-06-21 23:17:29 |

2020-06-21 23:17:29 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:29 | ------------------------------------

2020-06-21 23:17:29 | [Mutex] waiting for: [configured:node:node-5dc4ec63-0f58-4177-9be5-9525355f2796:node-1897bc79-91b4-4593-9602-059af6f29004]

2020-06-21 23:17:29 | [Mutex] received everything.

2020-06-21 23:17:29 | [Mutex] isItemNotified: configured:node:node-5dc4ec63-0f58-4177-9be5-9525355f2796:node-1897bc79-91b4-4593-9602-059af6f29004 :: true

2020-06-21 23:17:30 | [Mutex] waiting for: [received:nodes:3b630d1b-623f-4a82-aa96-46098de20f4c:localhost]

2020-06-21 23:17:30 | [Mutex] received everything.

2020-06-21 23:17:30 | [Mutex] isItemNotified: received:node:3b630d1b-623f-4a82-aa96-46098de20f4c:localhost:node-5dc4ec63-0f58-4177-9be5-9525355f2796:Node 5dc4ec63-0f58-4177-9be5-9525355f2796 :: true

2020-06-21 23:17:30 | [Mutex] waiting for: [received:nodes:9cd14432-c6dc-45e3-bfc7-983ff6070e26:localhost]

2020-06-21 23:17:30 | [Mutex] received everything.

2020-06-21 23:17:30 | [Mutex] isItemNotified: received:node:9cd14432-c6dc-45e3-bfc7-983ff6070e26:localhost:node-5dc4ec63-0f58-4177-9be5-9525355f2796:Node 5dc4ec63-0f58-4177-9be5-9525355f2796 :: false

createNodes 1.581s
2020-06-21 23:17:26 |

2020-06-21 23:17:26 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:26 | ------------------------------------

2020-06-21 23:17:26 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 5dc4ec63-0f58-4177-9be5-9525355f2796</title></pubsub></data>

2020-06-21 23:17:27 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-21 23:17:28 | [Mutex] waiting for: [received:nodes:31468215-ea7d-496a-998d-0ac23dc34c69:localhost]

2020-06-21 23:17:28 | [Mutex] received everything.

2020-06-21 23:17:28 | [Mutex] isItemNotified: received:node:31468215-ea7d-496a-998d-0ac23dc34c69:localhost:node-5dc4ec63-0f58-4177-9be5-9525355f2796:Node 5dc4ec63-0f58-4177-9be5-9525355f2796 :: true

createSubnodes 1.022s
2020-06-21 23:17:28 |

2020-06-21 23:17:28 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:28 | ------------------------------------

2020-06-21 23:17:28 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-1897bc79-91b4-4593-9602-059af6f29004</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 1897bc79-91b4-4593-9602-059af6f29004</title></pubsub></data>

2020-06-21 23:17:28 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-21 23:17:29 | [Mutex] waiting for: [received:nodes:6f82704f-9d3b-41c2-8192-2c3b2cafc316:localhost]

2020-06-21 23:17:29 | [Mutex] received everything.

2020-06-21 23:17:29 | [Mutex] isItemNotified: received:node:6f82704f-9d3b-41c2-8192-2c3b2cafc316:localhost:node-1897bc79-91b4-4593-9602-059af6f29004:Node 1897bc79-91b4-4593-9602-059af6f29004 :: true

deleteNodes 1.018s
2020-06-21 23:17:34 |

2020-06-21 23:17:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:34 | ------------------------------------

2020-06-21 23:17:34 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-1897bc79-91b4-4593-9602-059af6f29004</node></data>

2020-06-21 23:17:34 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-21 23:17:35 | [Mutex] waiting for: [received:nodes:61dec0fe-adcc-4ee2-adcb-8a5b08099704:localhost]

2020-06-21 23:17:35 | [Mutex] received everything.

2020-06-21 23:17:35 | [Mutex] isItemNotified: received:node:61dec0fe-adcc-4ee2-adcb-8a5b08099704:localhost:node-1897bc79-91b4-4593-9602-059af6f29004:Node 1897bc79-91b4-4593-9602-059af6f29004 :: false

deleteSubnodes 1.119s
2020-06-21 23:17:33 |

2020-06-21 23:17:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:33 | ------------------------------------

2020-06-21 23:17:33 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node></data>

2020-06-21 23:17:33 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-21 23:17:34 | [Mutex] waiting for: [received:nodes:4246c979-cc4c-4f57-a3f5-0a91e539edee:localhost]

2020-06-21 23:17:34 | [Mutex] received everything.

2020-06-21 23:17:34 | [Mutex] isItemNotified: received:node:4246c979-cc4c-4f57-a3f5-0a91e539edee:localhost:node-5dc4ec63-0f58-4177-9be5-9525355f2796:Node 5dc4ec63-0f58-4177-9be5-9525355f2796 :: false

2020-06-21 23:17:34 | [Mutex] waiting for: [received:nodes:5a3c0bd2-f4f1-450e-bc60-a3b872fb1d7a:localhost]

2020-06-21 23:17:34 | [Mutex] received everything.

2020-06-21 23:17:34 | [Mutex] isItemNotified: received:node:5a3c0bd2-f4f1-450e-bc60-a3b872fb1d7a:localhost:node-5dc4ec63-0f58-4177-9be5-9525355f2796:Node 5dc4ec63-0f58-4177-9be5-9525355f2796 :: false

publishItemsToNodes 0.233s
2020-06-21 23:17:31 |

2020-06-21 23:17:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:31 | ------------------------------------

2020-06-21 23:17:31 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node><item-id>item-830bda3b-635b-4c52-b1a5-edc2af9303d5</item-id><entry><test>item-830bda3b-635b-4c52-b1a5-edc2af9303d5</test></entry></data>

2020-06-21 23:17:31 | 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-830bda3b-635b-4c52-b1a5-edc2af9303d5</value></item-id></result>

2020-06-21 23:17:31 | [Mutex] waiting for: [published:item:notifieditem-830bda3b-635b-4c52-b1a5-edc2af9303d5:admin@localhost]

2020-06-21 23:17:31 | [Mutex] received everything.

2020-06-21 23:17:31 | [Mutex] isItemNotified: published:item:notifieditem-830bda3b-635b-4c52-b1a5-edc2af9303d5:admin@localhost :: true

retractItemsFromNodes 0.132s
2020-06-21 23:17:32 |

2020-06-21 23:17:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:32 | ------------------------------------

2020-06-21 23:17:32 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node><item-id>item-830bda3b-635b-4c52-b1a5-edc2af9303d5</item-id></data>

2020-06-21 23:17:32 | 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-830bda3b-635b-4c52-b1a5-edc2af9303d5</value></item-id></result>

2020-06-21 23:17:32 | [Mutex] received everything.

2020-06-21 23:17:32 | [Mutex] isItemNotified: retracted:item:notifieditem-830bda3b-635b-4c52-b1a5-edc2af9303d5:admin@localhost :: true

retrieveItemsFromNodes 0.194s
2020-06-21 23:17:31 |

2020-06-21 23:17:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:31 | ------------------------------------

2020-06-21 23:17:31 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node><item-id>item-830bda3b-635b-4c52-b1a5-edc2af9303d5</item-id></data>

2020-06-21 23:17:31 | 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-5dc4ec63-0f58-4177-9be5-9525355f2796</value></node><item-id label="Item ID" type="text-single"><value>item-830bda3b-635b-4c52-b1a5-edc2af9303d5</value></item-id><item label="Item" type="text-multi"><value><item id="item-830bda3b-635b-4c52-b1a5-edc2af9303d5"><test>item-830bda3b-635b-4c52-b1a5-edc2af9303d5</test></item></value></item></result>

2020-06-21 23:17:31 | [Mutex] notify: [retrieved:item:item-830bda3b-635b-4c52-b1a5-edc2af9303d5:payload-matches:true:localhost]

2020-06-21 23:17:31 | [Mutex] received everything.

2020-06-21 23:17:31 | [Mutex] isItemNotified: retrieved:item:item-830bda3b-635b-4c52-b1a5-edc2af9303d5:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.140s
2020-06-21 23:17:31 |

2020-06-21 23:17:31 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:31 | ------------------------------------

2020-06-21 23:17:31 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-21 23:17:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-1897bc79-91b4-4593-9602-059af6f29004</value><value>test</value><value>node-5dc4ec63-0f58-4177-9be5-9525355f2796</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-21 23:17:32 |

2020-06-21 23:17:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:32 | ------------------------------------

2020-06-21 23:17:32 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-5dc4ec63-0f58-4177-9be5-9525355f2796)</node-pattern></data>

2020-06-21 23:17:32 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.125s
2020-06-21 23:17:30 |

2020-06-21 23:17:30 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:30 | ------------------------------------

2020-06-21 23:17:30 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node><jids><value>admin@localhost</value></jids></data>

2020-06-21 23:17:30 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.224s
2020-06-21 23:17:32 |

2020-06-21 23:17:32 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-21 23:17:32 | ------------------------------------

2020-06-21 23:17:32 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-5dc4ec63-0f58-4177-9be5-9525355f2796</node><jids><value>admin@localhost</value></jids></data>

2020-06-21 23:17:32 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>