From d19a78ddf707397cee89cad076224752cc94e656 Mon Sep 17 00:00:00 2001 From: sailajamada Date: Fri, 26 Sep 2014 12:45:41 +0530 Subject: [PATCH] List ISO's test to verify default ISO's are listed always --- test/integration/smoke/test_iso.py | 34 +++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/test/integration/smoke/test_iso.py b/test/integration/smoke/test_iso.py index 3498ad737ec..4bd66b5dc4e 100644 --- a/test/integration/smoke/test_iso.py +++ b/test/integration/smoke/test_iso.py @@ -229,6 +229,21 @@ class TestISO(cloudstackTestCase): 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") def test_02_edit_iso(self): """Test Edit ISO @@ -321,7 +336,7 @@ class TestISO(cloudstackTestCase): "Check if ISO exists in ListIsos" ) return - + @attr(tags = ["advanced", "basic", "eip", "sg", "advancedns"], required_hardware="true") def test_04_extract_Iso(self): "Test for extract ISO" @@ -514,3 +529,20 @@ class TestISO(cloudstackTestCase): cmd.zoneid = self.services["destzoneid"] self.apiclient.deleteIso(cmd) 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