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

Test duration: 10.141s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.104s
2020-06-02 13:42:36 |

2020-06-02 13:42:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:36 | ------------------------------------

2020-06-02 13:42:36 | [Mutex] waiting for: [configured:node:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:node-da476003-e7dc-4371-8ecb-c88ca15c7887]

2020-06-02 13:42:36 | [Mutex] received everything.

2020-06-02 13:42:36 | [Mutex] isItemNotified: configured:node:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:node-da476003-e7dc-4371-8ecb-c88ca15c7887 :: true

2020-06-02 13:42:37 | [Mutex] waiting for: [received:nodes:e206ca7b-e8d4-4913-a3bd-61a038130f52:localhost]

2020-06-02 13:42:37 | [Mutex] received everything.

2020-06-02 13:42:37 | [Mutex] isItemNotified: received:node:e206ca7b-e8d4-4913-a3bd-61a038130f52:localhost:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:Node 86ed623b-9951-408e-ba96-9bf7c0e8b978 :: true

2020-06-02 13:42:37 | [Mutex] waiting for: [received:nodes:6661e717-806b-45bf-b6c3-6d55f9be72eb:localhost]

2020-06-02 13:42:37 | [Mutex] received everything.

2020-06-02 13:42:37 | [Mutex] isItemNotified: received:node:6661e717-806b-45bf-b6c3-6d55f9be72eb:localhost:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:Node 86ed623b-9951-408e-ba96-9bf7c0e8b978 :: false

createNodes 1.502s
2020-06-02 13:42:34 |

2020-06-02 13:42:34 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:34 | ------------------------------------

2020-06-02 13:42:34 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 86ed623b-9951-408e-ba96-9bf7c0e8b978</title></pubsub></data>

2020-06-02 13:42:34 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-02 13:42:35 | [Mutex] waiting for: [received:nodes:62f6d994-87dc-4d55-a74d-b56e88f7637a:localhost]

2020-06-02 13:42:35 | [Mutex] received everything.

2020-06-02 13:42:35 | [Mutex] isItemNotified: received:node:62f6d994-87dc-4d55-a74d-b56e88f7637a:localhost:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:Node 86ed623b-9951-408e-ba96-9bf7c0e8b978 :: true

createSubnodes 1.041s
2020-06-02 13:42:35 |

2020-06-02 13:42:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:35 | ------------------------------------

2020-06-02 13:42:35 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-da476003-e7dc-4371-8ecb-c88ca15c7887</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node da476003-e7dc-4371-8ecb-c88ca15c7887</title></pubsub></data>

2020-06-02 13:42:35 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-02 13:42:36 | [Mutex] waiting for: [received:nodes:aea8ab3a-161e-4eb4-bf5b-70b1c2607e82:localhost]

2020-06-02 13:42:36 | [Mutex] received everything.

2020-06-02 13:42:36 | [Mutex] isItemNotified: received:node:aea8ab3a-161e-4eb4-bf5b-70b1c2607e82:localhost:node-da476003-e7dc-4371-8ecb-c88ca15c7887:Node da476003-e7dc-4371-8ecb-c88ca15c7887 :: true

deleteNodes 1.020s
2020-06-02 13:42:42 |

2020-06-02 13:42:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:42 | ------------------------------------

2020-06-02 13:42:42 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-da476003-e7dc-4371-8ecb-c88ca15c7887</node></data>

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

2020-06-02 13:42:43 | [Mutex] waiting for: [received:nodes:953a76f4-5fdb-4900-ae99-afe820daf08d:localhost]

2020-06-02 13:42:43 | [Mutex] received everything.

2020-06-02 13:42:43 | [Mutex] isItemNotified: received:node:953a76f4-5fdb-4900-ae99-afe820daf08d:localhost:node-da476003-e7dc-4371-8ecb-c88ca15c7887:Node da476003-e7dc-4371-8ecb-c88ca15c7887 :: false

deleteSubnodes 1.139s
2020-06-02 13:42:41 |

2020-06-02 13:42:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:41 | ------------------------------------

2020-06-02 13:42:41 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node></data>

2020-06-02 13:42:41 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-02 13:42:42 | [Mutex] waiting for: [received:nodes:694af84c-ec97-47c3-992b-1e54c1a52354:localhost]

2020-06-02 13:42:42 | [Mutex] received everything.

2020-06-02 13:42:42 | [Mutex] isItemNotified: received:node:694af84c-ec97-47c3-992b-1e54c1a52354:localhost:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:Node 86ed623b-9951-408e-ba96-9bf7c0e8b978 :: false

