Skip to content

Commit

Permalink
run oadp-operator e2e test from the velero repo
Browse files Browse the repository at this point in the history
execute openshift/oadp-operator e2e tests directly
against the velero repo locally or via prow ci

Signed-off-by: Wesley Hayutin <weshayutin@gmail.com>
  • Loading branch information
weshayutin committed Oct 15, 2024
1 parent 4e93a36 commit 636f77b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile.prow
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ GOPATH := $(shell go env GOPATH)
GOBIN := $(GOPATH)/bin
GOSRC := $(GOPATH)/src

# Prow settings for e2e tests
E2E_TEST_DIR := /tmp/oadp-operator
E2E_TEST_BRANCH := master
VELERO_IMAGE := quay.io/konveyor/velero:latest

# upstream ci target: verify-modules verify all test
# we need to modify verify, test, all to avoid usage of docker CLI
Expand Down Expand Up @@ -88,3 +92,16 @@ $(GOBIN)/golangci-lint:
$(GOBIN)/setup-envtest:
@echo "Installing envtest tools"
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

.PHONY: clone-oadp-operator
clone-oadp-operator:
@echo "Cloning oadp-operator"
rm -rf $(E2E_TEST_DIR)
git clone --depth 1 --single-branch --branch $(E2E_TEST_BRANCH) https://github.com/openshift/oadp-operator.git $(E2E_TEST_DIR)

# to run just one test, use `make test-e2e GINKGO_ARGS="--ginkgo.focus='MySQL application CSI'"`
.PHONY: test-e2e
test-e2e: clone-oadp-operator
@echo "Running oadp-operator e2e tests"
pushd $(E2E_TEST_DIR) && export VELERO_IMAGE=$(VELERO_IMAGE) && make test-e2e && popd

0 comments on commit 636f77b

Please sign in to comment.