Skip to content

Commit

Permalink
add additional skips for unhandled integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Nov 30, 2023
1 parent fa0db5a commit 2783f00
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/integration/control/configureIndex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions src/integration/data/deleteMany.test.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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');
Expand Down
8 changes: 4 additions & 4 deletions src/integration/data/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand All @@ -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');
Expand All @@ -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);
Expand Down

0 comments on commit 2783f00

Please sign in to comment.