feat: complete catalog fleet management workflow
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
import { setupServer } from "msw/node";
|
||||
import { http, HttpResponse } from "msw";
|
||||
import type { CatalogMetrics } from "../api/catalog-databases";
|
||||
|
||||
export const emptyCatalogMetricsFixture = {
|
||||
scope: "global",
|
||||
databaseId: null,
|
||||
tables: 0,
|
||||
columns: 0,
|
||||
sensitiveColumns: 0,
|
||||
relationships: 0,
|
||||
descriptionTargets: 0,
|
||||
describedTargets: 0,
|
||||
descriptionCoverage: 0,
|
||||
updatedAt: null,
|
||||
} satisfies CatalogMetrics;
|
||||
|
||||
export const server = setupServer(
|
||||
http.get("/api/auth/config", () => HttpResponse.json({ mode: "local", localLogin: true, oidcLogin: false })),
|
||||
http.get("/api/me", () => HttpResponse.json({
|
||||
@@ -11,6 +26,8 @@ export const server = setupServer(
|
||||
})),
|
||||
http.get("/api/health/dwh", () => HttpResponse.json({ ok: true, detail: "ok" })),
|
||||
http.get("/api/catalog/databases", () => HttpResponse.json([])),
|
||||
http.get("/api/catalog/metrics", () => HttpResponse.json(emptyCatalogMetricsFixture)),
|
||||
http.get("/api/catalog/metadata-generation/models", () => HttpResponse.json({ models: [], default: null })),
|
||||
http.get("/api/catalog/description-generation-runs", () => HttpResponse.json([])),
|
||||
http.get("/api/catalog/sensitive-data-suggestion-runs", () => HttpResponse.json([])),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user