You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/contributors/e2e_tests.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,14 @@ running even after the test suite has completed.
25
25
1. Run a specific BDD test using the `TEST` argument to make. Note that this argument uses regular expressions.
26
26
27
27
```bash
28
-
DOCKER_REGISTRY_HOST=localhost:5000 GOENV='GOOS=linux' make build e2e TEST='builds and manipulates bundle and index images' USEHTTP="true" CLUSTER=kind
28
+
DOCKER_REGISTRY_HOST=localhost:5000 GOENV='GOOS=linux' make build e2e TEST='builds and manipulates bundle and index images' USEHTTP="true" CLUSTER=kind
29
29
```
30
30
31
-
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
32
-
make file and use `-dryRun` with `-focus` and see if the regex would trigger your specific test(s).
31
+
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
32
+
make file and use `--dry-run` with `--focus` and see if the regex would trigger your specific test(s).
33
33
34
34
```bash
35
-
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/ginkgo --v --randomizeAllSpecs --randomizeSuites --race -dryRun -focus 'builds and manipulates bundle and index images' -tags=json1,kind ./test/e2e
35
+
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/v2/ginkgo --v --randomize-all --randomize-suites --race --dry-run --focus 'builds and manipulates bundle and index images' -tags=json1,kind ./test/e2e
36
36
```
37
37
38
38
## Kind with SSL
@@ -55,16 +55,16 @@ make file and use `-dryRun` with `-focus` and see if the regex would trigger you
55
55
DOCKER_REGISTRY_HOST=localhost:443 GOENV='GOOS=linux' make build e2e TEST='builds and manipulates bundle and index images' CLUSTER=kind
56
56
```
57
57
58
-
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
59
-
make file and use `-dryRun` with `-focus` and see if the regex would trigger your specific test(s).
58
+
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
59
+
make file and use `--dry-run` with `--focus` and see if the regex would trigger your specific test(s).
60
60
61
61
```bash
62
-
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/ginkgo --v --randomizeAllSpecs --randomizeSuites --race -dryRun -focus 'builds and manipulates bundle and index images' -tags=json1,kind ./test/e2e
62
+
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/v2/ginkgo --v --randomize-all --randomize-suites --race --dry-run --focus 'builds and manipulates bundle and index images' -tags=json1,kind ./test/e2e
63
63
```
64
64
65
65
## Minikube (or other type) using kubeconfig without SSL
66
66
67
-
1. Install `minikube` (see https://minikube.sigs.k8s.io/docs/start/)
@@ -90,18 +90,18 @@ make file and use `-dryRun` with `-focus` and see if the regex would trigger you
90
90
KUBECONFIG="$HOME/.kube/config" DOCKER_REGISTRY_HOST=localhost:5000 make build e2e TEST='builds and manipulates bundle and index images' SKIPTLS="true"
91
91
```
92
92
93
-
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
94
-
make file and use `-dryRun` with `-focus` and see if the regex would trigger your specific test(s).
93
+
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
94
+
make file and use `--dry-run` with `--focus` and see if the regex would trigger your specific test(s).
95
95
96
96
```bash
97
-
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/ginkgo --v --randomizeAllSpecs --randomizeSuites --race -dryRun -focus 'builds and manipulates bundle and index images' -tags=json1 ./test/e2e
97
+
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/v2/ginkgo --v --randomize-all --randomize-suites --race --dry-run --focus 'builds and manipulates bundle and index images' -tags=json1 ./test/e2e
98
98
```
99
99
100
100
TIP: use a non-dynamic `kind` server by using `kind get kubeconfig --name "kind" > /tmp/kindconfig` and set `KUBECONFIG="/tmp/kindconfig"`
101
101
102
102
## Minikube (or other type) using kubeconfig with SSL
103
103
104
-
1. Install `minikube` (see https://minikube.sigs.k8s.io/docs/start/)
@@ -127,11 +127,11 @@ TIP: use a non-dynamic `kind` server by using `kind get kubeconfig --name "kind"
127
127
KUBECONFIG="$HOME/.kube/config" DOCKER_REGISTRY_HOST=localhost:443 make build e2e TEST='builds and manipulates bundle and index images'
128
128
```
129
129
130
-
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
131
-
make file and use `-dryRun` with `-focus` and see if the regex would trigger your specific test(s).
130
+
1. If you want a quick way to ensure that your TEST regex argument will work, you can bypass the
131
+
make file and use `--dry-run` with `--focus` and see if the regex would trigger your specific test(s).
132
132
133
133
```bash
134
-
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/ginkgo --v --randomizeAllSpecs --randomizeSuites --race -dryRun -focus 'builds and manipulates bundle and index images' -tags=json1 ./test/e2e
134
+
GOFLAGS="-mod=vendor" go run github.com/onsi/ginkgo/v2/ginkgo --v --randomize-all --randomize-suites --race --dry-run --focus 'builds and manipulates bundle and index images' -tags=json1 ./test/e2e
135
135
```
136
136
137
137
TIP: use a non-dynamic `kind` server by using `kind get kubeconfig --name "kind" > /tmp/kindconfig` and set `KUBECONFIG="/tmp/kindconfig"`
@@ -140,4 +140,4 @@ TIP: use a non-dynamic `kind` server by using `kind get kubeconfig --name "kind"
140
140
141
141
Currently the test case `Launch bundle` in test/e2e/bundle_image_test.go assumes that the `opm` executable used in the test is compiled for linux.
142
142
If you run this test on a darwin environment, the kube job will not succeed unless you manually cross compile for linux and include
0 commit comments