summaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorsrivickynesh <sselvan@redhat.com>2018-07-13 16:51:26 +0530
committerVijay Avuthu <vavuthu@redhat.com>2018-08-06 09:19:46 +0000
commit89aeae327bff8f58ddf3bbe14f3c7759d87c803e (patch)
tree3c8fd0d46d2ddd9b9fcc85edc6fe47aec89134bd /tests/functional
parentf5d1190f37665f09da9ed092ea912f051b087228 (diff)
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 <sselvan@redhat.com>
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/snapshot/test_validate_snapshot_max_limit.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional/snapshot/test_validate_snapshot_max_limit.py b/tests/functional/snapshot/test_validate_snapshot_max_limit.py
index 2e0ad9f..75582e4 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)