databricks-cli/internal/testutil
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
..
cloud.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
copy.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
env.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
file.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
helpers.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
interface.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
jdk.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
requirement.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
testutil_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00