summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2015-07-20 16:44:32 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-06-02 21:58:43 -0700
commitbc525b01002d7649be0ac28c5761c8ce92b6a658 (patch)
tree7b4292204fd8eba1bdc838c63780d7c30d26ac1f /tests
parent851a58733fe9f78b03819080e4a6883c69d41032 (diff)
glusterd: volgen and volume set changes for leases
Add leases xlator in volgen and also add corresponding volume set options 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>
Diffstat (limited to 'tests')
-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;