Add validator for buildpack arch

This commit is contained in:
Nick Hammond
2024-10-17 07:46:45 -07:00
parent 4822a9d950
commit d538447973
2 changed files with 3 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ class ConfigurationValidationTest < ActiveSupport::TestCase
assert_error "builder/arch: should be an array or a string", builder: { "arch" => {} }
assert_error "builder/args: should be a hash", builder: { "args" => [ "foo" ] }
assert_error "builder/cache/options: should be a string", builder: { "cache" => { "options" => [] } }
assert_error "builder: buildpacks only support building for one arch", builder: { "arch" => [ "amd64", "arm64" ], "pack" => { "builder" => "heroku/builder:24" } }
end
private