Refactor e2e tests to new ginkgo framework

This commit is contained in:
Tomasz Sęk
2021-01-26 22:00:23 +01:00
parent b6bf47b949
commit 524d0b861f
33 changed files with 523 additions and 984 deletions
+5 -4
View File
@@ -1,5 +1,4 @@
# Set POSIX sh for maximum interoperability
SHELL := /bin/sh
SHELL := /bin/bash
PATH := $(GOPATH)/bin:$(PATH)
OSFLAG :=
@@ -60,7 +59,7 @@ GO_LDFLAGS_STATIC=-ldflags "-w $(CTIMEVAR) -extldflags -static"
GOOSARCHES = linux/amd64
PACKAGES = $(shell go list -f '{{.ImportPath}}/' ./... | grep -v vendor)
PACKAGES_FOR_UNIT_TESTS = $(shell go list -f '{{.ImportPath}}/' ./... | grep -v vendor | grep -v e2e)
PACKAGES_FOR_UNIT_TESTS = $(shell go list -f '{{.ImportPath}}/' ./... | grep -v vendor | grep -v e2e | grep -v controllers)
# Run all the e2e tests by default
E2E_TEST_SELECTOR ?= .*
@@ -93,4 +92,6 @@ ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
endif
ENVTEST_ASSETS_DIR=$(shell pwd)/testbin