mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
tests: add tests for config and docker options
These two are also still stored in the app repo directory and not copied over as properties, so would be susceptible to not having the code copied over.
This commit is contained in:
@@ -178,6 +178,14 @@ teardown() {
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
run /bin/bash -c "dokku config:set --no-restart $TEST_APP KEY=VALUE-$TEST_APP"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
run /bin/bash -c "dokku docker-options:add $TEST_APP deploy --no-healthcheck"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
run /bin/bash -c "dokku git:set $TEST_APP deploy-branch SOME_BRANCH_NAME"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
@@ -204,6 +212,16 @@ teardown() {
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
assert_output "https://github.com/heroku/heroku-buildpack-ruby.git"
|
||||
run /bin/bash -c "dokku config:get great-test-name KEY"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
assert_output "VALUE-$TEST_APP"
|
||||
run /bin/bash -c "dokku docker-options:report great-test-name deploy --docker-options-deploy"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
assert_output_contains "--no-healthcheck"
|
||||
run /bin/bash -c "dokku git:report great-test-name --git-deploy-branch"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
|
||||
Reference in New Issue
Block a user