glusterfs/tests/bugs/bug-1045333.t
Pranith Kumar K d3bd3319af tests: Avoid sleep
Change-Id: I7169be3532232754b9461c4e1b27bf6bc857f7a6
BUG: 1092850
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/8083
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
2014-06-16 11:11:28 -07:00

45 lines
1023 B
Bash
Executable File

#!/bin/bash
. $(dirname $0)/../include.rc
. $(dirname $0)/../snapshot.rc
cleanup;
TEST verify_lvm_version;
TEST glusterd;
TEST pidof glusterd;
TEST setup_lvm 1
TEST $CLI volume create $V0 $H0:$L1
TEST $CLI volume start $V0
S1="${V0}-snap1" #Create snapshot with name contains hyphen(-)
S2="-${V0}-snap2" #Create snapshot with name starts with hyphen(-)
#Create snapshot with a long name
S3="${V0}_single_gluster_volume_is_accessible_by_multiple_clients_offline_snapshot_is_a_long_name"
TEST $CLI snapshot create $S1 $V0
TEST snapshot_exists 0 $S1
TEST $CLI snapshot create $S2 $V0
TEST snapshot_exists 0 $S2
TEST $CLI snapshot create $S3 $V0
TEST snapshot_exists 0 $S3
TEST glusterfs -s $H0 --volfile-id=/snaps/$S1/$V0 $M0
TEST glusterfs -s $H0 --volfile-id=/snaps/$S2/$V0 $M1
TEST glusterfs -s $H0 --volfile-id=/snaps/$S3/$V0 $M2
#Clean up
#TEST $CLI snapshot delete $S1
#TEST $CLI snapshot delete $S2
#TEST $CLI snapshot delete $S3
TEST $CLI volume stop $V0 force
#TEST $CLI volume delete $V0
cleanup;