add pvelabs
This commit is contained in:
@@ -14,6 +14,8 @@ cp -R \
|
||||
"${TEST_ROOT}/compose.yaml" \
|
||||
"${TEST_ROOT}/compose.http.yaml" \
|
||||
"${TEST_ROOT}/compose.tls.yaml" \
|
||||
"${TEST_ROOT}/compose.external-guacamole.bootstrap.yaml" \
|
||||
"${TEST_ROOT}/compose.external-guacamole.tls.yaml" \
|
||||
"${TEST_ROOT}/compose.direct.yaml" \
|
||||
"${TEST_ROOT}/deploy" \
|
||||
"$deployment/"
|
||||
@@ -67,6 +69,19 @@ grep -F -- '/var/cache/nginx:size=256m,mode=0755' \
|
||||
printf 'FAIL: Nginx cache tmpfs is too small for Git pack streaming\n' >&2
|
||||
exit 1
|
||||
}
|
||||
for external_file in \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/external-guacamole-bootstrap.conf.template" \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/external-guacamole-tls.conf.template"; do
|
||||
[[ -f "$external_file" ]] || {
|
||||
printf 'FAIL: missing Guacamole Nginx template: %s\n' "$external_file" >&2
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
grep -F -- 'proxy_pass ${EXTERNAL_GUACAMOLE_UPSTREAM}/guacamole/;' \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/external-guacamole-tls.conf.template" >/dev/null || {
|
||||
printf 'FAIL: Guacamole root proxy does not retain the internal context path\n' >&2
|
||||
exit 1
|
||||
}
|
||||
for template in \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/http.conf.template" \
|
||||
"${TEST_ROOT}/deploy/nginx/templates/tls.conf.template"; do
|
||||
@@ -105,6 +120,7 @@ assert_env 'TAPM_GITEA_URL=http://git.test:8780'
|
||||
assert_env 'TAPM_GITEA_INTERNAL_URL=http://gitea:3000'
|
||||
assert_env 'GITEA_PUBLIC_URL=http://git.test:8780/'
|
||||
assert_env 'TAPM_DEFAULT_DURATION=7d'
|
||||
assert_env 'EXTERNAL_GUACAMOLE_ENABLED=false'
|
||||
grep -F -- '-f compose.yaml -f compose.http.yaml up -d gitea nginx' \
|
||||
"$MOCK_DOCKER_LOG" >/dev/null || {
|
||||
printf 'FAIL: HTTP bootstrap did not select compose.http.yaml\n' >&2
|
||||
@@ -131,6 +147,20 @@ assert_env 'SSL_MODE=letsencrypt'
|
||||
assert_env 'TAPM_PUBLIC_URL=https://broker.test'
|
||||
assert_env 'GITEA_PUBLIC_URL=https://git.test/'
|
||||
|
||||
printf '%s\n' \
|
||||
'EXTERNAL_GUACAMOLE_ENABLED=true' \
|
||||
'EXTERNAL_GUACAMOLE_DOMAIN=guacamole.test' \
|
||||
'EXTERNAL_GUACAMOLE_UPSTREAM=http://10.0.0.10:8080' \
|
||||
>>"${deployment}/.env"
|
||||
"${deployment}/manage.sh" status >/dev/null
|
||||
grep -F -- '-f compose.yaml -f compose.tls.yaml -f compose.external-guacamole.tls.yaml ps' \
|
||||
"$MOCK_DOCKER_LOG" >/dev/null || {
|
||||
printf 'FAIL: enabled Guacamole proxy was not added to the TLS stack\n' >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
printf '%s\n' 'EXTERNAL_GUACAMOLE_ENABLED=false' >>"${deployment}/.env"
|
||||
|
||||
"${deployment}/manage.sh" set-ssl none >/dev/null
|
||||
assert_env 'SSL_MODE=none'
|
||||
assert_env 'TAPM_PUBLIC_URL=http://broker.test:8780'
|
||||
|
||||
Reference in New Issue
Block a user