fix: validate app name in app-scoped commands

This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-24 18:14:53 -04:00
1 parent 114c6115b9
commit a4484d354b
22 files changed
+213 -35

No files matched your search

+13
View File
@@ -82,3 +82,16 @@ teardown() {
assert_success
assert_output "5m"
}
@test "(openresty:set) missing app" {
run /bin/bash -c "dokku openresty:set missing-app client-max-body-size 5m"
echo "output: $output"
echo "status: $status"
assert_failure
assert_output_contains "App missing-app does not exist"
run /bin/bash -c "test -e $DOKKU_LIB_ROOT/config/openresty/missing-app"
echo "output: $output"
echo "status: $status"
assert_failure
}