This repo contains script to automate and test deployments on Red Hat Managed Services
To run tests locally use the folling command:
tox .
If you have a dirty virtual environment use the option -r
in tox
to recreate the environments.
The container must have internet access to build, it is not necessary to install any requirenments in your workstation.
First build the image that will run the tests:
podman build -f tests/Dockerfile --tag tox-test:latest .
The tag can be anything you want and can be changed, in thsi case we are using tox-test:latest
.
To run the tests execute:
podman run --rm -ti tox-test:latest
You can execute any sub-environment of tox
by doing the following:
podman run --rm -ti tox-test:latest tox -e stage