mirror of
https://github.com/authelia/authelia.git
synced 2026-10-28 09:34:52 +08:00
48 lines
1.1 KiB
Bash
Executable File
48 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# SPDX-FileCopyrightText: 2026 Authelia
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -eu
|
|
|
|
declare -A SUITE_AGENTS=(
|
|
[ActiveDirectory]="activedirectory"
|
|
[HighAvailability]="highavailability"
|
|
[Kubernetes]="kubernetes"
|
|
[Standalone]="standalone"
|
|
)
|
|
|
|
declare -A SUITE_TIMEOUTS=(
|
|
[Kubernetes]="30"
|
|
)
|
|
|
|
for SUITE_NAME in $(authelia-scripts suites list); do
|
|
AGENT="${SUITE_AGENTS[${SUITE_NAME}]:-all}"
|
|
TIMEOUT="${SUITE_TIMEOUTS[${SUITE_NAME}]:-20}"
|
|
cat << EOF
|
|
- label: ":selenium: ${SUITE_NAME} Suite"
|
|
command: "authelia-scripts --log-level debug suites test ${SUITE_NAME} --failfast --headless"
|
|
artifact_paths:
|
|
- "screenshots/**/*.access.log"
|
|
- "screenshots/**/*.console.json"
|
|
- "screenshots/**/*.containers.log"
|
|
- "screenshots/**/*.html"
|
|
- "screenshots/**/*.png"
|
|
- "screenshots/**/*.resources.json"
|
|
- "test-results-*.json"
|
|
- "test-results-*.xml"
|
|
timeout_in_minutes: ${TIMEOUT}
|
|
retry:
|
|
automatic:
|
|
- exit_status: "*"
|
|
limit: 2
|
|
manual:
|
|
permit_on_passed: true
|
|
agents:
|
|
suite: "${AGENT}"
|
|
env:
|
|
SUITE: "${SUITE_NAME}"
|
|
EOF
|
|
done
|