Remove old kubernetes storage test flow
This commit is contained in:
parent
309b33d05a
commit
e0c58d5449
3 changed files with 0 additions and 60 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -68,9 +68,6 @@ jobs:
|
||||||
DEX_KEYSTONE_ADMIN_USER: demo
|
DEX_KEYSTONE_ADMIN_USER: demo
|
||||||
DEX_KEYSTONE_ADMIN_PASS: DEMO_PASS
|
DEX_KEYSTONE_ADMIN_PASS: DEMO_PASS
|
||||||
|
|
||||||
- name: Run Kubernetes tests
|
|
||||||
run: ./scripts/test-k8s.sh
|
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: make lint
|
run: make lint
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,6 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make testall
|
- make testall
|
||||||
- ./scripts/test-k8s.sh
|
|
||||||
- make verify-proto # Ensure proto generation doesn't depend on external packages.
|
- make verify-proto # Ensure proto generation doesn't depend on external packages.
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
TEMPDIR=$( mktemp -d )
|
|
||||||
|
|
||||||
cat << EOF > $TEMPDIR/kubeconfig
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Config
|
|
||||||
clusters:
|
|
||||||
- name: local
|
|
||||||
cluster:
|
|
||||||
server: http://localhost:8080
|
|
||||||
users:
|
|
||||||
- name: local
|
|
||||||
user:
|
|
||||||
contexts:
|
|
||||||
- context:
|
|
||||||
cluster: local
|
|
||||||
user: local
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cleanup () {
|
|
||||||
docker rm -f $( cat $TEMPDIR/etcd )
|
|
||||||
docker rm -f $( cat $TEMPDIR/kube-apiserver )
|
|
||||||
rm -rf $TEMPDIR
|
|
||||||
}
|
|
||||||
|
|
||||||
trap "{ CODE=$?; cleanup ; exit $CODE; }" EXIT
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--cidfile=$TEMPDIR/etcd \
|
|
||||||
-d \
|
|
||||||
--net=host \
|
|
||||||
gcr.io/google_containers/etcd:3.1.10 \
|
|
||||||
etcd
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--cidfile=$TEMPDIR/kube-apiserver \
|
|
||||||
-d \
|
|
||||||
-v $TEMPDIR:/var/run/kube-test:ro \
|
|
||||||
--net=host \
|
|
||||||
gcr.io/google_containers/kube-apiserver-amd64:v1.7.4 \
|
|
||||||
kube-apiserver \
|
|
||||||
--etcd-servers=http://localhost:2379 \
|
|
||||||
--service-cluster-ip-range=10.0.0.1/16 \
|
|
||||||
--insecure-bind-address=0.0.0.0 \
|
|
||||||
--insecure-port=8080
|
|
||||||
|
|
||||||
until $(curl --output /dev/null --silent --head --fail http://localhost:8080/healthz); do
|
|
||||||
printf '.'
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
echo "API server ready"
|
|
||||||
|
|
||||||
export DEX_KUBECONFIG=$TEMPDIR/kubeconfig
|
|
||||||
go test -v -i ./storage/kubernetes
|
|
||||||
go test -v ./storage/kubernetes
|
|
Reference in a new issue