Add WebDAV support to storage-cli client and improve test quality#4974
Open
Add WebDAV support to storage-cli client and improve test quality#4974
Conversation
Enable WebDAV/DAV provider support in StorageCliClient by adding 'dav'
to STORAGE_CLI_TYPES and mapping legacy 'webdav' provider name to 'dav'.
Test improvements:
- Add comprehensive tests for all legacy provider mappings (AzureRM,
AWS, Google, aliyun, webdav)
- Add test for native 'dav' storage-cli type
- Use begin/ensure blocks to prevent tempfile leaks on test failures
- Add helper methods (write_config_file, stub_config_for_droplets) to
reduce repetition
- Stub additional_flags in #run_cli tests for stability
- Fix test descriptions for accuracy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable WebDAV/DAV provider support in StorageCliClient by adding 'dav' to STORAGE_CLI_TYPES and mapping legacy 'webdav' provider name to 'dav'.
Needs cloudfoundry/capi-release#634 to be merged first.
Test improvements:
Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:
A short explanation of the proposed change:
Add 'dav' to the list of supported storage-cli types and map the legacy 'webdav' provider name to 'dav', enabling CCNG to use storage-cli with WebDAV blobstores.
An explanation of the use cases your change solves
Enable WebDAV blobstore support:
Allows Cloud Controller to use storage-cli with WebDAV blobstores (previously only Azure, AWS, Google, and Aliyun were supported). This completes the set of supported providers for CAPI's
storage-cli adoption.
Support legacy fog configurations:
Enables operators to migrate existing CAPI deployments that use fog with 'webdav' provider to storage-cli without changing their manifest configuration. The legacy 'webdav' provider name is
automatically mapped to the native 'dav' storage-cli type.
Unblock CAPI migration from fog:
Removes the last blocker for migrating CAPI blobstore operations from the fog gem to storage-cli
Links to any other associated PRs
Refactor DAV client, add missing operations storage-cli#70
Enhance storage-cli webdav config capi-release#634
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
mainbranchI have run all the unit tests using
bundle exec rakeI have run CF Acceptance Tests