databricks-cli/bundle/deploy/terraform
shreyas-goenka 096123674a
Fix streaming of stdout, stdin, stderr in cobra test runner (#1742)
## Changes
We were not using the readers and writers set in the test fixtures in
the progress logger. This PR fixes that. It also modifies
`TestAccAbortBind`, which was implicitly relying on the bug.

I encountered this bug while working on
https://github.com/databricks/cli/pull/1672.

## Tests
Manually. 

From non-tty:
```
Error: failed to bind the resource, err: This bind operation requires user confirmation, but the current console does not support prompting. Please specify --auto-approve if you would like to skip prompts and proceed.
```

From tty, bind works as expected.
```
Confirm import changes? Changes will be remotely applied only after running 'bundle deploy'. [y/n]: y
Updating deployment state...
Successfully bound databricks_pipeline with an id '9d2dedbb-f522-4503-96ba-4bc4d5bfa77d'. Run 'bundle deploy' to deploy changes to your workspace
```
2024-09-02 13:43:17 +00:00
..
tfdyn Add resource for UC schemas to DABs (#1413) 2024-07-31 12:16:28 +00:00
apply.go Use precomputed terraform plan for `bundle deploy` (#1640) 2024-07-31 14:07:25 +00:00
check_running_resources.go Don't merge-in remote resources during depolyments (#1432) 2024-05-15 12:41:44 +00:00
check_running_resources_test.go Don't merge-in remote resources during depolyments (#1432) 2024-05-15 12:41:44 +00:00
convert.go Add resource for UC schemas to DABs (#1413) 2024-07-31 12:16:28 +00:00
convert_test.go Add resource for UC schemas to DABs (#1413) 2024-07-31 12:16:28 +00:00
dir.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
import.go Fix streaming of stdout, stdin, stderr in cobra test runner (#1742) 2024-09-02 13:43:17 +00:00
init.go Pass along $AZURE_CONFIG_FILE to Terraform process (#1734) 2024-08-29 14:41:12 +00:00
init_test.go Pass along $AZURE_CONFIG_FILE to Terraform process (#1734) 2024-08-29 14:41:12 +00:00
interpolate.go Add resource for UC schemas to DABs (#1413) 2024-07-31 12:16:28 +00:00
interpolate_test.go Add resource for UC schemas to DABs (#1413) 2024-07-31 12:16:28 +00:00
load.go Don't fail while parsing outdated terraform state (#1404) 2024-05-01 08:22:35 +00:00
load_test.go Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00
pkg.go Followup improvements to the Docker setup script (#1369) 2024-04-18 20:52:11 +00:00
pkg_test.go Followup improvements to the Docker setup script (#1369) 2024-04-18 20:52:11 +00:00
plan.go Move to a single prompt during bundle destroy (#1583) 2024-07-24 13:02:19 +00:00
state_pull.go Use local Terraform state only when lineage match (#1588) 2024-07-18 09:47:59 +00:00
state_pull_test.go Use local Terraform state only when lineage match (#1588) 2024-07-18 09:47:59 +00:00
state_push.go Use precomputed terraform plan for `bundle deploy` (#1640) 2024-07-31 14:07:25 +00:00
state_push_test.go Use local Terraform state only when lineage match (#1588) 2024-07-18 09:47:59 +00:00
state_test.go Use local Terraform state only when lineage match (#1588) 2024-07-18 09:47:59 +00:00
unbind.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
util.go Use local Terraform state only when lineage match (#1588) 2024-07-18 09:47:59 +00:00
util_test.go Use local Terraform state only when lineage match (#1588) 2024-07-18 09:47:59 +00:00
write.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00