Skip to content

Commit 6d51c0e

Browse files
committed
chore(tests): require Redis for Slack authorization integration
1 parent e43c84c commit 6d51c0e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎apps/sim/lib/knowledge/__integration__/search-mcp-setup.integration.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,20 @@ import { defaultLiveSearchPolicy } from '@/lib/sim-search/live/policy-schema'
5555

5656
/**
5757
* Real authorization, PostgreSQL, Redis and token resolution; DNS and Slack HTTP use fixtures.
58-
* Run with TEST_DATABASE_URL naming a disposable database and pass
59-
* --outputFile.json="$SEARCH_MCP_SETUP_REPORT_PATH" for a caller-selected JSON report.
58+
* Run `bun run test:integration lib/knowledge/__integration__/search-mcp-setup.integration.ts`
59+
* with INTEGRATION_REPORT_PATH for a caller-selected JSON report. Direct Vitest runs require
60+
* TEST_DATABASE_URL and TEST_REDIS_URL naming disposable local services.
6061
*/
6162
describe('atomic organization live Search MCP setup', () => {
63+
const redisUrl = readTestRedisUrl()
6264
let restoreSlackHttp: (() => void) | undefined
6365
let ids: { organization: string; owner: string; member: string; outsider: string }
6466

6567
beforeAll(() => {
68+
if (!redisUrl)
69+
throw new Error(
70+
'Set TEST_REDIS_URL to a disposable local Redis or use bun run test:integration'
71+
)
6672
vi.spyOn(dns, 'resolveHostAddresses').mockImplementation(async (hostname) => {
6773
if (
6874
!['api.fireflies.ai', 'mcp.granola.ai', 'mcp.notion.com', 'mcp.lucid.app'].includes(
@@ -77,7 +83,7 @@ describe('atomic organization live Search MCP setup', () => {
7783
beforeEach(async () => {
7884
Object.assign(env, {
7985
ZOOM_SEARCH: false,
80-
REDIS_URL: readTestRedisUrl(),
86+
REDIS_URL: redisUrl,
8187
})
8288
ids = {
8389
organization: generateId(),

0 commit comments

Comments
 (0)