forked from EduCraft/curriculum-project-hub
fix(hub): give integration tests skill-store root and portable DB URL
Admin routes always construct OrganizationAgentConfiguration via readSkillStoreRoot(); CI and local runs without HUB_SKILL_STORE_ROOT failed open. Seed a tmp root when unset. Also make preflight CLI tests honor DATABASE_URL and set the skill-store env in hub-check.
This commit is contained in:
@@ -16,7 +16,9 @@ import { ProviderConnectionService } from "../../src/connections/providerConnect
|
||||
import { FeishuApplicationConnectionService } from "../../src/connections/feishuApplicationConnections.js";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
const TEST_DATABASE_URL = "postgresql://paradigm:paradigm@127.0.0.1:5432/cph_hub_test";
|
||||
const TEST_DATABASE_URL =
|
||||
process.env.DATABASE_URL?.trim() ||
|
||||
"postgresql://paradigm:paradigm@127.0.0.1:5432/cph_hub_test";
|
||||
|
||||
describe("deployment preflight CLI", { timeout: 20_000 }, () => {
|
||||
let root: string;
|
||||
|
||||
Reference in New Issue
Block a user