Skip to content

Commit bbd8c0e

Browse files
authored
Revert checking for test namespaces to be set (#65)
* patched case of auth method not present in provider info * updated vectorize_credentials.example.json * updated test spec structure * vectorize_credentials => vectorize_test_spec * fixed couple bugs in test filtering * updated test script helpstring a bit * updated vectorize_test_spec structure in the DEVGUIDE * fixed minor typo in DEVGUIDE * fixed another minor typo in DEVGUIDE * fixed another minor typo in DEVGUIDE * holy crap I can't stop making typos * updated test script helpstring a bit in DEVGUIDE * updated devguide to talk about vectorize whitelist * minor addition to running vectorize tests int he DEVGUIDE * sdafkljdsal;kfjsdaklf * so many commits... * running out of things to say... may be time to use whatthecommit * not like anyone's gonna read these anyways... * pointless limitation * [FIX] asdf * I __ a word * removed other_keyspace test check * Fucking templates.
1 parent 416c84d commit bbd8c0e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/prelude.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ import { DEFAULT_NAMESPACE } from '@/src/api';
1818
before(async () => {
1919
const [, db] = await initTestObjects();
2020

21-
const admin = (ENVIRONMENT === 'astra')
22-
? db.admin({ environment: ENVIRONMENT })
23-
: db.admin({ environment: ENVIRONMENT });
24-
25-
const namespaces = await admin.listNamespaces();
26-
27-
if (!namespaces.includes(DEFAULT_NAMESPACE) || !namespaces.includes(OTHER_NAMESPACE)) {
28-
throw new Error(`Missing required namespace(s)... make sure you have both ${DEFAULT_NAMESPACE} and ${OTHER_NAMESPACE}`);
29-
}
30-
3121
await db.createCollection(DEFAULT_COLLECTION_NAME, { vector: { dimension: 5, metric: 'cosine' }, checkExists: false, namespace: OTHER_NAMESPACE })
3222
.then(c => c.deleteMany({}));
3323

0 commit comments

Comments
 (0)