From 2783f00df42f4e175e7537832599499c9b13b2e1 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Thu, 30 Nov 2023 12:45:21 -0500 Subject: [PATCH] add additional skips for unhandled integration tests --- src/integration/control/configureIndex.test.ts | 6 +++--- src/integration/data/deleteMany.test.ts | 5 +++-- src/integration/data/query.test.ts | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/integration/control/configureIndex.test.ts b/src/integration/control/configureIndex.test.ts index 7d38b314..e92d5841 100644 --- a/src/integration/control/configureIndex.test.ts +++ b/src/integration/control/configureIndex.test.ts @@ -32,7 +32,7 @@ describe.skip('configure index', () => { await pinecone.deleteIndex(indexName); }); - describe('error handling', () => { + describe.skip('error handling', () => { test('configure index with invalid index name', async () => { try { await pinecone.configureIndex('non-existent-index', { @@ -60,7 +60,7 @@ describe.skip('configure index', () => { }); }); - describe('scaling replicas', () => { + describe.skip('scaling replicas', () => { test('scaling up', async () => { const description = await pinecone.describeIndex(indexName); expect(description.spec.pod?.replicas).toEqual(2); @@ -84,7 +84,7 @@ describe.skip('configure index', () => { }); }); - describe('scaling pod type', () => { + describe.skip('scaling pod type', () => { test('scaling podType: changing base pod type', async () => { // Verify the starting state const description = await pinecone.describeIndex(indexName); diff --git a/src/integration/data/deleteMany.test.ts b/src/integration/data/deleteMany.test.ts index 0e49fcdb..5163ccc5 100644 --- a/src/integration/data/deleteMany.test.ts +++ b/src/integration/data/deleteMany.test.ts @@ -1,7 +1,8 @@ import { Pinecone, Index } from '../../index'; import { randomString, generateRecords } from '../test-helpers'; -describe('deleteMany', () => { +// TODO: Un-skip when freshness layer is ready +describe.skip('deleteMany', () => { const INDEX_NAME = 'ts-integration'; let pinecone: Pinecone, index: Index, ns: Index, namespace: string; @@ -35,7 +36,7 @@ describe('deleteMany', () => { await ns.deleteAll(); }); - test('verify deleteMany with ids', async () => { + test.skip('verify deleteMany with ids', async () => { const recordsToUpsert = generateRecords(5, 3); expect(recordsToUpsert).toHaveLength(3); expect(recordsToUpsert[0].id).toEqual('0'); diff --git a/src/integration/data/query.test.ts b/src/integration/data/query.test.ts index 91a0f2e7..899da1da 100644 --- a/src/integration/data/query.test.ts +++ b/src/integration/data/query.test.ts @@ -35,7 +35,7 @@ describe.skip('query', () => { await ns.deleteAll(); }); - test('query by id', async () => { + test.skip('query by id', async () => { const recordsToUpsert = generateRecords(5, 3); expect(recordsToUpsert).toHaveLength(3); @@ -54,7 +54,7 @@ describe.skip('query', () => { expect(results.matches?.length).toEqual(topK); }); - test('query when topK is greater than number of records', async () => { + test.skip('query when topK is greater than number of records', async () => { const numberOfRecords = 3; const recordsToUpsert = generateRecords(5, numberOfRecords); expect(recordsToUpsert).toHaveLength(3); @@ -71,7 +71,7 @@ describe.skip('query', () => { expect(results.matches?.length).toEqual(numberOfRecords); }); - test('with invalid id, returns empty results', async () => { + test.skip('with invalid id, returns empty results', async () => { const recordsToUpsert = generateRecords(5, 3); expect(recordsToUpsert).toHaveLength(3); expect(recordsToUpsert[0].id).toEqual('0'); @@ -87,7 +87,7 @@ describe.skip('query', () => { expect(results.matches?.length).toEqual(0); }); - test('query with vector values', async () => { + test.skip('query with vector values', async () => { const numberOfRecords = 3; const recordsToUpsert = generateRecords(5, numberOfRecords); expect(recordsToUpsert).toHaveLength(3);