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
|
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
|
2020-11-27 16:59:22 +07:00
|
|
|
else
|
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "all"
|
|
|
|
EOF
|
2020-03-09 08:32:07 +07:00
|
|
|
fi
|
2021-02-22 08:48:20 +07:00
|
|
|
done
|
|
|
|
cat << EOF
|
|
|
|
|
|
|
|
- wait
|
|
|
|
|
|
|
|
- label: ":vertical_traffic_light: Test Concurrency Gate"
|
|
|
|
command: "echo End of concurrency gate"
|
|
|
|
concurrency: 3
|
|
|
|
concurrency_group: "tests"
|
|
|
|
EOF
|