@fabricorg/databricks-testkit 0.2.4 → 0.4.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/README.md +31 -0
- package/dist/index.cjs +841 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +257 -1
- package/dist/index.d.ts +257 -1
- package/dist/index.js +821 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,6 +77,37 @@ configured and report `pass | fail | not-configured`; only IDs listed in
|
|
|
77
77
|
Auto Loader full refreshes require a distinct `DBX_TEST_AUTOLOADER_PIPELINE_ID`.
|
|
78
78
|
The check refuses to use `DBX_TEST_PIPELINE_ID`, protecting production telemetry.
|
|
79
79
|
|
|
80
|
+
## Typed target packs
|
|
81
|
+
|
|
82
|
+
Target packs bind a workload adapter, offline unit tests, live checks,
|
|
83
|
+
documentation, certification scope, and Quality Center metadata into one
|
|
84
|
+
versioned contract. Built-in packs cover SQL/Delta, Lakeflow ingestion,
|
|
85
|
+
Jobs/code, Unity Catalog storage, Apps operations, and Lakeflow Jobs
|
|
86
|
+
orchestration.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import {
|
|
90
|
+
builtinTargetPacks,
|
|
91
|
+
createTargetPackRegistry,
|
|
92
|
+
doctorTargetPack,
|
|
93
|
+
runTargetPack,
|
|
94
|
+
} from '@fabricorg/databricks-testkit';
|
|
95
|
+
|
|
96
|
+
const pack = createTargetPackRegistry(builtinTargetPacks).get('lakeflow-jobs');
|
|
97
|
+
if (!pack) throw new Error('lakeflow-jobs target pack is not installed');
|
|
98
|
+
const diagnosis = doctorTargetPack(pack, process.env);
|
|
99
|
+
if (!diagnosis.ready) throw new Error(diagnosis.missing.join(', '));
|
|
100
|
+
|
|
101
|
+
const evidence = await runTargetPack(pack, {
|
|
102
|
+
env: process.env,
|
|
103
|
+
live: true,
|
|
104
|
+
});
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The Lakeflow Jobs adapter models notebook, wheel, JAR, Spark Python, submit,
|
|
108
|
+
pipeline, SQL, dbt, nested-job, condition, and for-each tasks, including graph
|
|
109
|
+
validation, cancellation, repair, and task-level terminal-state assertions.
|
|
110
|
+
|
|
80
111
|
Docs: `apps/docs/content/docs/testing/` · Plan:
|
|
81
112
|
`.weave/plans/databricks-testing.md` · BDD layer: `@fabricorg/databricks-bdd`
|
|
82
113
|
(Phase 2).
|