tests: make it possible to specify an alternative base domain for tests

When developing Dokku, it is useful to use a real domain to test actual functionality. This is impossible if the domain is hardcoded to dokku.me in testing.
This commit is contained in:
Jose Diaz-Gonzalez
2023-08-05 16:32:58 -04:00
parent 7f7a044a07
commit 5846301a48
43 changed files with 278 additions and 272 deletions

View File

@@ -96,7 +96,7 @@ teardown() {
echo "status: $status"
assert_success
assert_nonssl_domain "${TEST_APP}.dokku.me"
assert_nonssl_domain "${TEST_APP}.${DOKKU_DOMAIN}"
run /bin/bash -c "dokku proxy:disable $TEST_APP"
echo "output: $output"
@@ -111,7 +111,7 @@ teardown() {
echo "output: $output"
echo "status: $status"
assert_success
assert_http_success "${TEST_APP}.dokku.me"
assert_http_success "${TEST_APP}.${DOKKU_DOMAIN}"
for CID_FILE in $DOKKU_ROOT/$TEST_APP/CONTAINER.web.*; do
assert_not_external_port $(<$CID_FILE)