1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
# Overview
The container includes the e2e binary for all 3 platforms plus the required resources to run it.
The container connects through ssh to the target host and copy the right binary for the platform, run e2e tests and pick the results and logs back.
## Envs
**PLATFORM**:*define target platform (windows, macos, linux).*
**ARCH**:*define target arch (amd64, arm64). Default amd64
**TARGET_HOST**:*dns or ip for the target host.*
**TARGET_HOST_USERNAME**:*username for target host.*
**TARGET_HOST_KEY_PATH**:*private key for user. (Mandatory if not TARGET_HOST_PASSWORD).*
**TARGET_HOST_PASSWORD**:*password for user. (Mandatory if not TARGET_HOST_KEY_PATH).*
**PULL_SECRET_FILE_PATH**: *pull secret file path (local to container).*
**BUNDLE_VERSION**:*(Mandatory if not BUNDLE_LOCATION). Testing agaisnt crc released version bundle version for crc released version.*
**BUNDLE_LOCATION**:*(Mandatory if not BUNDLE_VERSION). When testing crc with custom bundle set the bundle location on target server.*
**RESULTS_PATH**:*(Optional). Path inside container to pick results and logs from e2e execution.*
**RESULTS_FILE**:*(Optional). File name for results xunit results. Default value: e2e.*
**CLEANUP_HOME**:*(Optional). Cleanup crc home folder or keep as it is to run test.*
**E2E_TAG_EXPRESSION**:*(Optional). Define e2e tag expression to select tests. If empty all tests available for the platform will be executed.*
## Samples
```bash
# Run e2e on macos platform with ssh key and custom bundle
podman run --rm -it --name crc-e2e \
-e PLATFORM=macos \
-e TARGET_HOST=$IP \
-e TARGET_HOST_USERNAME=$USER \
-e TARGET_HOST_KEY_PATH=/opt/crc/id_rsa \
-e PULL_SECRET_FILE_PATH=/opt/crc/pull-secret \
-e BUNDLE_LOCATION=/bundles/crc_hyperv_4.8.0-rc.3.crcbundle \
-v $PWD/pull-secret:/opt/crc/pull-secret:Z \
-v $PWD/id_rsa:/opt/crc/id_rsa:Z \
-v $PWD/output:/output:Z \
quay.io/crcont/crc-e2e:v1.29.0-465452f4
# Run e2e on windows platform with ssh password and crc released version
podman run --rm -it --name crc-e2e \
-e PLATFORM=windows \
-e TARGET_HOST=$IP \
-e TARGET_HOST_USERNAME=$USER \
-e TARGET_HOST_PASSWORD=$PASSWORD \
-e PULL_SECRET_FILE_PATH=/opt/crc/pull-secret \
-e BUNDLE_VERSION=4.7.18 \
-v $PWD/pull-secret:/opt/crc/pull-secret:Z \
-v $PWD/output:/output:Z \
quay.io/crcont/crc-e2e:v1.29.0-465452f4
```
|