Skip to content

Commit 9b6cdd9

Browse files
authored
Merge pull request #1390 from Nordix/lentzi90/prepare-additional-e2e-tests
🌱 Tag current e2e tests as PR-Blocking
2 parents 5a17c37 + 11198e0 commit 9b6cdd9

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,6 @@ sshuttle.pid
173173

174174
# Book
175175
docs/book/book/
176+
177+
# venv
178+
.venv

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,18 @@ LDFLAGS := $(shell source ./hack/version.sh; version::ldflags)
120120
## --------------------------------------
121121

122122
# The number of ginkgo tests to run concurrently
123-
E2E_GINKGO_PARALLEL=2
123+
E2E_GINKGO_PARALLEL ?= 2
124124

125125
E2E_ARGS ?=
126126

127+
E2E_GINKGO_FOCUS ?=
128+
E2E_GINKGO_SKIP ?=
129+
130+
# to set multiple ginkgo skip flags, if any
131+
ifneq ($(strip $(E2E_GINKGO_SKIP)),)
132+
_SKIP_ARGS := $(foreach arg,$(strip $(E2E_GINKGO_SKIP)),-skip="$(arg)")
133+
endif
134+
127135
$(ARTIFACTS):
128136
mkdir -p $@
129137

@@ -163,7 +171,10 @@ e2e-prerequisites: $(GINKGO) e2e-templates e2e-image test-e2e-image-prerequisite
163171
E2E_GINKGO_ARGS ?=
164172
.PHONY: test-e2e ## Run e2e tests using clusterctl
165173
test-e2e: e2e-prerequisites ## Run e2e tests
166-
time $(GINKGO) --failFast -trace -progress -v -tags=e2e --nodes=$(E2E_GINKGO_PARALLEL) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- -config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" --data-folder="$(E2E_DATA_DIR)" $(E2E_ARGS)
174+
time $(GINKGO) --failFast -trace -progress -v -tags=e2e --nodes=$(E2E_GINKGO_PARALLEL) \
175+
--focus="$(E2E_GINKGO_FOCUS)" $(_SKIP_ARGS) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- \
176+
-config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" \
177+
--data-folder="$(E2E_DATA_DIR)" $(E2E_ARGS)
167178

168179
.PHONY: e2e-image
169180
e2e-image: CONTROLLER_IMG_TAG = "gcr.io/k8s-staging-capi-openstack/capi-openstack-controller:e2e"

test/e2e/suites/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import (
6262

6363
const specName = "e2e"
6464

65-
var _ = Describe("e2e tests", func() {
65+
var _ = Describe("e2e tests [PR-Blocking]", func() {
6666
var (
6767
namespace *corev1.Namespace
6868
ctx context.Context

0 commit comments

Comments
 (0)