databricks-cli/internal/bundle
Pieter Noordhuis 61b0c59137
Move test helpers from internal to `acc` and `testutil` (#2008)
## Changes

This change moves fixture helpers to `internal/acc/fixtures.go`. These
helpers create an ephemeral path or resource for the duration of a test.
Call sites are updated to use `acc.WorkspaceTest()` to construct a
workspace-focused test wrapper as needed.

This change also moves the `GetNodeTypeID()` function to `testutil`.

## Tests

n/a
2024-12-12 21:28:04 +00:00
..
bundles Fixed TestAccBundleDeployUcSchema test (#1997) 2024-12-11 14:00:43 +00:00
artifacts_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
basic_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
bind_resource_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
clusters_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
dashboards_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
deploy_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
deploy_then_remove_resources_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
deploy_to_shared_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
deployment_state_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
destroy_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
empty_bundle_test.go Use `acc.WorkspaceTest` helper from bundle integration tests (#1181) 2024-02-07 11:18:56 +00:00
environments_test.go Add error checking in tests and enable errcheck there (#1980) 2024-12-09 13:56:41 +01:00
generate_job_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
generate_pipeline_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
helpers.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
job_metadata_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
local_state_staleness_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
python_wheel_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
spark_jar_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
validate_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00