Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.29 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.29 KB

ULS test scripts

BATS

We decided to go with bats as it provides everything we need for automated cli testing.

20221004

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.

Requirements

  • 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)

Installation on a MAC

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