CLOUDSTACK-9529: Cleanup resources after marvin test completes - Cleans up volumes, snapshots and VM after running test_snapshots
Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/409e504f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/409e504f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/409e504f Branch: refs/heads/4.8 Commit: 409e504f6f96c19dd934f69049aec82e40c755cd Parents: 93ac134 Author: Rohit Yadav <[email protected]> Authored: Thu Oct 6 15:33:09 2016 +0530 Committer: Rohit Yadav <[email protected]> Committed: Thu Oct 6 16:41:51 2016 +0530 ---------------------------------------------------------------------- test/integration/smoke/test_snapshots.py | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/409e504f/test/integration/smoke/test_snapshots.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_snapshots.py b/test/integration/smoke/test_snapshots.py index 29a2d72..638b66c 100644 --- a/test/integration/smoke/test_snapshots.py +++ b/test/integration/smoke/test_snapshots.py @@ -196,6 +196,7 @@ class TestSnapshotRootDisk(cloudstackTestCase): account=self.account.name, domainid=self.account.domainid ) + self.cleanup.append(snapshot) self.debug("Snapshot created: ID - %s" % snapshot.id) snapshots = list_snapshots(
