From 89aeae327bff8f58ddf3bbe14f3c7759d87c803e Mon Sep 17 00:00:00 2001 From: srivickynesh Date: Fri, 13 Jul 2018 16:51:26 +0530 Subject: snapshot:: configuring snapshot max-hard-limit and max-soft-limit case The purpose of this test is to validate snapshot hard and soft max-limt options. Change-Id: I000b840421620094287ba393367cad7c8df8e23a Signed-off-by: srivickynesh --- tests/functional/snapshot/test_validate_snapshot_max_limit.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/functional') diff --git a/tests/functional/snapshot/test_validate_snapshot_max_limit.py b/tests/functional/snapshot/test_validate_snapshot_max_limit.py index 2e0ad9f36..75582e4ed 100644 --- a/tests/functional/snapshot/test_validate_snapshot_max_limit.py +++ b/tests/functional/snapshot/test_validate_snapshot_max_limit.py @@ -51,8 +51,9 @@ from glustolibs.io.utils import validate_io_procs, get_mounts_stat from glustolibs.gluster.snap_ops import get_snap_list, snap_delete_all -@runs_on([['distributed'], - ['glusterfs']]) +@runs_on([['replicated', 'distributed-replicated', 'dispersed', + 'distributed-dispersed', 'distributed'], + ['glusterfs', 'nfs', 'cifs']]) class SnapCreateMax(GlusterBaseClass): """ Test for snapshot create max limits @@ -115,7 +116,7 @@ class SnapCreateMax(GlusterBaseClass): tearDown """ ret, _, _ = snap_delete_all(self.mnode) - if not ret: + if ret != 0: raise ExecutionError("Failed to delete all snapshots.") GlusterBaseClass.tearDown.im_func(self) -- cgit