#!/usr/bin/env bash set -eu 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} --failfast --headless" retry: automatic: true manual: permit_on_passed: true EOF if [[ "${SUITE_NAME}" = "ActiveDirectory" ]]; then cat << EOF agents: suite: "activedirectory" EOF elif [[ "${SUITE_NAME}" = "HighAvailability" ]]; then cat << EOF agents: suite: "highavailability" EOF elif [[ "${SUITE_NAME}" = "Kubernetes" ]]; then cat << EOF agents: suite: "kubernetes" EOF elif [[ "${SUITE_NAME}" = "Standalone" ]]; then cat << EOF agents: suite: "standalone" EOF else cat << EOF agents: suite: "all" EOF cat << EOF env: SUITE: "${SUITE_NAME}" EOF fi done