We decided to go with bats as it provides everything we need for automated cli testing.
Added "Bats" parallel jobs funktion (requires GNU prallel to work) in order to speed up testes
The bats job needs to get run from the GIT ULS root directory:
bash test/test.sh
For better testing stability, we packed the required dependencies into the test dir as well.
- bats version 1.6 min
bats --version Bats 1.6.0
- bats-assert checked out under
bats
directory - bats-support checked out under
bats
directory timeout
command is available- "GNU parallel" -->
brew install parallel
- ULS and the CLI's are installed
- working (fully fledged
.edgerc
file - or the inline MOCKED one)- mocked edgerc is currently failing with EAA
- helm isntallation (linting)
brew install bats-core
brew install helm
brew install hadolint
brew install trivy
git clone https://github.com/ztombol/bats-assert.git test/bats/bats-assert
git clone https://github.com/ztombol/bats-support.git test/bats/bats-support