Purge provider argument from constellation create and verify

This commit is contained in:
Nils Hanke 2022-09-07 15:38:29 +02:00 committed by Nils Hanke
parent 7aded65ea8
commit ce0edc8c80
9 changed files with 31 additions and 233 deletions

View file

@ -71,13 +71,15 @@ func TestValidateConfig(t *testing.T) {
wantOutput: true,
wantErr: true,
},
"config without provider is ok if no provider required": {
"config without provider is not ok": {
cnf: func() *config.Config {
cnf := config.Default()
cnf.Provider = config.ProviderConfig{}
return cnf
}(),
wantErr: true,
},
"config without required provider": {
cnf: func() *config.Config {
cnf := config.Default()
@ -96,7 +98,7 @@ func TestValidateConfig(t *testing.T) {
out := &bytes.Buffer{}
err := validateConfig(out, tc.cnf, tc.provider)
err := validateConfig(out, tc.cnf)
if tc.wantErr {
assert.Error(err)