@fabricorg/databricks-testkit 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +23 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/package.json +12 -14
- package/LICENSE +0 -21
package/dist/index.cjs
CHANGED
|
@@ -2364,6 +2364,9 @@ var DatabricksAdvancedWorkloadsAdapter = class {
|
|
|
2364
2364
|
dashboard(id) {
|
|
2365
2365
|
return this.client.get(`/api/2.0/lakeview/dashboards/${segment(id)}`);
|
|
2366
2366
|
}
|
|
2367
|
+
publishedDashboard(id) {
|
|
2368
|
+
return this.client.get(`/api/2.0/lakeview/dashboards/${segment(id)}/published`);
|
|
2369
|
+
}
|
|
2367
2370
|
genieSpace(id) {
|
|
2368
2371
|
return this.client.get(`/api/2.0/genie/spaces/${segment(id)}`);
|
|
2369
2372
|
}
|
|
@@ -2525,11 +2528,18 @@ function aiBiDashboardCheck() {
|
|
|
2525
2528
|
description: "Published AI/BI dashboard is accessible",
|
|
2526
2529
|
configured: (env) => Boolean(env.DBX_TEST_DASHBOARD_ID),
|
|
2527
2530
|
async run({ env, client }) {
|
|
2528
|
-
const
|
|
2531
|
+
const api = adapter(client);
|
|
2532
|
+
const id = env.DBX_TEST_DASHBOARD_ID;
|
|
2533
|
+
const dashboard = await api.dashboard(id);
|
|
2529
2534
|
assertNotFailed("AI/BI dashboard", dashboard.lifecycle_state);
|
|
2535
|
+
const published = await api.publishedDashboard(id);
|
|
2536
|
+
if (!published.revision_create_time) {
|
|
2537
|
+
throw new Error(`AI/BI dashboard ${id} has no published revision`);
|
|
2538
|
+
}
|
|
2530
2539
|
return {
|
|
2531
|
-
dashboardId: dashboard.dashboard_id ??
|
|
2532
|
-
name: dashboard.display_name
|
|
2540
|
+
dashboardId: dashboard.dashboard_id ?? id,
|
|
2541
|
+
name: published.display_name ?? dashboard.display_name,
|
|
2542
|
+
publishedAt: published.revision_create_time
|
|
2533
2543
|
};
|
|
2534
2544
|
}
|
|
2535
2545
|
};
|
|
@@ -2833,7 +2843,7 @@ function regionalDrCheck(options = {}) {
|
|
|
2833
2843
|
|
|
2834
2844
|
// src/advanced-target-packs.ts
|
|
2835
2845
|
var DOCS2 = "https://experiments.fabric.pro/docs/testing/target-packs/";
|
|
2836
|
-
var
|
|
2846
|
+
var AZURE_M2M_SCOPE = "Azure Databricks, dedicated service principal using OAuth M2M, public network path; named managed or disposable certification fixtures";
|
|
2837
2847
|
var workspace = {
|
|
2838
2848
|
id: "workspace",
|
|
2839
2849
|
description: "Databricks workspace host",
|
|
@@ -2901,7 +2911,7 @@ function createAdvancedStreamingTargetPack() {
|
|
|
2901
2911
|
],
|
|
2902
2912
|
docsUrl: `${DOCS2}#advanced-streaming-cdc-and-lakeflow-connect`,
|
|
2903
2913
|
certificationScopes: [
|
|
2904
|
-
`${
|
|
2914
|
+
`${AZURE_M2M_SCOPE}; serverless Lakeflow pipeline AUTO CDC and query-based PostgreSQL foreign-catalog ingestion`
|
|
2905
2915
|
]
|
|
2906
2916
|
});
|
|
2907
2917
|
}
|
|
@@ -2910,7 +2920,7 @@ function createAiBiGenieTargetPack() {
|
|
|
2910
2920
|
id: "aibi-genie",
|
|
2911
2921
|
name: "AI/BI dashboards and Genie",
|
|
2912
2922
|
description: "Dashboard accessibility and authenticated Genie space/conversation behavior.",
|
|
2913
|
-
version: "0.
|
|
2923
|
+
version: "0.2.0",
|
|
2914
2924
|
maturity: "live-gated",
|
|
2915
2925
|
capabilities: ["aibi.dashboard", "genie.space", "genie.conversation"],
|
|
2916
2926
|
checks: () => [restrictedPrincipalCheck(), aiBiDashboardCheck(), genieCheck()],
|
|
@@ -2928,7 +2938,7 @@ function createAiBiGenieTargetPack() {
|
|
|
2928
2938
|
],
|
|
2929
2939
|
docsUrl: `${DOCS2}#aibi-dashboards-and-genie`,
|
|
2930
2940
|
certificationScopes: [
|
|
2931
|
-
`${
|
|
2941
|
+
`${AZURE_M2M_SCOPE}; published AI/BI dashboard revision and Genie conversation start`
|
|
2932
2942
|
]
|
|
2933
2943
|
});
|
|
2934
2944
|
}
|
|
@@ -2960,7 +2970,7 @@ function createMlflowLifecycleTargetPack() {
|
|
|
2960
2970
|
],
|
|
2961
2971
|
docsUrl: `${DOCS2}#mlflow-and-model-lifecycle`,
|
|
2962
2972
|
certificationScopes: [
|
|
2963
|
-
`${
|
|
2973
|
+
`${AZURE_M2M_SCOPE}; MLflow experiment and configured Unity Catalog model version`
|
|
2964
2974
|
]
|
|
2965
2975
|
});
|
|
2966
2976
|
}
|
|
@@ -2998,7 +3008,7 @@ function createFeatureEngineeringTargetPack() {
|
|
|
2998
3008
|
],
|
|
2999
3009
|
docsUrl: `${DOCS2}#feature-engineering-and-serving`,
|
|
3000
3010
|
certificationScopes: [
|
|
3001
|
-
`${
|
|
3011
|
+
`${AZURE_M2M_SCOPE}; Delta feature table, PostgreSQL-backed Synced Table, and SQL freshness`
|
|
3002
3012
|
]
|
|
3003
3013
|
});
|
|
3004
3014
|
}
|
|
@@ -3033,7 +3043,7 @@ function createModelServingTargetPack() {
|
|
|
3033
3043
|
],
|
|
3034
3044
|
docsUrl: `${DOCS2}#model-serving-and-ai-gateway`,
|
|
3035
3045
|
certificationScopes: [
|
|
3036
|
-
`${
|
|
3046
|
+
`${AZURE_M2M_SCOPE}; custom-model inference and AI Gateway inference-table configuration`
|
|
3037
3047
|
]
|
|
3038
3048
|
});
|
|
3039
3049
|
}
|
|
@@ -3063,7 +3073,7 @@ function createVectorRagAgentsTargetPack() {
|
|
|
3063
3073
|
],
|
|
3064
3074
|
docsUrl: `${DOCS2}#vector-search-rag-and-agents`,
|
|
3065
3075
|
certificationScopes: [
|
|
3066
|
-
`${
|
|
3076
|
+
`${AZURE_M2M_SCOPE}; Delta Sync vector retrieval and custom PyFunc agent invocation`
|
|
3067
3077
|
]
|
|
3068
3078
|
});
|
|
3069
3079
|
}
|
|
@@ -3097,7 +3107,7 @@ function createFederationSharingTargetPack() {
|
|
|
3097
3107
|
],
|
|
3098
3108
|
docsUrl: `${DOCS2}#federation-delta-sharing-and-clean-rooms`,
|
|
3099
3109
|
certificationScopes: [
|
|
3100
|
-
`${
|
|
3110
|
+
`${AZURE_M2M_SCOPE}; managed PostgreSQL federation, Delta Sharing table, and two-metastore Clean Room`
|
|
3101
3111
|
]
|
|
3102
3112
|
});
|
|
3103
3113
|
}
|
|
@@ -3133,7 +3143,7 @@ function createSecurityCostDrTargetPack() {
|
|
|
3133
3143
|
],
|
|
3134
3144
|
docsUrl: `${DOCS2}#networking-security-cost-and-regional-dr`,
|
|
3135
3145
|
certificationScopes: [
|
|
3136
|
-
`${
|
|
3146
|
+
`${AZURE_M2M_SCOPE}; TEST-NET block list, bounded compute policy, billing system-table guardrail, and West US 3 serverless DR warehouse`
|
|
3137
3147
|
]
|
|
3138
3148
|
});
|
|
3139
3149
|
}
|