mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
432ff08758
Ceph-CSI does not suport (inline) Ephemeral-volumes. Testing this will continue to fail. The driver configuration can not be used to disable testing of this feature, so it is done by skipping the tests by pattern matching. Updates: #2017 Signed-off-by: Niels de Vos <ndevos@redhat.com>
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Download the Kubernetes test suite, extract it and run the external-storage suite.
|
|
#
|
|
# Requirements:
|
|
# - KUBE_VERSION needs to be set in the environment (format: "v1.18.5")
|
|
|
|
# exit on failure
|
|
set -e
|
|
|
|
[ -n "${KUBE_VERSION}" ] || { echo "KUBE_VERSION not set" ; exit 1 ; }
|
|
|
|
# download and extract the tests
|
|
curl -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/kubernetes-test-linux-amd64.tar.gz"
|
|
tar xzf kubernetes-test-linux-amd64.tar.gz kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
|
|
|
|
# e2e depends on a self-contained KUBECONFIG for some reason
|
|
KUBECONFIG_TMP="$(mktemp -t kubeconfig.XXXXXXXX)"
|
|
kubectl config view --raw --flatten > "${KUBECONFIG_TMP}"
|
|
export KUBECONFIG="${KUBECONFIG_TMP}"
|
|
|
|
for driver in /opt/build/go/src/github.com/ceph/ceph-csi/scripts/k8s-storage/driver-*.yaml
|
|
do
|
|
kubernetes/test/bin/ginkgo \
|
|
-focus="External.Storage.*.csi.ceph.com" \
|
|
-skip='\[Feature:|\[Disruptive\]|Generic Ephemeral-volume' \
|
|
kubernetes/test/bin/e2e.test \
|
|
-- \
|
|
-storage.testdriver="${driver}"
|
|
done
|