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

Test duration: 9,779s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1,131s
2020-07-23 11:29:36 |

2020-07-23 11:29:36 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:36 | ------------------------------------

2020-07-23 11:29:36 | [Mutex] waiting for: [configured:node:node-7911e218-f88f-4a7c-ac11-97f60756e91f:node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8]

2020-07-23 11:29:36 | [Mutex] received everything.

2020-07-23 11:29:36 | [Mutex] isItemNotified: configured:node:node-7911e218-f88f-4a7c-ac11-97f60756e91f:node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8 :: true

2020-07-23 11:29:37 | [Mutex] waiting for: [received:nodes:a9ea0191-24d9-48a1-b64d-ec8903c2a4cc:localhost]

2020-07-23 11:29:37 | [Mutex] received everything.

2020-07-23 11:29:37 | [Mutex] isItemNotified: received:node:a9ea0191-24d9-48a1-b64d-ec8903c2a4cc:localhost:node-7911e218-f88f-4a7c-ac11-97f60756e91f:Node 7911e218-f88f-4a7c-ac11-97f60756e91f :: true

2020-07-23 11:29:37 | [Mutex] waiting for: [received:nodes:1557e16a-cc09-4bdf-8393-64683a5b66f6:localhost]

2020-07-23 11:29:37 | [Mutex] received everything.

2020-07-23 11:29:37 | [Mutex] isItemNotified: received:node:1557e16a-cc09-4bdf-8393-64683a5b66f6:localhost:node-7911e218-f88f-4a7c-ac11-97f60756e91f:Node 7911e218-f88f-4a7c-ac11-97f60756e91f :: false

createNodes 1,658s
2020-07-23 11:29:33 |

2020-07-23 11:29:33 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:33 | ------------------------------------

2020-07-23 11:29:33 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 7911e218-f88f-4a7c-ac11-97f60756e91f</title></pubsub></data>

2020-07-23 11:29:34 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-07-23 11:29:35 | [Mutex] waiting for: [received:nodes:b9f5d30f-7b7f-439e-aa2a-2e8791a34d7a:localhost]

2020-07-23 11:29:35 | [Mutex] waiting for: [received:nodes:b9f5d30f-7b7f-439e-aa2a-2e8791a34d7a:localhost]

2020-07-23 11:29:35 | [Mutex] received everything.

2020-07-23 11:29:35 | [Mutex] isItemNotified: received:node:b9f5d30f-7b7f-439e-aa2a-2e8791a34d7a:localhost:node-7911e218-f88f-4a7c-ac11-97f60756e91f:Node 7911e218-f88f-4a7c-ac11-97f60756e91f :: true

createSubnodes 1,051s
2020-07-23 11:29:35 |

2020-07-23 11:29:35 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:35 | ------------------------------------

2020-07-23 11:29:35 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8</node><owner>admin@test-domain.com</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8</title></pubsub></data>

2020-07-23 11:29:35 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-07-23 11:29:36 | [Mutex] waiting for: [received:nodes:e687d60d-a74b-40df-9e79-78853c6e879a:localhost]

2020-07-23 11:29:36 | [Mutex] received everything.

2020-07-23 11:29:36 | [Mutex] isItemNotified: received:node:e687d60d-a74b-40df-9e79-78853c6e879a:localhost:node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8:Node ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8 :: true

deleteNodes 1,063s
2020-07-23 11:29:41 |

2020-07-23 11:29:41 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:41 | ------------------------------------

2020-07-23 11:29:41 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8</node></data>

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

2020-07-23 11:29:43 | [Mutex] waiting for: [received:nodes:e9625cf3-5ceb-4ea5-99d6-0697482e13e6:localhost]

2020-07-23 11:29:43 | [Mutex] received everything.

2020-07-23 11:29:43 | [Mutex] isItemNotified: received:node:e9625cf3-5ceb-4ea5-99d6-0697482e13e6:localhost:node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8:Node ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8 :: false

deleteSubnodes 1,175s
2020-07-23 11:29:40 |

2020-07-23 11:29:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:40 | ------------------------------------

2020-07-23 11:29:40 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node></data>

2020-07-23 11:29:40 | from localhost for action delete-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-07-23 11:29:41 | [Mutex] waiting for: [received:nodes:8eb8cf7c-d358-49c9-9384-4f3a2c538361:localhost]

2020-07-23 11:29:41 | [Mutex] received everything.

2020-07-23 11:29:41 | [Mutex] isItemNotified: received:node:8eb8cf7c-d358-49c9-9384-4f3a2c538361:localhost:node-7911e218-f88f-4a7c-ac11-97f60756e91f:Node 7911e218-f88f-4a7c-ac11-97f60756e91f :: false

