{afd}afd origin-group probe bug fix#31718
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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>
|
There was a problem hiding this comment.
Pull Request Overview
This PR addresses a bug fix for the AFD origin group probe functionality by updating the test scenarios and refining the health probe settings logic.
- Updated test cases to validate probe settings updates for AFD origin groups
- Modified health probe settings logic in custom_afdx.py to handle the enable flag and parameter serialization
- Removed inconsistent logic regarding the enable_health_probe flag assignment
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_group_scenarios.py | Added test checks and updated options for probe settings |
| src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py | Adjusted logic for health probe settings and added a debug print statement |
| enable_health_probe = False | ||
| else: | ||
| enable_health_probe = True | ||
| else: |
There was a problem hiding this comment.
The logic reassigns 'enable_health_probe' in multiple conditional blocks, which may lead to inconsistent behavior. Consider refactoring by computing 'enable_health_probe' once and using a consistent approach for updating probe settings.
src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
Description
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.