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

Test duration: 10.353s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.090s
2019-11-21 04:55:00 |

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

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

2019-11-21 04:55:00 | [Mutex] waiting for: [configured:node:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:node-e2fa42eb-4714-418a-81c2-865e4a44c71e]

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

2019-11-21 04:55:00 | [Mutex] isItemNotified: configured:node:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:node-e2fa42eb-4714-418a-81c2-865e4a44c71e :: true

2019-11-21 04:55:01 | [Mutex] waiting for: [received:nodes:b6563d41-25fe-4a87-8860-cc147fd300a6:localhost]

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

2019-11-21 04:55:01 | [Mutex] isItemNotified: received:node:b6563d41-25fe-4a87-8860-cc147fd300a6:localhost:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:Node 32dc70ec-ad7b-457d-a96e-86ba61d36318 :: true

2019-11-21 04:55:01 | [Mutex] waiting for: [received:nodes:76a3b8a4-768b-499f-9390-ab42cf4a32cb:localhost]

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

2019-11-21 04:55:01 | [Mutex] isItemNotified: received:node:76a3b8a4-768b-499f-9390-ab42cf4a32cb:localhost:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:Node 32dc70ec-ad7b-457d-a96e-86ba61d36318 :: false

createNodes 1.580s
2019-11-21 04:54:58 |

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

2019-11-21 04:54:58 | ------------------------------------

2019-11-21 04:54:58 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 32dc70ec-ad7b-457d-a96e-86ba61d36318</title></pubsub></data>

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

2019-11-21 04:54:59 | [Mutex] waiting for: [received:nodes:e6a36102-61f8-40ec-87d5-c7fe3bb1efad:localhost]

2019-11-21 04:54:59 | [Mutex] received everything.

2019-11-21 04:54:59 | [Mutex] isItemNotified: received:node:e6a36102-61f8-40ec-87d5-c7fe3bb1efad:localhost:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:Node 32dc70ec-ad7b-457d-a96e-86ba61d36318 :: true

createSubnodes 1.022s
2019-11-21 04:54:59 |

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

2019-11-21 04:54:59 | ------------------------------------

2019-11-21 04:54:59 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-e2fa42eb-4714-418a-81c2-865e4a44c71e</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node e2fa42eb-4714-418a-81c2-865e4a44c71e</title></pubsub></data>

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

2019-11-21 04:55:00 | [Mutex] waiting for: [received:nodes:db8d1663-62c8-48e4-9cd7-082024b46ec4:localhost]

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

2019-11-21 04:55:00 | [Mutex] isItemNotified: received:node:db8d1663-62c8-48e4-9cd7-082024b46ec4:localhost:node-e2fa42eb-4714-418a-81c2-865e4a44c71e:Node e2fa42eb-4714-418a-81c2-865e4a44c71e :: true

deleteNodes 1.021s
2019-11-21 04:55:06 |

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

2019-11-21 04:55:06 | ------------------------------------

2019-11-21 04:55:06 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-e2fa42eb-4714-418a-81c2-865e4a44c71e</node></data>

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

2019-11-21 04:55:07 | [Mutex] waiting for: [received:nodes:ec306fb3-e8fa-437f-88af-cbec3f5c9709:localhost]

2019-11-21 04:55:07 | [Mutex] received everything.

2019-11-21 04:55:07 | [Mutex] isItemNotified: received:node:ec306fb3-e8fa-437f-88af-cbec3f5c9709:localhost:node-e2fa42eb-4714-418a-81c2-865e4a44c71e:Node e2fa42eb-4714-418a-81c2-865e4a44c71e :: false

deleteSubnodes 1.155s
2019-11-21 04:55:05 |

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

2019-11-21 04:55:05 | ------------------------------------

2019-11-21 04:55:05 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node></data>

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

2019-11-21 04:55:06 | [Mutex] waiting for: [received:nodes:a7ea0b76-ca9a-46e4-ad65-5a9535bddf06:localhost]

2019-11-21 04:55:06 | [Mutex] received everything.

2019-11-21 04:55:06 | [Mutex] isItemNotified: received:node:a7ea0b76-ca9a-46e4-ad65-5a9535bddf06:localhost:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:Node 32dc70ec-ad7b-457d-a96e-86ba61d36318 :: false

2019-11-21 04:55:06 | [Mutex] waiting for: [received:nodes:bd371672-3f56-4aef-a811-dcf5584f8d1e:localhost]

2019-11-21 04:55:06 | [Mutex] received everything.

2019-11-21 04:55:06 | [Mutex] isItemNotified: received:node:bd371672-3f56-4aef-a811-dcf5584f8d1e:localhost:node-32dc70ec-ad7b-457d-a96e-86ba61d36318:Node 32dc70ec-ad7b-457d-a96e-86ba61d36318 :: false

publishItemsToNodes 0.229s
2019-11-21 04:55:02 |

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

2019-11-21 04:55:02 | ------------------------------------

2019-11-21 04:55:02 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node><item-id>item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</item-id><entry><test>item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</test></entry></data>

2019-11-21 04:55:03 | 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-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</value></item-id></result>

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

2019-11-21 04:55:03 | [Mutex] isItemNotified: published:item:notifieditem-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3:admin@localhost :: true

retractItemsFromNodes 0.311s
2019-11-21 04:55:03 |

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

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

2019-11-21 04:55:03 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node><item-id>item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</item-id></data>

2019-11-21 04:55:04 | 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-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</value></item-id></result>

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

2019-11-21 04:55:04 | [Mutex] isItemNotified: retracted:item:notifieditem-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3:admin@localhost :: true

retrieveItemsFromNodes 0.264s
2019-11-21 04:55:03 |

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

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

2019-11-21 04:55:03 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node><item-id>item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</item-id></data>

2019-11-21 04:55:03 | 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-32dc70ec-ad7b-457d-a96e-86ba61d36318</value></node><item-id label="Item ID" type="text-single"><value>item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</value></item-id><item label="Item" type="text-multi"><value><item id="item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3"><test>item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3</test></item></value></item></result>

2019-11-21 04:55:03 | [Mutex] notify: [retrieved:item:item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3:payload-matches:true:localhost]

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

2019-11-21 04:55:03 | [Mutex] isItemNotified: retrieved:item:item-b06c1c0f-d980-4b5b-b81c-64a4d10e2fd3:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.256s
2019-11-21 04:55:03 |

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

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

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

2019-11-21 04:55:03 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</value><value>node-e2fa42eb-4714-418a-81c2-865e4a44c71e</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.062s
2019-11-21 04:55:03 |

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

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

2019-11-21 04:55:03 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-32dc70ec-ad7b-457d-a96e-86ba61d36318)</node-pattern></data>

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

subscribeNodes 1.121s
2019-11-21 04:55:01 |

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

2019-11-21 04:55:01 | ------------------------------------

2019-11-21 04:55:01 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.319s
2019-11-21 04:55:04 |

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

2019-11-21 04:55:04 | ------------------------------------

2019-11-21 04:55:04 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-32dc70ec-ad7b-457d-a96e-86ba61d36318</node><jids><value>admin@localhost</value></jids></data>

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