authelia/.buildkite/steps/e2etests.sh
Amir Zarrinkafsh 9861467831
ci: add integration container for samba and refactor duo (#3480)
This change utilises a specific integration container for the ActiveDirectory suite and simplifies the DuoPush suite.
2022-06-05 03:51:33 +10:00

44 lines
854 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
fi
cat << EOF
env:
SUITE: "${SUITE_NAME}"
EOF
done