databricks-cli/integration/bundle
Anton Nekipelov c0f5436a28
Add support for schemas in deployment bind/unbind commands (#2406)
## Changes
1. Changed `FindResourceByConfigKey` to return schema resources
2. Implemented the `Exists` method for schema resources

## Why
This PR adds support for schema resources in deployment operations,
enabling users to:
- Bind schemas using `databricks bundle deployment bind <myschema_key>
<schema_full_name>`
- Unbind schemas using `databricks bundle deployment unbind
<myschema_key>`

Where:
- `myschema_key` is a resource key defined in the bundle's .yml file
- `schema_full_name` references an existing schema in the Databricks
workspace

These capabilities allow for more flexible resource management of
schemas within bundles.

## Tests

Added a new integration test that tests bind and unbind methods together
with bundle deployment and destruction.
2025-03-04 12:46:39 +00:00
..
bundles Add support for schemas in deployment bind/unbind commands (#2406) 2025-03-04 12:46:39 +00:00
testdata Added a warning when `config` section is used in apps (#2416) 2025-03-03 16:40:28 +00:00
apps_test.go Update app deploy test to confirm app config changes on redeploy (#2301) 2025-02-07 14:54:24 +00:00
artifacts_test.go Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
basic_test.go Added support for double underscore variable references (#2203) 2025-01-29 13:38:28 +00:00
bind_resource_test.go Add support for schemas in deployment bind/unbind commands (#2406) 2025-03-04 12:46:39 +00:00
clusters_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
dashboards_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
deploy_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
deploy_then_remove_resources_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
deploy_to_shared_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
deployment_state_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
destroy_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
empty_bundle_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
environments_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
generate_job_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
generate_pipeline_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
helpers_test.go Refactor `bundle init` (#2074) 2025-01-20 12:09:28 +00:00
init_default_python_test.go test: Lock setuptools version in TestDefaultPython test (#2421) 2025-03-03 15:53:58 +00:00
init_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
job_metadata_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
local_state_staleness_test.go Move integration test helpers to `integration/internal` (#2022) 2024-12-17 08:45:58 +01:00
python_wheel_test.go Remove superfluous helper (#2028) 2024-12-17 17:34:09 +00:00
spark_jar_test.go Refactor TestSparkJarTask* tests to support test environments without Java 8 (#2385) 2025-02-28 08:39:21 +00:00
validate_test.go Remove calls to `testutil.GetEnvOrSkipTest(t, "CLOUD_ENV")` (#2014) 2024-12-13 16:09:51 +00:00