Skip to content

Commit

Permalink
Merge branch 'master' of github.com:codeready-toolchain/toolchain-e2e…
Browse files Browse the repository at this point in the history
… into vmWebhookLimits
  • Loading branch information
rajivnathan committed Oct 4, 2023
2 parents 70dc7f7 + 2d619cf commit 3ab33cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ NOTE: you can override the default namespace names where the end-to-end tests ar

NOTE: you can disable SSL/TLS certificate verification in tests setting the `DISABLE_KUBE_CLIENT_TLS_VERIFY` variable to `true` - eg.: `make test-e2e DISABLE_KUBE_CLIENT_TLS_VERIFY=true`. This flag helps when you test in clusters using Self-Signed Certificates.

NOTE: you can specify a regular expression to selectively run particular test cases by setting the `TESTS_RUN_FILTER_REGEXP` variable. eg.: `make test-e2e TESTS_RUN_FILTER_REGEXP="TestSetupMigration"`. For more information see the https://pkg.go.dev/cmd/go#hdr-Testing_flags[go test -run documentation].

=== Running/Debugging e2e tests from your IDE

In order to run/debug tests from your IDE you'll need to export some required env variables, those will be used by the test framework to interact with the operator namespaces and the other toolchain resources in you cluster.
Expand Down
2 changes: 1 addition & 1 deletion make/clean.mk
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ clean-all-toolchain-resources:
CRD_NAME=`oc get $${CRD} --template '{{.metadata.name}}'`; \
oc delete $${CRD_NAME} --all --all-namespaces; \
done
$(Q)oc get clusterresourcequotas -l "toolchain.dev.openshift.com/provider"=codeready-toolchain --all --all-namespaces
$(Q)oc get clusterresourcequotas -l "toolchain.dev.openshift.com/provider"=codeready-toolchain --all-namespaces

.PHONY: clean-toolchain-crds
## Delete all Toolchain CRDs
Expand Down
4 changes: 3 additions & 1 deletion make/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ endif

E2E_PARALLELISM=1

TESTS_RUN_FILTER_REGEXP ?= ""

.PHONY: test-e2e
## Run the e2e tests
test-e2e: INSTALL_OPERATOR=true
Expand Down Expand Up @@ -130,7 +132,7 @@ execute-tests:
@echo "Status of ToolchainStatus"
-oc get ToolchainStatus -n ${HOST_NS} -o yaml
@echo "Starting test $(shell date)"
MEMBER_NS=${MEMBER_NS} MEMBER_NS_2=${MEMBER_NS_2} HOST_NS=${HOST_NS} REGISTRATION_SERVICE_NS=${REGISTRATION_SERVICE_NS} go test ${TESTS_TO_EXECUTE} -p 1 -parallel ${E2E_PARALLELISM} -v -timeout=90m -failfast || \
MEMBER_NS=${MEMBER_NS} MEMBER_NS_2=${MEMBER_NS_2} HOST_NS=${HOST_NS} REGISTRATION_SERVICE_NS=${REGISTRATION_SERVICE_NS} go test ${TESTS_TO_EXECUTE} -run ${TESTS_RUN_FILTER_REGEXP} -p 1 -parallel ${E2E_PARALLELISM} -v -timeout=90m -failfast || \
($(MAKE) print-logs HOST_NS=${HOST_NS} MEMBER_NS=${MEMBER_NS} MEMBER_NS_2=${MEMBER_NS_2} REGISTRATION_SERVICE_NS=${REGISTRATION_SERVICE_NS} && exit 1)

.PHONY: print-logs
Expand Down
4 changes: 3 additions & 1 deletion quay.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ There is a set of images that is built and pushed to quay repositories while dep
* https://quay.io/repository/<quay-username>/host-operator-bundle
* https://quay.io/repository/<quay-username>/host-operator-index
* https://quay.io/repository/<quay-username>/member-operator
* https://quay.io/repository/<quay-username>/member-operator-console-plugin
* https://quay.io/repository/<quay-username>/member-operator-webhook
* https://quay.io/repository/<quay-username>/member-operator-bundle
* https://quay.io/repository/<quay-username>/member-operator-index
Expand All @@ -26,7 +27,8 @@ All aforementioned repositories has to be public, so make sure that the visibili
* https://quay.io/repository/<quay-username>/host-operator-bundle?tab=settings
* https://quay.io/repository/<quay-username>/host-operator-index?tab=settings
* https://quay.io/repository/<quay-username>/member-operator?tab=settings
* https://quay.io/repository/<quay-username>/member-operator-console-plugin?tab=settings
* https://quay.io/repository/<quay-username>/member-operator-webhook?tab=settings
* https://quay.io/repository/<quay-username>/member-operator-bundle?tab=settings
* https://quay.io/repository/<quay-username>/member-operator-index?tab=settings
* https://quay.io/repository/<quay-username>/registration-service?tab=settings
* https://quay.io/repository/<quay-username>/registration-service?tab=settings

0 comments on commit 3ab33cc

Please sign in to comment.