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

Test duration: 10.688s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.107s
2019-11-24 20:14:43 |

2019-11-24 20:14:43 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:43 | ------------------------------------

2019-11-24 20:14:43 | [Mutex] waiting for: [configured:node:node-8a9ddb53-9743-4743-9149-031998144517:node-7d910059-248d-42cb-bc2b-3cc12aa22ca2]

2019-11-24 20:14:43 | [Mutex] received everything.

2019-11-24 20:14:43 | [Mutex] isItemNotified: configured:node:node-8a9ddb53-9743-4743-9149-031998144517:node-7d910059-248d-42cb-bc2b-3cc12aa22ca2 :: true

2019-11-24 20:14:44 | [Mutex] waiting for: [received:nodes:21692174-4857-4605-b680-0c289bbb79e5:localhost]

2019-11-24 20:14:44 | [Mutex] received everything.

2019-11-24 20:14:44 | [Mutex] isItemNotified: received:node:21692174-4857-4605-b680-0c289bbb79e5:localhost:node-8a9ddb53-9743-4743-9149-031998144517:Node 8a9ddb53-9743-4743-9149-031998144517 :: true

2019-11-24 20:14:44 | [Mutex] waiting for: [received:nodes:2eb3dd20-959a-4eb6-b9e2-56ec6d96b1cd:localhost]

2019-11-24 20:14:44 | [Mutex] received everything.

2019-11-24 20:14:44 | [Mutex] isItemNotified: received:node:2eb3dd20-959a-4eb6-b9e2-56ec6d96b1cd:localhost:node-8a9ddb53-9743-4743-9149-031998144517:Node 8a9ddb53-9743-4743-9149-031998144517 :: false

createNodes 1.786s
2019-11-24 20:14:40 |

2019-11-24 20:14:40 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:40 | ------------------------------------

2019-11-24 20:14:40 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node 8a9ddb53-9743-4743-9149-031998144517</title></pubsub></data>

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

2019-11-24 20:14:42 | [Mutex] waiting for: [received:nodes:c0bec20d-c8e0-4dbe-b5ef-61e9f6a82c94:localhost]

2019-11-24 20:14:42 | [Mutex] received everything.

2019-11-24 20:14:42 | [Mutex] isItemNotified: received:node:c0bec20d-c8e0-4dbe-b5ef-61e9f6a82c94:localhost:node-8a9ddb53-9743-4743-9149-031998144517:Node 8a9ddb53-9743-4743-9149-031998144517 :: true

createSubnodes 1.032s
2019-11-24 20:14:42 |

2019-11-24 20:14:42 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:42 | ------------------------------------

2019-11-24 20:14:42 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-7d910059-248d-42cb-bc2b-3cc12aa22ca2</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 7d910059-248d-42cb-bc2b-3cc12aa22ca2</title></pubsub></data>

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

2019-11-24 20:14:43 | [Mutex] waiting for: [received:nodes:2f4d04e9-0be7-4760-9b88-b5a63a463ef1:localhost]

2019-11-24 20:14:43 | [Mutex] received everything.

2019-11-24 20:14:43 | [Mutex] isItemNotified: received:node:2f4d04e9-0be7-4760-9b88-b5a63a463ef1:localhost:node-7d910059-248d-42cb-bc2b-3cc12aa22ca2:Node 7d910059-248d-42cb-bc2b-3cc12aa22ca2 :: true

deleteNodes 1.028s
2019-11-24 20:14:49 |

2019-11-24 20:14:49 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:49 | ------------------------------------

2019-11-24 20:14:49 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-7d910059-248d-42cb-bc2b-3cc12aa22ca2</node></data>

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

2019-11-24 20:14:50 | [Mutex] waiting for: [received:nodes:ed7de036-a3d4-47d9-a562-163a399d78d4:localhost]

2019-11-24 20:14:50 | [Mutex] received everything.

2019-11-24 20:14:50 | [Mutex] isItemNotified: received:node:ed7de036-a3d4-47d9-a562-163a399d78d4:localhost:node-7d910059-248d-42cb-bc2b-3cc12aa22ca2:Node 7d910059-248d-42cb-bc2b-3cc12aa22ca2 :: false

deleteSubnodes 1.260s
2019-11-24 20:14:47 |

2019-11-24 20:14:47 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:47 | ------------------------------------

2019-11-24 20:14:47 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node></data>

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

2019-11-24 20:14:49 | [Mutex] waiting for: [received:nodes:fb48818e-15fc-4675-8efb-65a6322af531:localhost]

2019-11-24 20:14:49 | [Mutex] waiting for: [received:nodes:fb48818e-15fc-4675-8efb-65a6322af531:localhost]

