From f867f686fd029b28c31d2883d14ef47cd5437339 Mon Sep 17 00:00:00 2001 From: Jeff Mesnil Date: Wed, 15 Mar 2023 14:32:19 +0100 Subject: [PATCH] Load wildfly application images in Minikube to make the tests run faster as they will not have to pull the images Increased the test timeout from 10 minutes (default) to 20 minutes. Signed-off-by: Jeff Mesnil --- .github/workflows/go.yml | 5 +++++ Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0ae6f7f4..fd495d9f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,6 +29,11 @@ jobs: minikube version: v1.22.0 kubernetes version: v1.20.0 driver: docker + - name: Load WildFly images used for testing + run: |- + minikube image load --pull=true quay.io/wildfly-quickstarts/wildfly-operator-quickstart:18.0 + minikube image load --pull=true quay.io/wildfly-quickstarts/wildfly-operator-quickstart:bootable-21.0 + minikube image load --pull=true quay.io/wildfly-quickstarts/clusterbench:latest - name: Containerized End-to-End Tests run: eval $(minikube -p minikube docker-env) && make test-e2e-minikube - name: Docker Login to Quay.io (main only) diff --git a/Makefile b/Makefile index 62d3fa21..b6004dc6 100644 --- a/Makefile +++ b/Makefile @@ -142,7 +142,7 @@ run-test-e2e: $(KUSTOMIZE) build config/rbac | kubectl apply -f - mkdir -p dry-run $(KUSTOMIZE) build config/tests > dry-run/test-resources.yaml - LOCAL_MANAGER=0 go test -v ./test/e2e/... -coverprofile cover.out + LOCAL_MANAGER=0 go test -timeout 20m -v ./test/e2e/... -coverprofile cover.out $(KUSTOMIZE) build config/rbac | kubectl delete --ignore-not-found=true -f - .PHONY: clean