cli: fix invalid upper case name on AWS (#2546)

This commit is contained in:
Adrian Stobbe 2023-11-03 10:09:43 +01:00 committed by GitHub
parent d67f1a035f
commit eaec73cca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 3 deletions

View file

@ -421,6 +421,16 @@ func TestValidate(t *testing.T) {
wantErr: true,
wantErrCount: awsErrCount,
},
"AWS config with upper case name": {
cnf: func() *Config {
cnf := Default()
cnf.RemoveProviderAndAttestationExcept(cloudprovider.AWS)
cnf.Name = "testAWS"
return cnf
}(),
wantErr: true,
wantErrCount: awsErrCount + 1,
},
"AWS config with correct region and zone format": {
cnf: func() *Config {
cnf := Default()