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"
|
|
|
|
command: "authelia-scripts --log-level debug suites test ${SUITE_NAME} --headless"
|
|
|
|
retry:
|
|
|
|
automatic: true
|
|
|
|
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
|
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
|
2020-11-27 09:59:22 +00:00
|
|
|
else
|
|
|
|
cat << EOF
|
|
|
|
agents:
|
|
|
|
suite: "all"
|
|
|
|
EOF
|
2020-03-09 01:32:07 +00:00
|
|
|
fi
|
2021-02-22 01:48:20 +00:00
|
|
|
done
|
|
|
|
cat << EOF
|
|
|
|
|
|
|
|
- wait
|
|
|
|
|
|
|
|
- label: ":vertical_traffic_light: Test Concurrency Gate"
|
|
|
|
command: "echo End of concurrency gate"
|
|
|
|
concurrency: 3
|
|
|
|
concurrency_group: "tests"
|
|
|
|
EOF
|