-
- Downloads
utils: Rewrite run-tests.sh to use functions and extenal scripts
To modify Azure tests and depend on shell scripts and pytest instead of molecule, the run-tests.sh script has been rewritten to depend on bash functions and on a bash script that prepare and start a testing container. This patch adds a new script, 'utils/setup_test_container.sh' that can be used to start a new container, using either podman or docker, based on the available ansible-freeipa images. The new container can then be used to run ansible-freeipa tests against it. Also the following files with bash functions were added, and are used by both scripts: utils/shansible: Functions to run playbooks in the container utils/shcontainer: Functions to setup/run a container utils/shfun: Generic shell helper functions (e.g.: log)
Showing
- utils/run-tests.sh 65 additions, 298 deletionsutils/run-tests.sh
- utils/set_test_modules 3 additions, 1 deletionutils/set_test_modules
- utils/setup_test_container.sh 119 additions, 0 deletionsutils/setup_test_container.sh
- utils/shansible 88 additions, 0 deletionsutils/shansible
- utils/shcontainer 61 additions, 0 deletionsutils/shcontainer
Loading
Please register or sign in to comment