From d975305ab1c764582bf63bc6f526a2739e2b34eb Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 14 Aug 2018 11:49:50 +0530 Subject: tests: Add thin-arbiter.rc for writing tests for thin-arbiter fixes bz#1615789 Change-Id: I1f42e78fec5ddaf2a425dc4b82c9a20472aa146d Signed-off-by: Pranith Kumar K --- tests/thin-arbiter.rc | 428 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 428 insertions(+) create mode 100644 tests/thin-arbiter.rc (limited to 'tests/thin-arbiter.rc') diff --git a/tests/thin-arbiter.rc b/tests/thin-arbiter.rc new file mode 100644 index 00000000000..8bb888a7471 --- /dev/null +++ b/tests/thin-arbiter.rc @@ -0,0 +1,428 @@ +declare -A PORTMAP +PORTCURR=49152 +function ta_create_ta_and_volfile() +{ + local b=$B0/$1 + mkdir -p $b/.glusterfs/indices +cat > $B0/ta.vol < $B0/${1}.vol < $B0/mount.vol < $B0/${1}.pid + kill -9 $p +} + +function ta_up_status() +{ + local v=$1 + local m=$2 + local replica_id=$3 + grep -E "^up = " $m/.meta/graphs/active/${v}-replicate-${replica_id}/private | cut -f2 -d'=' +} -- cgit