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"
|
|
|
|
command: "authelia-scripts --log-level debug suites test ${SUITE_NAME} --headless"
|
|
|
|
retry:
|
|
|
|
automatic: true
|
|
|
|
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
|
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
|
2020-11-27 16:59:22 +07:00
|
|
|
else
|
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "all"
|
|
|
|
EOF
|
2020-03-09 08:32:07 +07:00
|
|
|
fi
|
2019-12-27 18:07:53 +07:00
|
|
|
done
|