Skip to content

Commit

Permalink
modified a test to make sure access token request fails in all envs (#90
Browse files Browse the repository at this point in the history
)
  • Loading branch information
antikus committed Jun 5, 2023
1 parent 9bb1816 commit 948efcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rai/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ func TestNewClient(t *testing.T) {
assert.NotNil(t, token)

missingCreds := &ClientCredentials{
ClientID: cfg.Credentials.ClientID,
ClientID: "",
ClientSecret: cfg.Credentials.ClientSecret,
ClientCredentialsUrl: cfg.Credentials.ClientCredentialsUrl,
Audience: cfg.Credentials.Audience,
}

token, err = testClient.GetAccessToken(missingCreds)
Expand Down

0 comments on commit 948efcc

Please sign in to comment.