コード例 #1
0
 def tearDown(self):
     for inst in self.instances:
         common_functions.delete_instance(self.nova, inst)
     self.instances = []
     for fip in self.floating_ips:
         common_functions.delete_floating_ip(self.nova, fip)
     self.floating_ips = []
     for volume in self.volumes:
         self.os_conn.delete_volume(volume)
     self.volumes = []
     for flavor in self.flavors:
         common_functions.delete_flavor(self.nova, flavor.id)
     self.flavors = []
     for key in self.keys:
         common_functions.delete_keys(self.nova, key.name)
     self.keys = []
     self.os_conn.delete_security_group(self.sec_group)
コード例 #2
0
 def tearDown(self):
     for inst in self.instances:
         common_functions.delete_instance(self.nova, inst)
     self.instances = []
     for fip in self.floating_ips:
         common_functions.delete_floating_ip(self.nova, fip)
     self.floating_ips = []
     for volume in self.volumes:
         common_functions.delete_volume(self.cinder, volume)
     self.volumes = []
     for flavor in self.flavors:
         common_functions.delete_flavor(self.nova, flavor.id)
     self.flavors = []
     for key in self.keys:
         common_functions.delete_keys(self.nova, key.name)
     self.keys = []
     self.nova.security_groups.delete(self.sec_group)