2020-07-23 11:29:41 | [Mutex] waiting for: [received:nodes:3d93cdd2-91d9-4ed7-9f53-7a71a091196c:localhost]

2020-07-23 11:29:41 | [Mutex] received everything.

2020-07-23 11:29:41 | [Mutex] isItemNotified: received:node:3d93cdd2-91d9-4ed7-9f53-7a71a091196c:localhost:node-7911e218-f88f-4a7c-ac11-97f60756e91f:Node 7911e218-f88f-4a7c-ac11-97f60756e91f :: false

publishItemsToNodes 0,238s
2020-07-23 11:29:38 |

2020-07-23 11:29:38 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:38 | ------------------------------------

2020-07-23 11:29:38 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node><item-id>item-416f2816-6f5c-4b8d-8670-11825c79a76b</item-id><entry><test>item-416f2816-6f5c-4b8d-8670-11825c79a76b</test></entry></data>

2020-07-23 11:29:39 | 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-416f2816-6f5c-4b8d-8670-11825c79a76b</value></item-id></result>

2020-07-23 11:29:39 | [Mutex] waiting for: [published:item:notifieditem-416f2816-6f5c-4b8d-8670-11825c79a76b:admin@test-domain.com]

2020-07-23 11:29:39 | [Mutex] received everything.

2020-07-23 11:29:39 | [Mutex] isItemNotified: published:item:notifieditem-416f2816-6f5c-4b8d-8670-11825c79a76b:admin@test-domain.com :: true

retractItemsFromNodes 0,203s
2020-07-23 11:29:39 |

2020-07-23 11:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:39 | ------------------------------------

2020-07-23 11:29:39 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node><item-id>item-416f2816-6f5c-4b8d-8670-11825c79a76b</item-id></data>

2020-07-23 11:29: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-416f2816-6f5c-4b8d-8670-11825c79a76b</value></item-id></result>

2020-07-23 11:29:39 | [Mutex] waiting for: [retracted:item:notifieditem-416f2816-6f5c-4b8d-8670-11825c79a76b:admin@test-domain.com]

2020-07-23 11:29:39 | [Mutex] received everything.

2020-07-23 11:29:39 | [Mutex] isItemNotified: retracted:item:notifieditem-416f2816-6f5c-4b8d-8670-11825c79a76b:admin@test-domain.com :: true

retrieveItemsFromNodes 0,100s
2020-07-23 11:29:39 |

2020-07-23 11:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:39 | ------------------------------------

2020-07-23 11:29:39 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node><item-id>item-416f2816-6f5c-4b8d-8670-11825c79a76b</item-id></data>

2020-07-23 11:29: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-7911e218-f88f-4a7c-ac11-97f60756e91f</value></node><item-id label="Item ID" type="text-single"><value>item-416f2816-6f5c-4b8d-8670-11825c79a76b</value></item-id><item label="Item" type="text-multi"><value><item id="item-416f2816-6f5c-4b8d-8670-11825c79a76b"><test>item-416f2816-6f5c-4b8d-8670-11825c79a76b</test></item></value></item></result>

2020-07-23 11:29:39 | [Mutex] notify: [retrieved:item:item-416f2816-6f5c-4b8d-8670-11825c79a76b:payload-matches:true:localhost]

2020-07-23 11:29:39 | [Mutex] received everything.

2020-07-23 11:29:39 | [Mutex] isItemNotified: retrieved:item:item-416f2816-6f5c-4b8d-8670-11825c79a76b:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0,114s
2020-07-23 11:29:39 |

2020-07-23 11:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:39 | ------------------------------------

2020-07-23 11:29:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@test-domain.com</jid></data>

2020-07-23 11:29:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-ef01cfce-e9e9-4e7a-a4cd-7dce0d8c71d8</value><value>test</value><value>node-7911e218-f88f-4a7c-ac11-97f60756e91f</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0,015s
2020-07-23 11:29:39 |

2020-07-23 11:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:39 | ------------------------------------

2020-07-23 11:29:39 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@test-domain.com</jid><node-pattern>(?!node-7911e218-f88f-4a7c-ac11-97f60756e91f)</node-pattern></data>

2020-07-23 11:29:39 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"/></result>

subscribeNodes 1,150s
2020-07-23 11:29:37 |

2020-07-23 11:29:37 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:37 | ------------------------------------

2020-07-23 11:29:37 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node><jids><value>admin@test-domain.com</value></jids></data>

2020-07-23 11:29: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,143s
2020-07-23 11:29:39 |

2020-07-23 11:29:39 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-07-23 11:29:39 | ------------------------------------

2020-07-23 11:29:39 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-7911e218-f88f-4a7c-ac11-97f60756e91f</node><jids><value>admin@test-domain.com</value></jids></data>

2020-07-23 11:29:39 | from localhost for action unsubscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>