allow docker-options over ssh. plus test. closes #1135

This commit is contained in:
Michael Hobbs
2015-04-24 12:09:58 -07:00
parent 3c056527e8
commit 3d2af158ff
2 changed files with 12 additions and 1 deletions

View File

@@ -149,3 +149,14 @@ teardown() {
assert_success
deploy_app
}
@test "docker-options:add (all phases over SSH)" {
run ssh dokku@dokku.me docker-options:add $TEST_APP build,deploy,run \"-v /tmp\"
echo "output: "$output
echo "status: "$status
assert_success
run /bin/bash -c "dokku docker-options $TEST_APP | egrep '\-v /tmp' | wc -l | grep -q 3"
echo "output: "$output
echo "status: "$status
assert_success
}