@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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fabric
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -2501,12 +2501,21 @@ function lakeflowConnectCheck() {
|
|
|
2501
2501
|
const id = env.DBX_TEST_CONNECT_PIPELINE_ID;
|
|
2502
2502
|
const pipeline = await adapter(client).pipeline(id);
|
|
2503
2503
|
assertNotFailed("Lakeflow Connect pipeline", pipeline.state);
|
|
2504
|
+
const ingestion = pipeline.spec?.ingestion_definition;
|
|
2505
|
+
if (!ingestion || !Array.isArray(ingestion.objects) || ingestion.objects.length === 0) {
|
|
2506
|
+
throw new Error("Lakeflow Connect pipeline has no managed ingestion definition");
|
|
2507
|
+
}
|
|
2504
2508
|
await booleanSql(
|
|
2505
2509
|
"Lakeflow Connect replication",
|
|
2506
2510
|
env.DBX_TEST_CONNECT_ASSERTION_SQL,
|
|
2507
2511
|
warehouse2.query
|
|
2508
2512
|
);
|
|
2509
|
-
return {
|
|
2513
|
+
return {
|
|
2514
|
+
pipelineId: pipeline.pipeline_id ?? id,
|
|
2515
|
+
state: pipeline.state ?? "IDLE",
|
|
2516
|
+
sourceType: ingestion.source_type ?? "MANAGED_INGESTION",
|
|
2517
|
+
objects: ingestion.objects.length
|
|
2518
|
+
};
|
|
2510
2519
|
}
|
|
2511
2520
|
};
|
|
2512
2521
|
}
|
|
@@ -2824,7 +2833,6 @@ function regionalDrCheck(options = {}) {
|
|
|
2824
2833
|
|
|
2825
2834
|
// src/advanced-target-packs.ts
|
|
2826
2835
|
var DOCS2 = "https://experiments.fabric.pro/docs/testing/target-packs/";
|
|
2827
|
-
var SHIPPED_SCOPE = "Typed adapter and offline contract tests shipped; live certification requires customer-owned test resources";
|
|
2828
2836
|
var AZURE_USER_SCOPE = "Azure Databricks, West US, interactive user OAuth, public network path; existing certification fixtures";
|
|
2829
2837
|
var workspace = {
|
|
2830
2838
|
id: "workspace",
|
|
@@ -2858,8 +2866,8 @@ function createAdvancedStreamingTargetPack() {
|
|
|
2858
2866
|
id: "streaming-cdc-connect",
|
|
2859
2867
|
name: "Advanced streaming, CDC and Lakeflow Connect",
|
|
2860
2868
|
description: "Streaming tables, pipeline health, CDC correctness, freshness and managed connector replication.",
|
|
2861
|
-
version: "
|
|
2862
|
-
maturity: "
|
|
2869
|
+
version: "1.0.0",
|
|
2870
|
+
maturity: "live-gated",
|
|
2863
2871
|
capabilities: [
|
|
2864
2872
|
"streaming.tables",
|
|
2865
2873
|
"streaming.freshness",
|
|
@@ -2892,7 +2900,9 @@ function createAdvancedStreamingTargetPack() {
|
|
|
2892
2900
|
)
|
|
2893
2901
|
],
|
|
2894
2902
|
docsUrl: `${DOCS2}#advanced-streaming-cdc-and-lakeflow-connect`,
|
|
2895
|
-
certificationScopes: [
|
|
2903
|
+
certificationScopes: [
|
|
2904
|
+
`${AZURE_USER_SCOPE}; serverless Lakeflow pipeline AUTO CDC and query-based PostgreSQL foreign-catalog ingestion`
|
|
2905
|
+
]
|
|
2896
2906
|
});
|
|
2897
2907
|
}
|
|
2898
2908
|
function createAiBiGenieTargetPack() {
|
|
@@ -3062,8 +3072,8 @@ function createFederationSharingTargetPack() {
|
|
|
3062
3072
|
id: "federation-sharing-cleanrooms",
|
|
3063
3073
|
name: "Federation, Delta Sharing and Clean Rooms",
|
|
3064
3074
|
description: "Federated connection, data-plane query, Delta Share and Clean Room governance access.",
|
|
3065
|
-
version: "
|
|
3066
|
-
maturity: "
|
|
3075
|
+
version: "1.0.0",
|
|
3076
|
+
maturity: "live-gated",
|
|
3067
3077
|
capabilities: [
|
|
3068
3078
|
"federation.connections",
|
|
3069
3079
|
"federation.query",
|
|
@@ -3086,7 +3096,9 @@ function createFederationSharingTargetPack() {
|
|
|
3086
3096
|
)
|
|
3087
3097
|
],
|
|
3088
3098
|
docsUrl: `${DOCS2}#federation-delta-sharing-and-clean-rooms`,
|
|
3089
|
-
certificationScopes: [
|
|
3099
|
+
certificationScopes: [
|
|
3100
|
+
`${AZURE_USER_SCOPE}; managed PostgreSQL federation, Delta Sharing table, and two-metastore Clean Room`
|
|
3101
|
+
]
|
|
3090
3102
|
});
|
|
3091
3103
|
}
|
|
3092
3104
|
function createSecurityCostDrTargetPack() {
|
|
@@ -3094,8 +3106,8 @@ function createSecurityCostDrTargetPack() {
|
|
|
3094
3106
|
id: "security-cost-dr",
|
|
3095
3107
|
name: "Networking, security posture, cost and regional DR",
|
|
3096
3108
|
description: "IP controls, compute policy, cost guardrail and authenticated secondary-region readiness.",
|
|
3097
|
-
version: "
|
|
3098
|
-
maturity: "
|
|
3109
|
+
version: "1.0.0",
|
|
3110
|
+
maturity: "live-gated",
|
|
3099
3111
|
capabilities: [
|
|
3100
3112
|
"network.ip-access",
|
|
3101
3113
|
"security.compute-policy",
|
|
@@ -3120,7 +3132,9 @@ function createSecurityCostDrTargetPack() {
|
|
|
3120
3132
|
requirement("dr-assertion", "Secondary-region workload SQL", "DBX_TEST_DR_ASSERTION_SQL")
|
|
3121
3133
|
],
|
|
3122
3134
|
docsUrl: `${DOCS2}#networking-security-cost-and-regional-dr`,
|
|
3123
|
-
certificationScopes: [
|
|
3135
|
+
certificationScopes: [
|
|
3136
|
+
`${AZURE_USER_SCOPE}; TEST-NET block list, bounded compute policy, billing system-table guardrail, and West US 3 serverless DR warehouse`
|
|
3137
|
+
]
|
|
3124
3138
|
});
|
|
3125
3139
|
}
|
|
3126
3140
|
function createAdvancedTargetPacks() {
|