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 committed 2023-08-05 20:58:26 -04:00
1 parent 7f7a044a07
commit 5846301a48
43 files changed
+278 -272

No files matched your search

+2 -2
View File
@@ -12,10 +12,10 @@ teardown() {
}
@test "(app-json) persist scale" {
local CUSTOM_TMP=$(mktemp -d "/tmp/dokku.me.XXXXX")
local CUSTOM_TMP=$(mktemp -d "/tmp/${DOKKU_DOMAIN}.XXXXX")
trap 'popd &>/dev/null || true; rm -rf "$TMP"' INT TERM
CUSTOM_TMP="$CUSTOM_TMP" run deploy_app python dokku@dokku.me:$TEST_APP persist_scale_callback_a
CUSTOM_TMP="$CUSTOM_TMP" run deploy_app python "dokku@$DOKKU_DOMAIN:$TEST_APP" persist_scale_callback_a
echo "output: $output"
echo "status: $status"
assert_success