conditionally set interactive and tty on dokku run.

closes #552
closes #913
This commit is contained in:
Michael Hobbs committed 2015-01-21 13:49:46 -08:00
1 parent 40d1f22d74
commit 3e100e3002
2 files changed
+19 -1

No files matched your search

+16
View File
@@ -11,6 +11,22 @@ teardown() {
destroy_app
}
@test "run (with tty)" {
deploy_app
run /bin/bash -c "dokku run $TEST_APP ls /app/package.json"
echo "output: "$output
echo "status: "$status
assert_success
}
@test "run (without tty)" {
deploy_app
run /bin/bash -c ": |dokku run $TEST_APP ls /app/package.json"
echo "output: "$output
echo "status: "$status
assert_success
}
@test "urls (non-ssl)" {
run bash -c "dokku urls $TEST_APP | grep dokku.me"
echo "output: "$output