databricks-cli/libs/filer
shreyas-goenka a4c1ba3e28
Use API mocks for duplicate path errors in workspace files extensions client (#1690)
## Changes
`TestAccFilerWorkspaceFilesExtensionsErrorsOnDupName` recently started
failing in our nightlies because the upstream `import` API was changed
to [prohibit conflicting file
paths](https://docs.databricks.com/en/release-notes/product/2024/august.html#files-can-no-longer-have-identical-names-in-workspace-folders).
Because existing conflicting file paths can still be grandfathered in,
we need to retain coverage for the test. To do this, this PR:
1. Removes the failing
`TestAccFilerWorkspaceFilesExtensionsErrorsOnDupName`
2. Add an equivalent unit test with the `list` and `get-status` API
calls mocked.
2024-08-21 07:45:25 +00:00
..
completer Add command line autocomplete to the fs commands (#1622) 2024-08-09 09:40:25 +00:00
dbfs_client.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
fake_filer.go Add command line autocomplete to the fs commands (#1622) 2024-08-09 09:40:25 +00:00
filer.go Correctly overwrite local state if remote state is newer (#1008) 2023-11-24 11:15:46 +00:00
files_client.go [Fix] Do not buffer files in memory when downloading (#1599) 2024-07-17 07:14:02 +00:00
fs.go Add fs.FS adapter for the filer interface (#422) 2023-06-02 12:49:59 +00:00
fs_test.go Add command line autocomplete to the fs commands (#1622) 2024-08-09 09:40:25 +00:00
local_client.go Update error checks that use the `os` package to use `errors.Is` (#1461) 2024-06-03 12:39:36 +00:00
local_root_path.go Remove unnecessary `filepath.FromSlash` calls (#1458) 2024-05-29 15:30:26 +00:00
local_root_path_test.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
slice.go Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
slice_test.go Abstract over file handling with WSFS or DBFS through filer interface (#135) 2022-12-14 15:37:14 +01:00
workspace_files_cache.go Implement readahead cache for Workspace API calls (#1582) 2024-07-18 09:45:10 +00:00
workspace_files_cache_test.go Add tests for the Workspace API readahead cache (#1605) 2024-07-19 07:03:25 +00:00
workspace_files_client.go Use API mocks for duplicate path errors in workspace files extensions client (#1690) 2024-08-21 07:45:25 +00:00
workspace_files_client_test.go Move bespoke status call to main workspace files filer (#1570) 2024-07-05 11:32:29 +00:00
workspace_files_extensions_client.go Use API mocks for duplicate path errors in workspace files extensions client (#1690) 2024-08-21 07:45:25 +00:00
workspace_files_extensions_client_test.go Use API mocks for duplicate path errors in workspace files extensions client (#1690) 2024-08-21 07:45:25 +00:00
workspace_root_path.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
workspace_root_path_test.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00