Skip to content

Commit 6f3568c

Browse files
committed
docs: add couple of words about testing
1 parent 91a173d commit 6f3568c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

readme.adoc

+26
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,29 @@ Common steps regardless of using developer images you build yourself or official
3939
- run `./deploy/init-hacbs-user-workspace.sh` out of your clone of this repo to initialize you KCP test namespace with the artifact cache and `Tasks` needed to run our test `Pipelines` and `PipelineRuns`
4040
- then go to `./hack/examples` and pick which `Pipeline` and `PipelineRun` test to run.
4141

42+
=== Testing
43+
44+
==== Test JVM Build Service on an OpenShift cluster
45+
46+
The OpenShift E2E test is programmed to run a test with following steps:
47+
48+
. Create a new project in targeted OpenShift cluster and run the build pipeline which contains a link:./deploy/base/maven-v0.2.yaml[Maven] task from this repo to build the link:./hack/examples/run-e2e-shaded-app.yaml[simple java test project]
49+
. Make sure the pipeline succeeds and all related artifactbuilds and dependecybuilds (triggered after pipeline completion) finish successfully
50+
. Check that all "contaminated" builds are resolved
51+
. Verify that triggering a second build accesses dependencies that are cached from a previous build
52+
. Verify that the correct JDK version is identified in dependencybuilds
53+
. Check that maven/gradle logs/sources are found in rebuilt artifacts
54+
55+
Before running the test, you need to export couple of env vars that reference container images for the operator, cache and reqprocessor. Some existing images can be found at link:https://quay.io/organization/redhat-appstudio[redhat-appstudio quay.io org] (search for keyword "jvm")
56+
57+
Also you need to specify your quay.io username that will be used for pushing rebuilt dependencies in a format: `quay.io/$QUAY_USERNAME/test-images`. Make sure the repo "test-images" exists in your account and is publicly available.
58+
59+
[source,bash]
60+
----
61+
export QUAY_USERNAME=<your-quay-io-account-username>
62+
export JVM_BUILD_SERVICE_IMAGE=
63+
export JVM_BUILD_SERVICE_CACHE_IMAGE=
64+
export JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE=
65+
./deploy/openshift-ci.sh
66+
make openshift-e2e
67+
----

0 commit comments

Comments
 (0)