Skip to content

Latest commit

 

History

History
124 lines (106 loc) · 4.25 KB

README.md

File metadata and controls

124 lines (106 loc) · 4.25 KB

podman-backend-e2e

wrapper on top of podman upstream e2e tests to run podman functional testing on top of a podman remote deployment.

Tests will run against one backend which offers podman functionality (through VM): podman , crc-podman, crc-microshift or crc-openshift

overview

The container is based on deliverest for handling the remote execution.

An uses set of functional tests defined by podman upstream with some code adapatations.

Usage

windows amd64 with podman backend (install and start)

PODMAN_VERSION=5.0.0
podman run --rm -it --name podman-backend-e2e \
    -e TARGET_HOST=$(cat host) \
    -e TARGET_HOST_USERNAME=$(cat username) \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=podman-backend-e2e \
    -e TARGET_RESULTS=podman-backend-e2e-results.xml \
    -e OUTPUT_FOLDER=/data \
    -v $PWD:/data:z \
    quay.io/rhqp/podman-backend-e2e:v${PODMAN_VERSION}-windows-amd64 \
        podman-backend-e2e/run.ps1 -podmanVersion "${PODMAN_VERSION}" \
            -targetFolder podman-backend-e2e \
            -backend podman \
            -podmanInstall 'true' \
            -podmanStart 'true' \
            -junitResultsFilename podman-backend-e2e-results.xml

darwin arm64 with crc podman backend (install and start)

PODMAN_VERSION=5.0.0
podman run -d --name podman-backend-e2e-darwin-m1 \
    -e TARGET_HOST=$(cat host) \
    -e TARGET_HOST_USERNAME=$(cat username) \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=podman-backend-e2e \
    -e TARGET_RESULTS=podman-backend-e2e-results.xml \
    -e OUTPUT_FOLDER=/data \
    -e DEBUG=true \
    -v $PWD:/data:z \
    quay.io/rhqp/podman-backend-e2e:v${PODMAN_VERSION}-darwin-arm64 \
        PODMAN_VERSION="${PODMAN_VERSION}" \
        TARGET_FOLDER=podman-backend-e2e \
        BACKEND=crc-podman \
        JUNIT_RESULTS_FILENAME=podman-backend-e2e-results.xml \
        ARCH=arm64 \
        podman-backend-e2e/run.sh

darwin amd64 with crc microshift backend

PODMAN_VERSION=5.0.0
# Here we need to pass the pullsecret to spin the microshift cluster
podman run -d --name podman-backend-e2e-darwin-m1 \
    -e TARGET_HOST=$(cat host) \
    -e TARGET_HOST_USERNAME=$(cat username) \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=podman-backend-e2e \
    -e TARGET_RESULTS=podman-backend-e2e-results.xml \
    -e OUTPUT_FOLDER=/data \
    -e DEBUG=true \
    -v $PWD:/data:z \
    -v $PWD/pullsecret:/opt/podman-backend-e2e/pullsecret:z \
    quay.io/rhqp/podman-backend-e2e:v${PODMAN_VERSION}-darwin-arm64 \
        PODMAN_VERSION="${PODMAN_VERSION}" \
        TARGET_FOLDER=podman-backend-e2e \
        BACKEND=crc-microshift \
        JUNIT_RESULTS_FILENAME=podman-backend-e2e-results.xml \
        ARCH=amd64 \
        PULLSECRET_FILENAME=pullsecret \
        podman-backend-e2e/run.sh

windows amd64 with crc microshift openshift backend

PODMAN_VERSION=5.0.0
podman run --rm -it --name podman-backend-e2e \
    -e TARGET_HOST=$(cat host) \
    -e TARGET_HOST_USERNAME=$(cat username) \
    -e TARGET_HOST_KEY_PATH=/data/id_rsa \
    -e TARGET_FOLDER=podman-backend-e2e \
    -e TARGET_RESULTS=podman-backend-e2e-results.xml \
    -e OUTPUT_FOLDER=/data \
    -e DEBUG=true \
    -v $PWD:/data:z \
    -v $PWD/pullsecret:/opt/podman-backend-e2e/pullsecret:z \
    quay.io/rhqp/podman-backend-e2e:v${PODMAN_VERSION}-windows-amd64 \
        podman-backend-e2e/run.ps1 -podmanVersion "${PODMAN_VERSION}" \
            -targetFolder podman-backend-e2e \
            -backend crc-openshift \
            -junitResultsFilename podman-backend-e2e-results.xml \
            -pullsecretFilename pullsecret

podman preparation

VERSION=5.0.1

git fetch upstream
git branch -D custom
git checkout -b custom v${VERSION}
git checkout 5.0.X-multi-e2e
commit=$(git log -n 1 | grep commit | awk '{ print $2 }')
git checkout custom
git cherry-pick $commit
# solve conflicts if any

git branch -D 5.0.X-multi-e2e
git checkout -b 5.0.X-multi-e2e
git push -f origin 5.0.X-multi-e2e
git tag v${VERSION}-multi-e2e
git push origin v${VERSION}-multi-e2e