50dc83
From 79c74009892804419dce264399f3fde357d5b1c3 Mon Sep 17 00:00:00 2001
50dc83
From: Susant Palai <spalai@redhat.com>
50dc83
Date: Tue, 2 Apr 2019 11:07:03 +0530
50dc83
Subject: [PATCH 40/52] build: Remove unsupported test cases failing
50dc83
 consistently
50dc83
50dc83
The following two test cases failing in downstream regression runs.
50dc83
Hence removing them as they are not supported downstream.
50dc83
50dc83
tests/basic/cloudsync-sanity.t
50dc83
tests/bugs/distribute/bug-882278.t
50dc83
50dc83
Label: DOWNSTREAM ONLY
50dc83
50dc83
Change-Id: Ie4b506639a017ec9910e44df1b721d9bfadf07b3
50dc83
Signed-off-by: Susant Palai <spalai@redhat.com>
50dc83
Reviewed-on: https://code.engineering.redhat.com/gerrit/166662
50dc83
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
50dc83
Tested-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
50dc83
---
50dc83
 tests/basic/cloudsync-sanity.t     | 22 ------------
50dc83
 tests/bugs/distribute/bug-882278.t | 73 --------------------------------------
50dc83
 2 files changed, 95 deletions(-)
50dc83
 delete mode 100644 tests/basic/cloudsync-sanity.t
50dc83
 delete mode 100755 tests/bugs/distribute/bug-882278.t
50dc83
50dc83
diff --git a/tests/basic/cloudsync-sanity.t b/tests/basic/cloudsync-sanity.t
50dc83
deleted file mode 100644
50dc83
index 3cf719d..0000000
50dc83
--- a/tests/basic/cloudsync-sanity.t
50dc83
+++ /dev/null
50dc83
@@ -1,22 +0,0 @@
50dc83
-#!/bin/bash
50dc83
-
50dc83
-. $(dirname $0)/../include.rc
50dc83
-. $(dirname $0)/../volume.rc
50dc83
-
50dc83
-cleanup;
50dc83
-
50dc83
-TEST glusterd
50dc83
-TEST pidof glusterd
50dc83
-
50dc83
-TEST $CLI volume create $V0 replica 3  $H0:$B0/${V0}{1,2,3,4,5,6,7,8,9};
50dc83
-TEST $CLI volume set $V0 features.cloudsync enable;
50dc83
-TEST $CLI volume start $V0;
50dc83
-
50dc83
-## Mount FUSE
50dc83
-TEST $GFS -s $H0 --volfile-id $V0 $M1;
50dc83
-
50dc83
-# This test covers lookup, mkdir, mknod, symlink, link, rename,
50dc83
-# create operations
50dc83
-TEST $(dirname $0)/rpc-coverage.sh $M1
50dc83
-
50dc83
-cleanup;
50dc83
diff --git a/tests/bugs/distribute/bug-882278.t b/tests/bugs/distribute/bug-882278.t
50dc83
deleted file mode 100755
50dc83
index 8cb5147..0000000
50dc83
--- a/tests/bugs/distribute/bug-882278.t
50dc83
+++ /dev/null
50dc83
@@ -1,73 +0,0 @@
50dc83
-#!/bin/bash
50dc83
-
50dc83
-. $(dirname $0)/../../include.rc
50dc83
-. $(dirname $0)/../../volume.rc
50dc83
-cleanup
50dc83
-
50dc83
-# Is there a good reason to require --fqdn elsewhere?  It's worse than useless
50dc83
-# here.
50dc83
-H0=$(hostname -s)
50dc83
-
50dc83
-function recreate {
50dc83
-	# The rm is necessary so we don't get fooled by leftovers from old runs.
50dc83
-	rm -rf $1 && mkdir -p $1
50dc83
-}
50dc83
-
50dc83
-function count_lines {
50dc83
-	grep "$1" $2/* | wc -l
50dc83
-}
50dc83
-
50dc83
-TEST glusterd
50dc83
-TEST pidof glusterd
50dc83
-TEST $CLI volume info;
50dc83
-
50dc83
-## Start and create a volume
50dc83
-TEST recreate ${B0}/${V0}-0
50dc83
-TEST recreate ${B0}/${V0}-1
50dc83
-TEST $CLI volume create $V0 $H0:$B0/${V0}-{0,1}
50dc83
-TEST $CLI volume set $V0 cluster.nufa on
50dc83
-
50dc83
-function volinfo_field()
50dc83
-{
50dc83
-    local vol=$1;
50dc83
-    local field=$2;
50dc83
-
50dc83
-    $CLI volume info $vol | grep "^$field: " | sed 's/.*: //';
50dc83
-}
50dc83
-
50dc83
-
50dc83
-## Verify volume is created
50dc83
-EXPECT "$V0" volinfo_field $V0 'Volume Name';
50dc83
-EXPECT 'Created' volinfo_field $V0 'Status';
50dc83
-
50dc83
-## Start volume and verify
50dc83
-TEST $CLI volume start $V0;
50dc83
-EXPECT 'Started' volinfo_field $V0 'Status';
50dc83
-
50dc83
-## Mount native
50dc83
-special_option="--xlator-option ${V0}-dht.local-volume-name=${V0}-client-1"
50dc83
-TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $special_option $M0
50dc83
-
50dc83
-## Create a bunch of test files.
50dc83
-for i in $(seq 0 99); do
50dc83
-	echo hello > $(printf $M0/file%02d $i)
50dc83
-done
50dc83
-
50dc83
-## Make sure the files went to the right place.  There might be link files in
50dc83
-## the other brick, but they won't have any contents.
50dc83
-EXPECT "0" count_lines hello ${B0}/${V0}-0
50dc83
-EXPECT "100" count_lines hello ${B0}/${V0}-1
50dc83
-
50dc83
-if [ "$EXIT_EARLY" = "1" ]; then
50dc83
-	exit 0;
50dc83
-fi
50dc83
-
50dc83
-## Finish up
50dc83
-EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
50dc83
-TEST $CLI volume stop $V0;
50dc83
-EXPECT 'Stopped' volinfo_field $V0 'Status';
50dc83
-
50dc83
-TEST $CLI volume delete $V0;
50dc83
-TEST ! $CLI volume info $V0;
50dc83
-
50dc83
-cleanup;
50dc83
-- 
50dc83
1.8.3.1
50dc83