mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
List ISO's test to verify default ISO's are listed always
This commit is contained in:
parent
f4ef836309
commit
d19a78ddf7
@ -229,6 +229,21 @@ class TestISO(cloudstackTestCase):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
def get_iso_details(self,isoname):
|
||||||
|
|
||||||
|
#ListIsos to list default ISOS (VM and xen tools)
|
||||||
|
list_default_iso_response = list_isos(
|
||||||
|
self.apiclient,
|
||||||
|
name=isoname,
|
||||||
|
isready="true"
|
||||||
|
)
|
||||||
|
self.assertEqual(
|
||||||
|
list_default_iso_response,
|
||||||
|
None,
|
||||||
|
"Check if ISO exists in ListIsos"
|
||||||
|
)
|
||||||
|
|
||||||
@attr(tags = ["advanced", "basic", "eip", "sg", "advancedns", "smoke"], required_hardware="false")
|
@attr(tags = ["advanced", "basic", "eip", "sg", "advancedns", "smoke"], required_hardware="false")
|
||||||
def test_02_edit_iso(self):
|
def test_02_edit_iso(self):
|
||||||
"""Test Edit ISO
|
"""Test Edit ISO
|
||||||
@ -514,3 +529,20 @@ class TestISO(cloudstackTestCase):
|
|||||||
cmd.zoneid = self.services["destzoneid"]
|
cmd.zoneid = self.services["destzoneid"]
|
||||||
self.apiclient.deleteIso(cmd)
|
self.apiclient.deleteIso(cmd)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
@attr(tags = ["advanced", "basic", "eip", "sg", "advancedns"], required_hardware="false")
|
||||||
|
def test_07_list_default_iso(self):
|
||||||
|
"""Test delete ISO
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Validate the following:
|
||||||
|
# list ISO should list default ISOS (VM and xen tools)
|
||||||
|
|
||||||
|
|
||||||
|
#ListIsos to list default ISOS (VM and xen tools)
|
||||||
|
list_xs__iso_response = self.get_iso_details("xs-tools.iso")
|
||||||
|
list_xs__iso_response = self.get_iso_details("vmware-tools.iso")
|
||||||
|
|
||||||
|
|
||||||
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user