databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Use API mocks for duplicate path errors in workspace files extensions client #1690

Closed shreyas-goenka closed 1 month ago

shreyas-goenka commented 1 month ago

Changes

TestAccFilerWorkspaceFilesExtensionsErrorsOnDupName recently started failing in our nightlies because the upstream import API was changed to prohibit conflicting file paths. 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.