redisenterprise: add test-connection command to address a common supportability ask #9490
Conversation
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| redisenterprise test-connection | cmd redisenterprise test-connection added |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
Hi @yugangw-msft, |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
CodeGen Tools Feedback CollectionThank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey |
|
There was a problem hiding this comment.
Pull request overview
This PR adds a new test-connection command to the Azure CLI redisenterprise extension to help users verify connectivity to Redis Enterprise clusters. This addresses a common supportability request by providing a diagnostic tool that can test connections using either Entra ID authentication or access key authentication.
Key changes:
- Adds a new
test-connectioncommand that performs write/read/delete operations to verify Redis connectivity - Implements support for two authentication methods: Entra ID and access keys
- Adds the redis package as a dependency to enable Redis client functionality
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/redisenterprise/setup.py | Adds redis package dependency for Redis client functionality |
| src/redisenterprise/azext_redisenterprise/custom.py | Implements connection testing logic with helper functions for creating Redis connections and performing test operations |
| src/redisenterprise/azext_redisenterprise/commands.py | Registers the new test-connection command |
| src/redisenterprise/azext_redisenterprise/_params.py | Defines command parameters including authentication method options |
| src/redisenterprise/azext_redisenterprise/_help.py | Adds help documentation and usage examples for the new command |
7f1819d to
8f61ef6
Compare
|
[Release] Update index.json for extension [ redisenterprise-1.4.0 ] : https://dev.azure.com/msazure/One/_build/results?buildId=151464481&view=results |
…ortability ask (Azure#9490) * add test-connection command * update version
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.