authelia/.buildkite/steps/e2etests.sh
Amir Zarrinkafsh 91c0c81818
refactor(suites): stop integration tests on first failure (#3270)
* refactor(suites): stop integration tests on first failure

* refactor(suites): remove additional nginx instance

* refactor(suites): log relevant containers

* refactor(suites): add traefik2 logs to stdout

* refactor(suites): explicitly enable traefik for tests

* refactor(suites): remove redis restart and duplicate pathprefix tests

* ci(buildkite): allow manual retry on integration tests
2022-05-02 14:50:37 +10:00

43 lines
853 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
for SUITE_NAME in $(authelia-scripts suites list); do
cat << EOF
- label: ":selenium: ${SUITE_NAME} Suite"
command: "authelia-scripts --log-level debug suites test ${SUITE_NAME} --failfast --headless"
retry:
automatic: true
manual:
permit_on_passed: true
EOF
if [[ "${SUITE_NAME}" = "ActiveDirectory" ]]; then
cat << EOF
agents:
suite: "activedirectory"
EOF
elif [[ "${SUITE_NAME}" = "HighAvailability" ]]; then
cat << EOF
agents:
suite: "highavailability"
EOF
elif [[ "${SUITE_NAME}" = "Kubernetes" ]]; then
cat << EOF
agents:
suite: "kubernetes"
EOF
elif [[ "${SUITE_NAME}" = "Standalone" ]]; then
cat << EOF
agents:
suite: "standalone"
EOF
else
cat << EOF
agents:
suite: "all"
EOF
cat << EOF
env:
SUITE: "${SUITE_NAME}"
EOF
fi
done