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:
1 parent
7f7a044a07
commit
5846301a48
43 files changed
+278
-272
No files matched your search
@@ -38,8 +38,8 @@ teardown() {
|
||||
assert_success
|
||||
|
||||
# the run command is equivalent to the following line, except with backslashes due to the enclosing doublequotes
|
||||
# dokku docker-options:add test deploy '--label "some.key=Host(\`$TEST_APP.dokku.me\`)"'
|
||||
run /bin/bash -c "dokku docker-options:add $TEST_APP deploy '--label \"some.key=Host(\\\`$TEST_APP.dokku.me\\\`)\"'"
|
||||
# dokku docker-options:add test deploy '--label "some.key=Host(\`$TEST_APP.$DOKKU_DOMAIN\`)"'
|
||||
run /bin/bash -c "dokku docker-options:add $TEST_APP deploy '--label \"some.key=Host(\\\`$TEST_APP.$DOKKU_DOMAIN\\\`)\"'"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
@@ -52,7 +52,7 @@ teardown() {
|
||||
run /bin/bash -c "docker inspect --format '{{ index .Config.Labels \"some.key\"}}' $TEST_APP.web.1"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output "Host(\`$TEST_APP.dokku.me\`)"
|
||||
assert_output "Host(\`$TEST_APP.$DOKKU_DOMAIN\`)"
|
||||
assert_success
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user