databricks / cli

Databricks CLI
Other
148 stars 56 forks source link

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

Closed shreyas-goenka closed 2 months ago

shreyas-goenka commented 3 months 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.