databricks-cli/internal
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
..
acc Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
bugbash Add script to make testing of code on branches easier (#1844) 2024-10-21 17:56:17 +00:00
build Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
bundle Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
mocks Rewrite 'interface{} -> any' (#1959) 2024-12-05 15:37:24 +00:00
python Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
testcli Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
testdata Add support for non-Python ipynb notebooks to DABs (#1827) 2024-11-13 21:39:51 +00:00
testjsons Update Go SDK to 0.23.0 and use custom marshaller (#772) 2023-10-16 06:56:06 +00:00
testutil Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
alerts_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
api_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
auth_describe_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
clusters_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
completer_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
dashboard_assumptions_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
filer_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
fs_cat_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
fs_cp_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_ls_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_mkdir_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_rm_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
git_clone_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
git_fetch_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
helpers.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
init_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
jobs_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
locker_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
repos_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
secrets_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
storage_credentials_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
sync_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
tags_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00
unknown_command_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
version_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
workspace_test.go Move test helpers from internal to `acc` and `testutil` (#2008) 2024-12-12 21:28:04 +00:00