@fabricorg/databricks-testkit 0.5.0 → 0.6.0
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/LICENSE +21 -0
- package/dist/index.cjs +25 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -11
- package/dist/index.js.map +1 -1
- package/package.json +13 -11
package/dist/index.js
CHANGED
|
@@ -2037,12 +2037,21 @@ function lakeflowConnectCheck() {
|
|
|
2037
2037
|
const id = env.DBX_TEST_CONNECT_PIPELINE_ID;
|
|
2038
2038
|
const pipeline = await adapter(client).pipeline(id);
|
|
2039
2039
|
assertNotFailed("Lakeflow Connect pipeline", pipeline.state);
|
|
2040
|
+
const ingestion = pipeline.spec?.ingestion_definition;
|
|
2041
|
+
if (!ingestion || !Array.isArray(ingestion.objects) || ingestion.objects.length === 0) {
|
|
2042
|
+
throw new Error("Lakeflow Connect pipeline has no managed ingestion definition");
|
|
2043
|
+
}
|
|
2040
2044
|
await booleanSql(
|
|
2041
2045
|
"Lakeflow Connect replication",
|
|
2042
2046
|
env.DBX_TEST_CONNECT_ASSERTION_SQL,
|
|
2043
2047
|
warehouse2.query
|
|
2044
2048
|
);
|
|
2045
|
-
return {
|
|
2049
|
+
return {
|
|
2050
|
+
pipelineId: pipeline.pipeline_id ?? id,
|
|
2051
|
+
state: pipeline.state ?? "IDLE",
|
|
2052
|
+
sourceType: ingestion.source_type ?? "MANAGED_INGESTION",
|
|
2053
|
+
objects: ingestion.objects.length
|
|
2054
|
+
};
|
|
2046
2055
|
}
|
|
2047
2056
|
};
|
|
2048
2057
|
}
|
|
@@ -2360,7 +2369,6 @@ function regionalDrCheck(options = {}) {
|
|
|
2360
2369
|
|
|
2361
2370
|
// src/advanced-target-packs.ts
|
|
2362
2371
|
var DOCS2 = "https://experiments.fabric.pro/docs/testing/target-packs/";
|
|
2363
|
-
var SHIPPED_SCOPE = "Typed adapter and offline contract tests shipped; live certification requires customer-owned test resources";
|
|
2364
2372
|
var AZURE_USER_SCOPE = "Azure Databricks, West US, interactive user OAuth, public network path; existing certification fixtures";
|
|
2365
2373
|
var workspace = {
|
|
2366
2374
|
id: "workspace",
|
|
@@ -2394,8 +2402,8 @@ function createAdvancedStreamingTargetPack() {
|
|
|
2394
2402
|
id: "streaming-cdc-connect",
|
|
2395
2403
|
name: "Advanced streaming, CDC and Lakeflow Connect",
|
|
2396
2404
|
description: "Streaming tables, pipeline health, CDC correctness, freshness and managed connector replication.",
|
|
2397
|
-
version: "
|
|
2398
|
-
maturity: "
|
|
2405
|
+
version: "1.0.0",
|
|
2406
|
+
maturity: "live-gated",
|
|
2399
2407
|
capabilities: [
|
|
2400
2408
|
"streaming.tables",
|
|
2401
2409
|
"streaming.freshness",
|
|
@@ -2428,7 +2436,9 @@ function createAdvancedStreamingTargetPack() {
|
|
|
2428
2436
|
)
|
|
2429
2437
|
],
|
|
2430
2438
|
docsUrl: `${DOCS2}#advanced-streaming-cdc-and-lakeflow-connect`,
|
|
2431
|
-
certificationScopes: [
|
|
2439
|
+
certificationScopes: [
|
|
2440
|
+
`${AZURE_USER_SCOPE}; serverless Lakeflow pipeline AUTO CDC and query-based PostgreSQL foreign-catalog ingestion`
|
|
2441
|
+
]
|
|
2432
2442
|
});
|
|
2433
2443
|
}
|
|
2434
2444
|
function createAiBiGenieTargetPack() {
|
|
@@ -2598,8 +2608,8 @@ function createFederationSharingTargetPack() {
|
|
|
2598
2608
|
id: "federation-sharing-cleanrooms",
|
|
2599
2609
|
name: "Federation, Delta Sharing and Clean Rooms",
|
|
2600
2610
|
description: "Federated connection, data-plane query, Delta Share and Clean Room governance access.",
|
|
2601
|
-
version: "
|
|
2602
|
-
maturity: "
|
|
2611
|
+
version: "1.0.0",
|
|
2612
|
+
maturity: "live-gated",
|
|
2603
2613
|
capabilities: [
|
|
2604
2614
|
"federation.connections",
|
|
2605
2615
|
"federation.query",
|
|
@@ -2622,7 +2632,9 @@ function createFederationSharingTargetPack() {
|
|
|
2622
2632
|
)
|
|
2623
2633
|
],
|
|
2624
2634
|
docsUrl: `${DOCS2}#federation-delta-sharing-and-clean-rooms`,
|
|
2625
|
-
certificationScopes: [
|
|
2635
|
+
certificationScopes: [
|
|
2636
|
+
`${AZURE_USER_SCOPE}; managed PostgreSQL federation, Delta Sharing table, and two-metastore Clean Room`
|
|
2637
|
+
]
|
|
2626
2638
|
});
|
|
2627
2639
|
}
|
|
2628
2640
|
function createSecurityCostDrTargetPack() {
|
|
@@ -2630,8 +2642,8 @@ function createSecurityCostDrTargetPack() {
|
|
|
2630
2642
|
id: "security-cost-dr",
|
|
2631
2643
|
name: "Networking, security posture, cost and regional DR",
|
|
2632
2644
|
description: "IP controls, compute policy, cost guardrail and authenticated secondary-region readiness.",
|
|
2633
|
-
version: "
|
|
2634
|
-
maturity: "
|
|
2645
|
+
version: "1.0.0",
|
|
2646
|
+
maturity: "live-gated",
|
|
2635
2647
|
capabilities: [
|
|
2636
2648
|
"network.ip-access",
|
|
2637
2649
|
"security.compute-policy",
|
|
@@ -2656,7 +2668,9 @@ function createSecurityCostDrTargetPack() {
|
|
|
2656
2668
|
requirement("dr-assertion", "Secondary-region workload SQL", "DBX_TEST_DR_ASSERTION_SQL")
|
|
2657
2669
|
],
|
|
2658
2670
|
docsUrl: `${DOCS2}#networking-security-cost-and-regional-dr`,
|
|
2659
|
-
certificationScopes: [
|
|
2671
|
+
certificationScopes: [
|
|
2672
|
+
`${AZURE_USER_SCOPE}; TEST-NET block list, bounded compute policy, billing system-table guardrail, and West US 3 serverless DR warehouse`
|
|
2673
|
+
]
|
|
2660
2674
|
});
|
|
2661
2675
|
}
|
|
2662
2676
|
function createAdvancedTargetPacks() {
|