Skip to content

Commit

Permalink
Add a unique schema for recreate pipeline test (#2159)
Browse files Browse the repository at this point in the history
## 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]
```
  • Loading branch information
andrewnester authored Jan 15, 2025
1 parent 30dec59 commit a002a24
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ variables:
description: The catalog the DLT pipeline should use.
default: main


resources:
pipelines:
foo:
Expand All @@ -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"
Expand Down

0 comments on commit a002a24

Please sign in to comment.