2019-11-24 20:14:49 | [Mutex] received everything.

2019-11-24 20:14:49 | [Mutex] isItemNotified: received:node:fb48818e-15fc-4675-8efb-65a6322af531:localhost:node-8a9ddb53-9743-4743-9149-031998144517:Node 8a9ddb53-9743-4743-9149-031998144517 :: false

2019-11-24 20:14:49 | [Mutex] waiting for: [received:nodes:f5d912bc-728a-445f-9c36-587cc86d56a2:localhost]

2019-11-24 20:14:49 | [Mutex] received everything.

2019-11-24 20:14:49 | [Mutex] isItemNotified: received:node:f5d912bc-728a-445f-9c36-587cc86d56a2:localhost:node-8a9ddb53-9743-4743-9149-031998144517:Node 8a9ddb53-9743-4743-9149-031998144517 :: false

publishItemsToNodes 0.264s
2019-11-24 20:14:45 |

2019-11-24 20:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:45 | ------------------------------------

2019-11-24 20:14:45 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node><item-id>item-0f4cfa35-803e-4c85-9608-2cd2a4253c71</item-id><entry><test>item-0f4cfa35-803e-4c85-9608-2cd2a4253c71</test></entry></data>

2019-11-24 20:14:45 | 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-0f4cfa35-803e-4c85-9608-2cd2a4253c71</value></item-id></result>

2019-11-24 20:14:45 | [Mutex] received everything.

2019-11-24 20:14:45 | [Mutex] isItemNotified: published:item:notifieditem-0f4cfa35-803e-4c85-9608-2cd2a4253c71:admin@localhost :: true

retractItemsFromNodes 0.239s
2019-11-24 20:14:46 |

2019-11-24 20:14:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:46 | ------------------------------------

2019-11-24 20:14:46 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node><item-id>item-0f4cfa35-803e-4c85-9608-2cd2a4253c71</item-id></data>

2019-11-24 20:14:46 | 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-0f4cfa35-803e-4c85-9608-2cd2a4253c71</value></item-id></result>

2019-11-24 20:14:46 | [Mutex] received everything.

2019-11-24 20:14:46 | [Mutex] isItemNotified: retracted:item:notifieditem-0f4cfa35-803e-4c85-9608-2cd2a4253c71:admin@localhost :: true

retrieveItemsFromNodes 0.214s
2019-11-24 20:14:45 |

2019-11-24 20:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:45 | ------------------------------------

2019-11-24 20:14:45 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node><item-id>item-0f4cfa35-803e-4c85-9608-2cd2a4253c71</item-id></data>

2019-11-24 20:14:45 | 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-8a9ddb53-9743-4743-9149-031998144517</value></node><item-id label="Item ID" type="text-single"><value>item-0f4cfa35-803e-4c85-9608-2cd2a4253c71</value></item-id><item label="Item" type="text-multi"><value><item id="item-0f4cfa35-803e-4c85-9608-2cd2a4253c71"><test>item-0f4cfa35-803e-4c85-9608-2cd2a4253c71</test></item></value></item></result>

2019-11-24 20:14:45 | [Mutex] notify: [retrieved:item:item-0f4cfa35-803e-4c85-9608-2cd2a4253c71:payload-matches:true:localhost]

2019-11-24 20:14:45 | [Mutex] received everything.

2019-11-24 20:14:45 | [Mutex] isItemNotified: retrieved:item:item-0f4cfa35-803e-4c85-9608-2cd2a4253c71:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.266s
2019-11-24 20:14:45 |

2019-11-24 20:14:45 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:45 | ------------------------------------

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

2019-11-24 20:14:46 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes label="Nodes" type="text-multi"><value>node-7d910059-248d-42cb-bc2b-3cc12aa22ca2</value><value>node-8a9ddb53-9743-4743-9149-031998144517</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.062s
2019-11-24 20:14:46 |

2019-11-24 20:14:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:46 | ------------------------------------

2019-11-24 20:14:46 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-8a9ddb53-9743-4743-9149-031998144517)</node-pattern></data>

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

subscribeNodes 1.192s
2019-11-24 20:14:44 |

2019-11-24 20:14:44 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:44 | ------------------------------------

2019-11-24 20:14:44 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node><jids><value>admin@localhost</value></jids></data>

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

unsubscribeNodes 1.267s
2019-11-24 20:14:46 |

2019-11-24 20:14:46 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2019-11-24 20:14:46 | ------------------------------------

2019-11-24 20:14:46 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-8a9ddb53-9743-4743-9149-031998144517</node><jids><value>admin@localhost</value></jids></data>

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