CLOUDSTACK-2362: correct list append method fix userdata integration test
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/731cc439 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/731cc439 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/731cc439 Branch: refs/heads/ui-cisco-asa1000v-support Commit: 731cc439a363fd3b17b1ed5eeca51f92f9e993cc Parents: 8be3044 Author: Talluri <srikanteswararao.tall...@citrix.com> Authored: Wed May 8 14:12:46 2013 +0530 Committer: Prasanna Santhanam <t...@apache.org> Committed: Wed May 8 14:26:43 2013 +0530 ---------------------------------------------------------------------- .../smoke/test_deploy_vm_with_userdata.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/731cc439/test/integration/smoke/test_deploy_vm_with_userdata.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_deploy_vm_with_userdata.py b/test/integration/smoke/test_deploy_vm_with_userdata.py index fd9e320..8ca9bd0 100644 --- a/test/integration/smoke/test_deploy_vm_with_userdata.py +++ b/test/integration/smoke/test_deploy_vm_with_userdata.py @@ -111,6 +111,7 @@ class TestDeployVmWithUserData(cloudstackTestCase): vm = vms[0] self.assert_(vm.id == str(deployVmResponse.id), "Vm deployed is different from the test") self.assert_(vm.state == "Running", "VM is not in Running state") + self.cleanup.append(deployVmResponse) @attr(tags=["simulator", "devcloud", "basic", "advanced"]) def test_deployvm_userdata(self): @@ -134,6 +135,7 @@ class TestDeployVmWithUserData(cloudstackTestCase): vm = vms[0] self.assert_(vm.id == str(deployVmResponse.id), "Vm deployed is different from the test") self.assert_(vm.state == "Running", "VM is not in Running state") + self.cleanup.append(deployVmResponse) @classmethod def tearDownClass(cls):