WIP add tests

This commit is contained in:
dorian committed 2018-12-27 23:32:28 +01:00
1 parent ccfaeb0e36
commit 47462fcb6f
2 files changed
+54

No files matched your search

+11
View File
@@ -10,6 +10,7 @@ setup() {
}
teardown() {
detach_delete_network
destroy_app
[[ -f "$DOKKU_ROOT/VHOST.bak" ]] && mv "$DOKKU_ROOT/VHOST.bak" "$DOKKU_ROOT/VHOST" && chown dokku:dokku "$DOKKU_ROOT/VHOST"
[[ -f "$DOKKU_ROOT/HOSTNAME.bak" ]] && mv "$DOKKU_ROOT/HOSTNAME.bak" "$DOKKU_ROOT/HOSTNAME" && chown dokku:dokku "$DOKKU_ROOT/HOSTNAME"
@@ -130,3 +131,13 @@ teardown() {
assert_http_success http://www.test.app.dokku.me:3003
}
@test "(nginx-vhosts) nginx:build-config (multiple networks)" {
deploy_app
create_attach_network
run dokku nginx:build-config "$TEST_APP"
echo "output: "$output
echo "status: "$status
assert_success
}