Skip to content

Commit

Permalink
api keys now have a secret on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
haruska committed Apr 2, 2024
1 parent b6e9614 commit 8a96dec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pinecone/management_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ func (ts *ManagementClientTests) TestCreateApiKey() {
require.NoError(ts.T(), err, "Failed to create API key")
require.NotNil(ts.T(), newApiKey, "Newly created API key should not be nil")
require.Equal(ts.T(), apiKeyName, newApiKey.Name, "API key name should match")

//current bug in API implementation: "secret" is returned as "value"
//require.NotEmpty(ts.T(), newApiKey.Secret, "Newly created API key should have a secret")
require.NotEmpty(ts.T(), newApiKey.Secret, "Newly created API key should have a secret")
}

func (ts *ManagementClientTests) TestDeleteApiKey() {
Expand Down

0 comments on commit 8a96dec

Please sign in to comment.