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