Files
FastGPT/test/integrationTest/vectorDB/opengauss/index.integration.test.ts
T
yanzhicong d23c72690e feat: add openGauss DataVec as vector database backend (#6666)
* feat: add openGauss DataVec as vector database backend

Add openGauss with DataVec extension as a new vector storage option alongside PGVector and Milvus. Includes vector DB controller, Docker Compose deployment configs (CN/Global), deploy generation scripts, and test templates.

* test: add opengauss vectorDB integration entry

* test: adjust vector env template for opengauss run

* fix: ts

---------

Co-authored-by: archer <545436317@qq.com>
2026-04-13 20:41:33 +08:00

16 lines
560 B
TypeScript

import { describe, vi } from 'vitest';
import { createVectorDBTestSuite } from '../testSuites';
// Unmock vector controllers for integration tests
vi.unmock('@fastgpt/service/common/vectorDB/opengauss');
vi.unmock('@fastgpt/service/common/vectorDB/constants');
import { OpenGaussVectorCtrl } from '@fastgpt/service/common/vectorDB/opengauss';
const isEnabled = Boolean(process.env.OPENGAUSS_URL);
describe.skipIf(!isEnabled)('OpenGauss Vector Integration', () => {
const vectorCtrl = new OpenGaussVectorCtrl();
createVectorDBTestSuite(vectorCtrl);
});