]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat tests : FuncUtils cleanup use heat_client
authorSteven Hardy <shardy@redhat.com>
Tue, 4 Sep 2012 18:03:24 +0000 (19:03 +0100)
committerSteven Hardy <shardy@redhat.com>
Wed, 5 Sep 2012 12:37:41 +0000 (13:37 +0100)
Use heat_client calls (not subprocess) in cleanup

Change-Id: Ie622d22af66ce00272df975823a74a8fa7bd25c8
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/tests/functional/util.py

index 0b1d946daa659754d727560d1106b53519599dec..deba33f8243a6ff079a60fdf5531a89172cd1f1a 100644 (file)
@@ -368,7 +368,9 @@ class FuncUtils:
 
     def cleanup(self):
         self.ssh.close()
-        subprocess.call(['heat', 'delete', self.stackname])
+        parameters = {'StackName': self.stackname}
+        c = self.get_heat_client()
+        c.delete_stack(**parameters)
 
 if __name__ == '__main__':
     sys.argv.append(__file__)