Adding make recipe for e2e (#61)

This commit is contained in:
Dario Tranchitella
2020-08-21 14:58:11 +02:00
committed by GitHub
parent 9969864141
commit 52e9419f68
+11
View File
@@ -130,3 +130,14 @@ goimports:
.PHONY: golint
golint:
golangci-lint run
# Running e2e tests in a KinD instance
.PHONY: e2e
e2e:
kind create cluster --name capsule
make docker-build
kind load docker-image --nodes capsule-control-plane --name capsule quay.io/clastix/capsule:latest
make deploy
while [ -z $$(kubectl -n capsule-system get secret capsule-tls -o jsonpath='{.data.tls\.crt}') ]; do echo "waiting Capsule to be up and running..." && sleep 5; done
ginkgo -v -tags e2e ./e2e
kind delete cluster --name capsule