fix: do not manually create an app during tests

This will cause weird things to happen due to not initializing the app correctly.
This commit is contained in:
Jose Diaz-Gonzalez committed 2021-08-01 20:13:50 -04:00
1 parent 06cb7a0d55
commit 4967cc1d1c
1 file changed
+6 -1
+6 -1
View File
@@ -36,9 +36,14 @@ teardown() {
assert_ssl_domain "wildcard2.dokku.me" assert_ssl_domain "wildcard2.dokku.me"
} }
@test "(nginx-vhosts) nginx:build-config (wildcard SSL and unrelated domain)" { @test "(nginx-vhosts) nginx:build-config (wildcard SSL and unrelated domain) 1" {
destroy_app destroy_app
TEST_APP="${TEST_APP}.example.com" TEST_APP="${TEST_APP}.example.com"
run /bin/bash -c "dokku apps:create $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
setup_test_tls wildcard setup_test_tls wildcard
deploy_app nodejs-express dokku@dokku.me:$TEST_APP deploy_app nodejs-express dokku@dokku.me:$TEST_APP
run /bin/bash -c "dokku nginx:show-config $TEST_APP | grep -e '*.dokku.me' | wc -l" run /bin/bash -c "dokku nginx:show-config $TEST_APP | grep -e '*.dokku.me' | wc -l"