Skip to content

Commit

Permalink
test changed to use errMoreThanOneOf
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fbudzynski committed Sep 25, 2024
1 parent bdf2585 commit 7791f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sdk/secrets_gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestSecrets_Alter(t *testing.T) {
opts.Set.SetForOAuthAuthorizationFlow = &SetForOAuthAuthorizationFlow{OauthRefreshToken: String("foo"), OauthRefreshTokenExpiryTime: String("bar")}
opts.Set.SetForBasicAuthentication = &SetForBasicAuthentication{Username: String("foo"), Password: String("bar")}
opts.Set.SetForGenericString = &SetForGenericString{SecretString: String("secret")}
assertOptsInvalidJoinedErrors(t, opts, errOneOf("AlterSecretOptions.Set", "SetForOAuthClientCredentialsFlow", "SetForOAuthAuthorizationFlow", "SetForBasicAuthentication", "SetForGenericString"))
assertOptsInvalidJoinedErrors(t, opts, errMoreThanOneOf("AlterSecretOptions.Set", "SetForOAuthClientCredentialsFlow", "SetForOAuthAuthorizationFlow", "SetForBasicAuthentication", "SetForGenericString"))
})

t.Run("alter: set options for Oauth Client Credentials Flow", func(t *testing.T) {
Expand Down

0 comments on commit 7791f33

Please sign in to comment.