<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, | |
software distributed under the License is distributed on an | |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
KIND, either express or implied. See the License for the | |
specific language governing permissions and limitations | |
under the License. | |
--> | |
<volumes> | |
<command> | |
<name>deployVirtualMachine</name> | |
<parameters> | |
<item getparam="true"> | |
<name>zoneid</name> | |
<param>globalzoneid</param> | |
</item> | |
<item getparam="true"> | |
<name>serviceofferingid</name> | |
<param>globalserviceofferingid</param> | |
</item> | |
<item getparam="true"> | |
<name>templateid</name> | |
<param>globaltemplateid</param> | |
</item> | |
<item> | |
<name>account</name> | |
<value>admin</value> | |
</item> | |
<item> | |
<name>domainid</name> | |
<value>1</value> | |
</item> | |
</parameters> | |
<returnvalue> | |
<item setparam="true"> | |
<name>id</name> | |
<param>vmid</param> | |
</item> | |
</returnvalue> | |
</command> | |
<!-- test case 1027 - try to create a volume in local storage setup (no shared storage) - should fail --> | |
<command> | |
<name>createVolume</name> | |
<testcase>1027</testcase> | |
<error>true</error> | |
<parameters> | |
<item> | |
<name>account</name> | |
<value>admin</value> | |
</item> | |
<item> | |
<name>domainid</name> | |
<value>1</value> | |
</item> | |
<item random="true"> | |
<name>name</name> | |
</item> | |
<item getparam="true"> | |
<name>zoneid</name> | |
<param>globalzoneid</param> | |
</item> | |
<item getparam="true"> | |
<name>diskofferingid</name> | |
<param>globaldiskofferingid</param> | |
</item> | |
</parameters> | |
</command> | |
<!-- Test case 1032 - try to detach datadisk volume from the Centos vm in local storage setup - should fail --> | |
<command> | |
<name>listVolumes</name> | |
<parameters> | |
<item getparam="true"> | |
<name>virtualmachineid</name> | |
<param>vmid</param> | |
</item> | |
<item> | |
<name>type</name> | |
<value>DATADISK</value> | |
</item> | |
</parameters> | |
<returnvalue> | |
<item setparam="true"> | |
<name>id</name> | |
<param>datadiskvolume</param> | |
</item> | |
</returnvalue> | |
</command> | |
<command> | |
<name>detachVolume</name> | |
<testcase>1032</testcase> | |
<error>true</error> | |
<parameters> | |
<item getparam="true"> | |
<name>id</name> | |
<param>datadiskvolume</param> | |
</item> | |
</parameters> | |
</command> | |
<!-- Test case 1034 - try to detach root volume from the Centos vm in local storage setup - should fail --> | |
<command> | |
<name>listVolumes</name> | |
<parameters> | |
<item getparam="true"> | |
<name>virtualmachineid</name> | |
<param>vmid</param> | |
</item> | |
<item> | |
<name>type</name> | |
<value>ROOT</value> | |
</item> | |
</parameters> | |
<returnvalue> | |
<item setparam="true"> | |
<name>id</name> | |
<param>rootdiskvolume</param> | |
</item> | |
</returnvalue> | |
</command> | |
<command> | |
<name>detachVolume</name> | |
<testcase>1034</testcase> | |
<error>true</error> | |
<parameters> | |
<item getparam="true"> | |
<name>id</name> | |
<param>rootdiskvolume</param> | |
</item> | |
</parameters> | |
</command> | |
</volumes> |