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