From f55e047619b37f907347d24dcd565f53ab313aa2 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Tue, 21 Apr 2015 11:53:00 -0700 Subject: [PATCH] negative test for validate_nginx --- tests/unit/nginx-vhosts.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/nginx-vhosts.bats b/tests/unit/nginx-vhosts.bats index 4fc07af94..66838c126 100644 --- a/tests/unit/nginx-vhosts.bats +++ b/tests/unit/nginx-vhosts.bats @@ -94,3 +94,12 @@ assert_http_success() { deploy_app 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 +}