negative test for validate_nginx
This commit is contained in:
1 parent
661b6706de
commit
f55e047619
1 file changed
+9
@@ -94,3 +94,12 @@ assert_http_success() {
|
|||||||
deploy_app
|
deploy_app
|
||||||
assert_nonssl_domain "www.test.app.dokku.me"
|
assert_nonssl_domain "www.test.app.dokku.me"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "(nginx-vhosts) nginx:build-config (validate_nginx)" {
|
||||||
|
deploy_app
|
||||||
|
echo "some lame nginx config" > "$DOKKU_ROOT/$TEST_APP/nginx.conf.template"
|
||||||
|
run /bin/bash -c "dokku nginx:build-config $TEST_APP"
|
||||||
|
echo "output: "$output
|
||||||
|
echo "status: "$status
|
||||||
|
assert_failure
|
||||||
|
}
|
||||||
Reference in new issue
Block a user