Skip to content

Commit

Permalink
update GCP secret manager test
Browse files Browse the repository at this point in the history
Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>
  • Loading branch information
Yordan Pavlov committed Jan 13, 2022
1 parent 9e969ba commit 7268fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secretstores/gcp/secretmanager/secretmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func TestInit(t *testing.T) {
}

err := sm.Init(m)
// Even if we pass wrong credentials `client.NewClient` dont throw an error
assert.Nil(t, err)
assert.NotNil(t, err)
assert.Equal(t, err, fmt.Errorf("failed to setup secretmanager client: google: could not parse key: private key should be a PEM or plain PKCS1 or PKCS8; parse error: asn1: syntax error: truncated tag or length"))
})

t.Run("Init with missing `type` metadata", func(t *testing.T) {
Expand Down

0 comments on commit 7268fa9

Please sign in to comment.