Merge pull request #6801 from dokku/6764-invalid-proxy

Guard against invalid proxy values due to move of port mapping to ports plugin
This commit is contained in:
Jose Diaz-Gonzalez
2024-04-05 00:25:40 -04:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -28,6 +28,14 @@ teardown() {
assert_output "$help_output"
}
@test "(proxy:set) invalid port mapping set" {
run /bin/bash -c "dokku proxy:set $TEST_APP http:80:80"
echo "output: $output"
echo "status: $status"
assert_failure
assert_output_contains "Detected potential port mapping instead of proxy type"
}
@test "(proxy) proxy:build-config/clear-config" {
run deploy_app
echo "output: $output"