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

Test duration: 10.123s

Passed Tests
tigase.tests.pubsub.TestRestApiUsingXML
configureNodes 1.100s
2020-06-24 22:52:19 |

2020-06-24 22:52:19 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:19 | ------------------------------------

2020-06-24 22:52:19 | [Mutex] waiting for: [configured:node:node-f3919d5a-2b14-4289-b30d-d195fa860c23:node-602f1e40-474e-4266-b6fb-9a447d0bf3ef]

2020-06-24 22:52:19 | [Mutex] received everything.

2020-06-24 22:52:19 | [Mutex] isItemNotified: configured:node:node-f3919d5a-2b14-4289-b30d-d195fa860c23:node-602f1e40-474e-4266-b6fb-9a447d0bf3ef :: true

2020-06-24 22:52:20 | [Mutex] waiting for: [received:nodes:a7ef74e9-5c47-4910-a4bc-4ee966678a53:localhost]

2020-06-24 22:52:20 | [Mutex] received everything.

2020-06-24 22:52:20 | [Mutex] isItemNotified: received:node:a7ef74e9-5c47-4910-a4bc-4ee966678a53:localhost:node-f3919d5a-2b14-4289-b30d-d195fa860c23:Node f3919d5a-2b14-4289-b30d-d195fa860c23 :: true

2020-06-24 22:52:20 | [Mutex] waiting for: [received:nodes:2552e380-96b0-4a95-8147-3a25bac42081:localhost]

2020-06-24 22:52:20 | [Mutex] received everything.

2020-06-24 22:52:20 | [Mutex] isItemNotified: received:node:2552e380-96b0-4a95-8147-3a25bac42081:localhost:node-f3919d5a-2b14-4289-b30d-d195fa860c23:Node f3919d5a-2b14-4289-b30d-d195fa860c23 :: false

createNodes 1.687s
2020-06-24 22:52:16 |

2020-06-24 22:52:16 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:16 | ------------------------------------

2020-06-24 22:52:16 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>leaf</node_type><title>Node f3919d5a-2b14-4289-b30d-d195fa860c23</title></pubsub></data>

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

2020-06-24 22:52:18 | [Mutex] waiting for: [received:nodes:cdd1b067-176f-4727-a67b-a72bb55af5b6:localhost]

2020-06-24 22:52:18 | [Mutex] received everything.

2020-06-24 22:52:18 | [Mutex] isItemNotified: received:node:cdd1b067-176f-4727-a67b-a72bb55af5b6:localhost:node-f3919d5a-2b14-4289-b30d-d195fa860c23:Node f3919d5a-2b14-4289-b30d-d195fa860c23 :: true

createSubnodes 1.023s
2020-06-24 22:52:18 |

2020-06-24 22:52:18 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:18 | ------------------------------------

2020-06-24 22:52:18 | on localhost executing action create-node with content type application/xml and payload:
<data><node>node-602f1e40-474e-4266-b6fb-9a447d0bf3ef</node><owner>admin@localhost</owner><pubsub prefix="true"><node_type>collection</node_type><title>Node 602f1e40-474e-4266-b6fb-9a447d0bf3ef</title></pubsub></data>

2020-06-24 22:52:18 | from localhost for action create-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

2020-06-24 22:52:19 | [Mutex] waiting for: [received:nodes:630518ae-255e-4572-95ae-d06cf00987b8:localhost]

2020-06-24 22:52:19 | [Mutex] received everything.

2020-06-24 22:52:19 | [Mutex] isItemNotified: received:node:630518ae-255e-4572-95ae-d06cf00987b8:localhost:node-602f1e40-474e-4266-b6fb-9a447d0bf3ef:Node 602f1e40-474e-4266-b6fb-9a447d0bf3ef :: true

deleteNodes 1.019s
2020-06-24 22:52:24 |

2020-06-24 22:52:24 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:24 | ------------------------------------

2020-06-24 22:52:24 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-602f1e40-474e-4266-b6fb-9a447d0bf3ef</node></data>

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

2020-06-24 22:52:25 | [Mutex] waiting for: [received:nodes:7a43545c-a657-48d4-b882-bae29b682aab:localhost]

2020-06-24 22:52:25 | [Mutex] received everything.

2020-06-24 22:52:25 | [Mutex] isItemNotified: received:node:7a43545c-a657-48d4-b882-bae29b682aab:localhost:node-602f1e40-474e-4266-b6fb-9a447d0bf3ef:Node 602f1e40-474e-4266-b6fb-9a447d0bf3ef :: false

deleteSubnodes 1.167s
2020-06-24 22:52:23 |

2020-06-24 22:52:23 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:23 | ------------------------------------

2020-06-24 22:52:23 | on localhost executing action delete-node with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node></data>

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

2020-06-24 22:52:24 | [Mutex] waiting for: [received:nodes:23996aac-4453-4b32-ba32-24a8e2735f50:localhost]

2020-06-24 22:52:24 | [Mutex] received everything.

2020-06-24 22:52:24 | [Mutex] isItemNotified: received:node:23996aac-4453-4b32-ba32-24a8e2735f50:localhost:node-f3919d5a-2b14-4289-b30d-d195fa860c23:Node f3919d5a-2b14-4289-b30d-d195fa860c23 :: false