2020-06-02 13:42:42 | [Mutex] waiting for: [received:nodes:ade779e4-5ef1-4864-8722-3626bd905033:localhost]

2020-06-02 13:42:42 | [Mutex] received everything.

2020-06-02 13:42:42 | [Mutex] isItemNotified: received:node:ade779e4-5ef1-4864-8722-3626bd905033:localhost:node-86ed623b-9951-408e-ba96-9bf7c0e8b978:Node 86ed623b-9951-408e-ba96-9bf7c0e8b978 :: false

publishItemsToNodes 0.196s
2020-06-02 13:42:38 |

2020-06-02 13:42:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:38 | ------------------------------------

2020-06-02 13:42:38 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node><item-id>item-5be9272c-452a-4c99-897b-fdbb90ad9c6d</item-id><entry><test>item-5be9272c-452a-4c99-897b-fdbb90ad9c6d</test></entry></data>

2020-06-02 13:42:38 | 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-5be9272c-452a-4c99-897b-fdbb90ad9c6d</value></item-id></result>

2020-06-02 13:42:38 | [Mutex] waiting for: [published:item:notifieditem-5be9272c-452a-4c99-897b-fdbb90ad9c6d:admin@localhost]

2020-06-02 13:42:38 | [Mutex] received everything.

2020-06-02 13:42:38 | [Mutex] isItemNotified: published:item:notifieditem-5be9272c-452a-4c99-897b-fdbb90ad9c6d:admin@localhost :: true

retractItemsFromNodes 0.300s
2020-06-02 13:42:39 |

2020-06-02 13:42:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:39 | ------------------------------------

2020-06-02 13:42:39 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node><item-id>item-5be9272c-452a-4c99-897b-fdbb90ad9c6d</item-id></data>

2020-06-02 13:42:39 | 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-5be9272c-452a-4c99-897b-fdbb90ad9c6d</value></item-id></result>

2020-06-02 13:42:39 | [Mutex] received everything.

2020-06-02 13:42:39 | [Mutex] isItemNotified: retracted:item:notifieditem-5be9272c-452a-4c99-897b-fdbb90ad9c6d:admin@localhost :: true

retrieveItemsFromNodes 0.203s
2020-06-02 13:42:39 |

2020-06-02 13:42:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:39 | ------------------------------------

2020-06-02 13:42:39 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node><item-id>item-5be9272c-452a-4c99-897b-fdbb90ad9c6d</item-id></data>

2020-06-02 13:42:39 | 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-86ed623b-9951-408e-ba96-9bf7c0e8b978</value></node><item-id label="Item ID" type="text-single"><value>item-5be9272c-452a-4c99-897b-fdbb90ad9c6d</value></item-id><item label="Item" type="text-multi"><value><item id="item-5be9272c-452a-4c99-897b-fdbb90ad9c6d"><test>item-5be9272c-452a-4c99-897b-fdbb90ad9c6d</test></item></value></item></result>

2020-06-02 13:42:39 | [Mutex] notify: [retrieved:item:item-5be9272c-452a-4c99-897b-fdbb90ad9c6d:payload-matches:true:localhost]

2020-06-02 13:42:39 | [Mutex] received everything.

2020-06-02 13:42:39 | [Mutex] isItemNotified: retrieved:item:item-5be9272c-452a-4c99-897b-fdbb90ad9c6d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.250s
2020-06-02 13:42:39 |

2020-06-02 13:42:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:39 | ------------------------------------

2020-06-02 13:42:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid></data>

2020-06-02 13:42:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</value><value>node-da476003-e7dc-4371-8ecb-c88ca15c7887</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-02 13:42:39 |

2020-06-02 13:42:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:39 | ------------------------------------

2020-06-02 13:42:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-86ed623b-9951-408e-ba96-9bf7c0e8b978)</node-pattern></data>

2020-06-02 13:42:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1.094s
2020-06-02 13:42:37 |

2020-06-02 13:42:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:37 | ------------------------------------

2020-06-02 13:42:37 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node><jids><value>admin@localhost</value></jids></data>

2020-06-02 13:42:37 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.252s
2020-06-02 13:42:39 |

2020-06-02 13:42:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-02 13:42:39 | ------------------------------------

2020-06-02 13:42:39 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-86ed623b-9951-408e-ba96-9bf7c0e8b978</node><jids><value>admin@localhost</value></jids></data>

2020-06-02 13:42:40 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>