2020-06-18 07:49:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-12-27 11:07:53 +00:00
|
|
|
set -eu
|
|
|
|
|
2020-03-09 01:32:07 +00:00
|
|
|
for SUITE_NAME in $(authelia-scripts suites list); do
|
|
|
|
cat << EOF
|
|
|
|
- label: ":selenium: ${SUITE_NAME} Suite"
|
2022-05-02 04:50:37 +00:00
|
|
|
command: "authelia-scripts --log-level debug suites test ${SUITE_NAME} --failfast --headless"
|
2020-03-09 01:32:07 +00:00
|
|
|
retry:
|
|
|
|
automatic: true
|
2022-05-02 04:50:37 +00:00
|
|
|
manual:
|
|
|
|
permit_on_passed: true
|
2020-03-09 01:32:07 +00:00
|
|
|
EOF
|
2020-11-27 09:59:22 +00:00
|
|
|
if [[ "${SUITE_NAME}" = "ActiveDirectory" ]]; then
|
2020-03-09 01:32:07 +00:00
|
|
|
cat << EOF
|
|
|
|
agents:
|
2020-11-27 09:59:22 +00:00
|
|
|
suite: "activedirectory"
|
2020-03-09 01:32:07 +00:00
|
|
|
EOF
|
2021-05-27 04:23:56 +00:00
|
|
|
elif [[ "${SUITE_NAME}" = "HighAvailability" ]]; then
|
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "highavailability"
|
|
|
|
EOF
|
2020-11-27 09:59:22 +00:00
|
|
|
elif [[ "${SUITE_NAME}" = "Kubernetes" ]]; then
|
2020-03-09 01:32:07 +00:00
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "kubernetes"
|
|
|
|
EOF
|
2021-10-08 01:08:43 +00:00
|
|
|
elif [[ "${SUITE_NAME}" = "Standalone" ]]; then
|
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "standalone"
|
|
|
|
EOF
|
2020-11-27 09:59:22 +00:00
|
|
|
else
|
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "all"
|
|
|
|
EOF
|
2022-06-04 17:51:33 +00:00
|
|
|
fi
|
2021-10-08 01:08:43 +00:00
|
|
|
cat << EOF
|
|
|
|
env:
|
|
|
|
SUITE: "${SUITE_NAME}"
|
|
|
|
EOF
|
2022-06-04 17:51:33 +00:00
|
|
|
done
|