2020-06-24 22:52:24 | [Mutex] waiting for: [received:nodes:1cece4a8-7b9e-4071-9748-b7a23f64d267:localhost]

2020-06-24 22:52:24 | [Mutex] received everything.

2020-06-24 22:52:24 | [Mutex] isItemNotified: received:node:1cece4a8-7b9e-4071-9748-b7a23f64d267:localhost:node-f3919d5a-2b14-4289-b30d-d195fa860c23:Node f3919d5a-2b14-4289-b30d-d195fa860c23 :: false

publishItemsToNodes 0.234s
2020-06-24 22:52:21 |

2020-06-24 22:52:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:21 | ------------------------------------

2020-06-24 22:52:21 | on localhost executing action publish-item with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node><item-id>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</item-id><entry><test>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</test></entry></data>

2020-06-24 22:52:21 | from localhost for action publish-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</value></item-id></result>

2020-06-24 22:52:21 | [Mutex] waiting for: [published:item:notifieditem-fcd31809-d5c0-43fc-96d2-37073fa0a64d:admin@localhost]

2020-06-24 22:52:21 | [Mutex] received everything.

2020-06-24 22:52:21 | [Mutex] isItemNotified: published:item:notifieditem-fcd31809-d5c0-43fc-96d2-37073fa0a64d:admin@localhost :: true

retractItemsFromNodes 0.266s
2020-06-24 22:52:22 |

2020-06-24 22:52:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:22 | ------------------------------------

2020-06-24 22:52:22 | on localhost executing action delete-item with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node><item-id>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</item-id></data>

2020-06-24 22:52:22 | from localhost for action delete-item got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note><item-id type="fixed" label="Item ID"><value>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</value></item-id></result>

2020-06-24 22:52:22 | [Mutex] received everything.

2020-06-24 22:52:22 | [Mutex] isItemNotified: retracted:item:notifieditem-fcd31809-d5c0-43fc-96d2-37073fa0a64d:admin@localhost :: true

retrieveItemsFromNodes 0.159s
2020-06-24 22:52:21 |

2020-06-24 22:52:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:21 | ------------------------------------

2020-06-24 22:52:21 | on localhost executing action retrieve-item with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node><item-id>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</item-id></data>

2020-06-24 22:52:21 | from localhost for action retrieve-item got result code 200 and payload
<result><title>Retrive PubSub node item</title><node type="text-single" label="Node"><value>node-f3919d5a-2b14-4289-b30d-d195fa860c23</value></node><item-id type="text-single" label="Item ID"><value>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</value></item-id><item type="text-multi" label="Item"><value><item id="item-fcd31809-d5c0-43fc-96d2-37073fa0a64d"><test>item-fcd31809-d5c0-43fc-96d2-37073fa0a64d</test></item></value></item></result>

2020-06-24 22:52:21 | [Mutex] notify: [retrieved:item:item-fcd31809-d5c0-43fc-96d2-37073fa0a64d:payload-matches:true:localhost]

2020-06-24 22:52:21 | [Mutex] received everything.

2020-06-24 22:52:21 | [Mutex] isItemNotified: retrieved:item:item-fcd31809-d5c0-43fc-96d2-37073fa0a64d:payload-matches:true:localhost :: true

retrieveUserSubscriptions 0.165s
2020-06-24 22:52:21 |

2020-06-24 22:52:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:21 | ------------------------------------

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

2020-06-24 22:52:21 | from localhost for action retrieve-user-subscriptions got result code 200 and payload
<result><nodes type="text-multi" label="Nodes"><value>test</value><value>node-f3919d5a-2b14-4289-b30d-d195fa860c23</value><value>node-602f1e40-474e-4266-b6fb-9a447d0bf3ef</value></nodes></result>

retrieveUserSubscriptionsWithRegex 0.054s
2020-06-24 22:52:21 |

2020-06-24 22:52:21 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:21 | ------------------------------------

2020-06-24 22:52:21 | on localhost executing action retrieve-user-subscriptions with content type application/xml and payload:
<data><jid>admin@localhost</jid><node-pattern>(?!node-f3919d5a-2b14-4289-b30d-d195fa860c23)</node-pattern></data>

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

subscribeNodes 1.094s
2020-06-24 22:52:20 |

2020-06-24 22:52:20 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:20 | ------------------------------------

2020-06-24 22:52:20 | on localhost executing action subscribe-node with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node><jids><value>admin@localhost</value></jids></data>

2020-06-24 22:52:20 | from localhost for action subscribe-node got result code 200 and payload
<result><Note type="fixed"><value>Operation successful</value></Note></result>

unsubscribeNodes 1.226s
2020-06-24 22:52:22 |

2020-06-24 22:52:22 | null / [TestClass name=class tigase.tests.pubsub.TestRestApiUsingXML]

2020-06-24 22:52:22 | ------------------------------------

2020-06-24 22:52:22 | on localhost executing action unsubscribe-node with content type application/xml and payload:
<data><node>node-f3919d5a-2b14-4289-b30d-d195fa860c23</node><jids><value>admin@localhost</value></jids></data>

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