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]
```
This commit is contained in:
Andrew Nester 2025-01-15 18:22:45 +01:00 committed by GitHub
parent 30dec59781
commit a002a24e41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,6 @@ variables:
description: The catalog the DLT pipeline should use. description: The catalog the DLT pipeline should use.
default: main default: main
resources: resources:
pipelines: pipelines:
foo: foo:
@ -19,6 +18,13 @@ resources:
path: ./nb.sql path: ./nb.sql
development: true development: true
catalog: ${var.catalog} 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: include:
- "*.yml" - "*.yml"