From a002a24e4133cbc033f0805cef1c75dda325c9d0 Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Wed, 15 Jan 2025 18:22:45 +0100 Subject: [PATCH] Add a unique schema for recreate pipeline test (#2159) ## Changes Pipeline backend requires `target` to be always specified. In order to do this we will create an unique schema as part of `TestBundlePipelineRecreateWithoutAutoApprove` test which will be used in pipelines ## Tests ``` helpers_test.go:148: stderr: Destroy complete! --- PASS: TestBundlePipelineRecreateWithoutAutoApprove (415.39s) PASS coverage: [no statements] ok github.com/databricks/cli/integration/bundle 416.141s coverage: [no statements] ``` --- .../recreate_pipeline/template/databricks.yml.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integration/bundle/bundles/recreate_pipeline/template/databricks.yml.tmpl b/integration/bundle/bundles/recreate_pipeline/template/databricks.yml.tmpl index 4ebeb2655..4ea687cf1 100644 --- a/integration/bundle/bundles/recreate_pipeline/template/databricks.yml.tmpl +++ b/integration/bundle/bundles/recreate_pipeline/template/databricks.yml.tmpl @@ -9,7 +9,6 @@ variables: description: The catalog the DLT pipeline should use. default: main - resources: pipelines: foo: @@ -19,6 +18,13 @@ resources: path: ./nb.sql development: true catalog: ${var.catalog} + target: ${resources.schemas.bar.id} + + schemas: + bar: + name: test-schema-{{.unique_id}} + catalog_name: ${var.catalog} + comment: This schema was created from DABs include: - "*.yml"