From 52e9419f68344532d07a5ab2478d74cd131959f1 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Fri, 21 Aug 2020 14:58:11 +0200 Subject: [PATCH] Adding make recipe for e2e (#61) --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index b67e8a0b..bb58a85f 100644 --- a/Makefile +++ b/Makefile @@ -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