feat: add a test to prove that tls breaks app renames

This commit is contained in:
Jose Diaz-Gonzalez
2018-07-28 00:19:13 -04:00
parent e8265ac642
commit df834f41f3
4 changed files with 20 additions and 13 deletions

View File

@@ -113,6 +113,19 @@ teardown () {
assert_success
}
@test "(apps) apps:rename with tls" {
setup_test_tls
deploy_app
run bash -c "dokku apps:rename $TEST_APP great-test-name"
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "dokku --force apps:destroy great-test-name"
echo "output: "$output
echo "status: "$status
assert_success
}
@test "(apps) apps:clone" {
deploy_app
run bash -c "dokku apps:clone $TEST_APP great-test-name"
@@ -213,4 +226,4 @@ teardown () {
assert_output "false"
destroy_app
}
}

View File

@@ -24,12 +24,6 @@ assert_urls() {
assert_output < <(tr ' ' '\n' <<< "${urls}")
}
build_nginx_config() {
# simulate nginx post-deploy
dokku domains:setup $TEST_APP
dokku nginx:build-config $TEST_APP
}
@test "(core) remove exited containers" {
deploy_app

View File

@@ -31,12 +31,6 @@ assert_url() {
assert_output "${url}"
}
build_nginx_config() {
# simulate nginx post-deploy
dokku domains:setup $TEST_APP
dokku nginx:build-config $TEST_APP
}
@test "(core) run (with --options)" {
deploy_app
run /bin/bash -c "dokku --force --quiet run $TEST_APP node --version"

View File

@@ -372,3 +372,9 @@ cat<<EOF > "$APP_REPO_DIR/nginx.conf.sigil"
some lame nginx config
EOF
}
build_nginx_config() {
# simulate nginx post-deploy
dokku domains:setup "$TEST_APP"
dokku nginx:build-config "$TEST_APP"
}