Merge pull request #941 from progrium/931-mh-source-glabal-env-deploy-run

source global env prior to app env. closes #931
This commit is contained in:
Michael Hobbs
2015-02-04 07:32:12 -08:00
5 changed files with 19 additions and 2 deletions

View File

@@ -3,11 +3,13 @@
load test_helper
setup() {
sudo -H -u dokku /bin/bash -c "echo 'export global_test=true' > $DOKKU_ROOT/ENV"
create_app
}
teardown() {
destroy_app
rm -f "$DOKKU_ROOT/ENV"
}
@test "config:set" {
@@ -46,3 +48,11 @@ teardown() {
echo "status: "$status
assert_output ""
}
@test "config (global)" {
deploy_app
run bash -c "dokku run $TEST_APP env | egrep '^global_test=true'"
echo "output: "$output
echo "status: "$status
assert_success
}