Skip to content

Commit 0ebdf97

Browse files
authored
chore: migrate old test/e2e tests to ginkgo bucket (#1400)
* chore: migrate old test/e2e tests to Ginkgo Signed-off-by: Jonathan West <jgwest@gmail.com> * chore: fix existing E2E test bugs flagged via code rabbit Signed-off-by: Jonathan West <jgwest@gmail.com> * chore: remove duplicate test call Signed-off-by: Jonathan West <jgwest@gmail.com> * chore: add openshift label to e2e tests where needed Signed-off-by: Jonathan West <jgwest@gmail.com> --------- Signed-off-by: Jonathan West <jgwest@gmail.com>
1 parent 6a2e8b1 commit 0ebdf97

21 files changed

Lines changed: 217 additions & 1730 deletions

‎Makefile‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -139,29 +139,6 @@ vet: ## Run go vet against code.
139139
test-all: manifests generate fmt vet ## Run all tests.
140140
go test -timeout 1h ./... -coverprofile cover.out
141141

142-
.PHONY: test-e2e
143-
test-e2e: manifests generate fmt vet ## Run e2e tests.
144-
REDIS_CONFIG_PATH="build/redis" go test -p 1 -timeout 1h ./test/e2e -coverprofile cover.out -ginkgo.v
145-
REDIS_CONFIG_PATH="build/redis" go test -p 1 -timeout 1h ./test/nondefaulte2e -coverprofile cover.out -ginkgo.v
146-
147-
.PHONY: test-metrics
148-
test-metrics:
149-
go test -timeout 30m ./test/e2e -ginkgo.focus="Argo CD metrics controller" -coverprofile cover.out -ginkgo.v
150-
151-
.PHONY: test-route
152-
test-route:
153-
go test -timeout 30m ./test/e2e -ginkgo.focus="Argo CD ConsoleLink controller" -coverprofile cover.out -ginkgo.v
154-
155-
156-
.PHONY: test-gitopsservice
157-
test-gitopsservice:
158-
go test -p 1 -timeout 1h ./test/e2e -ginkgo.focus="GitOpsServiceController" -coverprofile cover.out -ginkgo.v
159-
160-
161-
.PHONY: test-gitopsservice-nondefault
162-
test-gitopsservice-nondefault:
163-
go test -p 1 -timeout 30m ./test/nondefaulte2e -ginkgo.focus="GitOpsServiceNoDefaultInstall" -coverprofile cover.out -ginkgo.v
164-
165142
.PHONY: test
166143
test: manifests generate fmt vet ## Run unit tests.
167144
cd argocd-operator && make test

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ make test
6060
#### e2e tests
6161

6262
```
63-
make test-e2e
63+
make e2e-tests-ginkgo
6464
```
6565

6666
#### Accessing redacted OpenShift CI logs

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ require (
2424
github.com/openshift/api v0.0.0-20260619095050-5346161d1bf2
2525
github.com/openshift/controller-runtime-common v0.0.0-20260428152732-64ee174f5e2e
2626
github.com/operator-framework/api v0.17.5
27-
github.com/pkg/errors v0.9.1
2827
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.74.0
2928
github.com/stretchr/testify v1.12.1
3029
go.uber.org/zap v1.28.0
@@ -147,6 +146,7 @@ require (
147146
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
148147
github.com/pjbgf/sha1cd v0.7.0 // indirect
149148
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
149+
github.com/pkg/errors v0.9.1 // indirect
150150
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
151151
github.com/prometheus/client_golang v1.25.0 // indirect
152152
github.com/prometheus/client_model v0.6.3 // indirect

‎scripts/openshiftci-presubmit-all-tests.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ cd hack/upgrade-rollouts-manager
2626
go mod vendor
2727
cd ../..
2828

29-
# Run e2e test
30-
make test-e2e
29+
30+
# TODO: this file appears to no longer be needed.
3131

‎test/appcrs/build_appcr.yaml‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎test/appcrs/image_appcr.yaml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎test/appcrs/nginx_appcr.yaml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎test/appcrs/nginx_default_ns_appcr.yaml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎test/appcrs/non_default_appcr.yaml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎test/appcrs/scheduler_appcr.yaml‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)