fix: Validate that all application names are valid domain names

Invalid application names will need to be manually cleaned up by the user, and as such this is a bc-break.

Closes #3054
This commit is contained in:
Jose Diaz-Gonzalez
2018-02-13 03:30:27 -05:00
parent a80bd92f40
commit 16b8f2682b
3 changed files with 21 additions and 9 deletions

View File

@@ -25,7 +25,16 @@ teardown () {
echo "output: "$output
echo "status: "$status
assert_success
dokku --force apps:destroy 1994testapp
run dokku apps:create testapp:latest
echo "output: "$output
echo "status: "$status
assert_failure
run dokku apps:create testApp:latest
echo "output: "$output
echo "status: "$status
assert_failure
run dokku apps:create TestApp
echo "output: "$output