databricks-cli/internal/bundle/bundles
shreyas-goenka fe32c46dc8
Make bundle deploy work if no resources are defined (#767)
## Changes

This PR sets "resource" to nil in the terraform representation if no
resources are defined in the bundle configuration. This solves two
problems:

1. Makes bundle deploy work without any resources specified. 
2. Previously if a `resources` block was removed after a deployment,
that would fail with an error. Now the resources would get destroyed as
expected.

Also removes `TerraformHasNoResources` which is no longer needed.

## Tests
New e2e tests.
2023-09-13 22:50:37 +00:00
..
deploy_then_remove_resources Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
empty_bundle Make bundle deploy work if no resources are defined (#767) 2023-09-13 22:50:37 +00:00
python_wheel_task Use unique bundle root path for Python E2E test (#748) 2023-09-08 09:19:55 +00:00