diff --git a/.env.example b/.env.example index de982a6..47297ec 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ PINECONE_API_KEY="" +TEST_PINECONE_API_KEY="" TEST_POD_INDEX_NAME="" TEST_SERVERLESS_INDEX_NAME="" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9fa3bf1..68db2d7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,4 +21,4 @@ jobs: env: TEST_POD_INDEX_NAME: ${{ secrets.TEST_POD_INDEX_NAME }} TEST_SERVERLESS_INDEX_NAME: ${{ secrets.TEST_SERVERLESS_INDEX_NAME }} - INTEGRATION_PINECONE_API_KEY: ${{ secrets.API_KEY }} + TEST_PINECONE_API_KEY: ${{ secrets.API_KEY }} diff --git a/pinecone/index_connection_test.go b/pinecone/index_connection_test.go index 493bd54..9136926 100644 --- a/pinecone/index_connection_test.go +++ b/pinecone/index_connection_test.go @@ -28,7 +28,7 @@ type IndexConnectionTests struct { // Runs the test suite with `go test` func TestIndexConnection(t *testing.T) { - apiKey := os.Getenv("INTEGRATION_PINECONE_API_KEY") + apiKey := os.Getenv("TEST_PINECONE_API_KEY") assert.NotEmptyf(t, apiKey, "API_KEY env variable not set") client, err := NewClient(NewClientParams{ApiKey: apiKey})