Skip to content

Commit a002a24

Browse files
authored
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] ```
1 parent 30dec59 commit a002a24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

integration/bundle/bundles/recreate_pipeline/template/databricks.yml.tmpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ variables:
99
description: The catalog the DLT pipeline should use.
1010
default: main
1111

12-
1312
resources:
1413
pipelines:
1514
foo:
@@ -19,6 +18,13 @@ resources:
1918
path: ./nb.sql
2019
development: true
2120
catalog: ${var.catalog}
21+
target: ${resources.schemas.bar.id}
22+
23+
schemas:
24+
bar:
25+
name: test-schema-{{.unique_id}}
26+
catalog_name: ${var.catalog}
27+
comment: This schema was created from DABs
2228

2329
include:
2430
- "*.yml"

0 commit comments

Comments
 (0)