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