summaryrefslogtreecommitdiffstats
path: root/tests/features
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2015-07-20 16:44:32 +0530
committerNiels de Vos <ndevos@redhat.com>2016-06-13 04:23:13 -0700
commit02d3f5e68be6adb42359eb03de4801b27dc2a12e (patch)
treee6c379a919fc6fae45fc79b8548725ab684a598f /tests/features
parentfaaee8c7cee1c3d8fcdcf7fcd3b27feba943f76f (diff)
glusterd: volgen and volume set changes for leases
Add leases xlator in volgen and also add corresponding volume set options Backport of http://review.gluster.org/#/c/11722 Cherry picked from commit bc525b01002d7649be0ac28c5761c8ce92b6a658: > Change-Id: Ic5de50cdb87eaf6a833e739bc7e08fecbeca3de3 > BUG: 1319992 > Signed-off-by: Poornima G <pgurusid@redhat.com> > Reviewed-on: http://review.gluster.org/11722 > NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> > CentOS-regression: Gluster Build System <jenkins@build.gluster.com> > Smoke: Gluster Build System <jenkins@build.gluster.com> > Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Change-Id: Ic5de50cdb87eaf6a833e739bc7e08fecbeca3de3 BUG: 1342350 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/14626 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tests/features')
-rwxr-xr-xtests/features/leases.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/features/leases.t b/tests/features/leases.t
new file mode 100755
index 00000000000..27f0405cfb1
--- /dev/null
+++ b/tests/features/leases.t
@@ -0,0 +1,22 @@
+#!/bin/bash
+. $(dirname $0)/../include.rc
+. $(dirname $0)/../volume.rc
+
+cleanup;
+
+## Start and create a volume
+TEST glusterd;
+TEST pidof glusterd;
+TEST $CLI volume info;
+
+TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2};
+TEST $CLI volume start $V0
+TEST $CLI volume set $V0 leases on
+
+TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0;
+TEST mkdir $M0/test
+TEST touch $M0/test/lease
+
+TEST $CLI volume set $V0 leases off
+
+cleanup;