Skip to main content
Glama
setup.ts974 B
/** * Integration Test Setup * * Global setup and configuration for integration tests. * Sets environment variables and validates test cluster connection. */ import * as fs from 'fs'; import * as path from 'path'; import { beforeAll } from 'vitest'; // Ensure we're using the test kubeconfig const testKubeconfig = path.join(process.cwd(), 'kubeconfig-test.yaml'); process.env.KUBECONFIG = testKubeconfig; // Configure test Qdrant instance (port 6335 to avoid conflicts) process.env.QDRANT_URL = 'http://localhost:6335'; // Enable debug mode for better test diagnostics process.env.DEBUG_DOT_AI = 'true'; // Verify test kubeconfig exists before running tests beforeAll(() => { if (!fs.existsSync(testKubeconfig)) { throw new Error( `Test kubeconfig not found at ${testKubeconfig}.\n` + 'Run "npm run test:integration:setup" to create the test cluster first.' ); } console.log(`Integration tests using kubeconfig: ${testKubeconfig}`); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vfarcic/dot-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server