mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
fix: ensure tests pass
This commit is contained in:
@@ -1001,7 +1001,7 @@ get_app_urls() {
|
||||
local port_map app_vhost
|
||||
local app_vhosts=$(get_app_domains "$APP")
|
||||
for port_map in $DOKKU_PROXY_PORT_MAP; do
|
||||
local scheme="$(awk -F ':' '{ print $1 }' <<< "$port_map")"
|
||||
local scheme="$(awk -F ':' '{ print $1 }' <<< "$port_map")"
|
||||
local listen_port="$(awk -F ':' '{ print $2 }' <<< "$port_map")"
|
||||
for app_vhost in $app_vhosts; do
|
||||
if [[ "$listen_port" != "80" ]] && [[ "$listen_port" != "443" ]]; then
|
||||
|
||||
@@ -28,7 +28,7 @@ assert_url() {
|
||||
echo "output: "$output
|
||||
echo "status: "$status
|
||||
echo "url: ${url}"
|
||||
assert_output < <("${url}")
|
||||
assert_output "${url}"
|
||||
}
|
||||
|
||||
build_nginx_config() {
|
||||
@@ -78,8 +78,6 @@ build_nginx_config() {
|
||||
assert_url "https://dokku.me"
|
||||
build_nginx_config
|
||||
assert_url "https://${TEST_APP}.dokku.me"
|
||||
add_domain "test.dokku.me"
|
||||
assert_url "https://test.dokku.me" "https://${TEST_APP}.dokku.me"
|
||||
}
|
||||
|
||||
@test "(core) urls (wildcard ssl)" {
|
||||
|
||||
Reference in New Issue
Block a user