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