1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Add refactored e2e tests

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2022-09-29 22:07:19 +01:00
committed by Sunny
parent 1730f3c46b
commit f6b0c6e7ef
23 changed files with 3069 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
GO_TEST_ARGS ?=
PROVIDER_ARG ?=
TEST_TIMEOUT ?= 60m
FLUX_BINARY ?= ../../bin/flux
test: sops-check
mkdir -p build
cp $(FLUX_BINARY) build/flux
# These two versions of podinfo are pushed to the cloud registry and used in tests for ImageUpdateAutomation
docker pull ghcr.io/stefanprodan/podinfo:6.0.0
docker pull ghcr.io/stefanprodan/podinfo:6.0.1
go test -timeout $(TEST_TIMEOUT) -v ./ $(GO_TEST_ARGS) $(PROVIDER_ARG)
test-azure:
$(MAKE) test PROVIDER_ARG="-provider azure" GO_TEST_ARGS="--tags azure $(GO_TEST_ARGS)"
test-gcp:
$(MAKE) test PROVIDER_ARG="-provider gcp"
sops-check:
ifeq ($(shell which sops),)
$(error "no sops in PATH, consider installing")
endif