Conversation
️✔️AzureCLI-FullTest
|
|
Hi @nirnaymsft, |
❌AzureCLI-BreakingChangeTest
Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:
|
|
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>
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive test coverage for local DNS profile configuration in AKS node pools, including both valid and invalid configuration scenarios. The changes include removing extraneous blank lines from existing test files and adding new test files for local DNS profile functionality.
Key Changes
- Added new test file
test_localdns_profile.pywith unit tests for local DNS profile parsing and validation - Added extensive integration tests in
test_aks_commands.pycovering various local DNS configuration scenarios (valid/invalid modes, DNS overrides, updates) - Added test data files for different local DNS configuration scenarios
- Removed trailing blank lines from test files for consistency
Reviewed Changes
Copilot reviewed 34 out of 43 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test_managed_cluster_decorator.py | Removed extraneous blank lines |
| test_localdns_profile.py | New test file with unit tests for local DNS profile configuration parsing |
| test_aks_commands.py | Added 1400+ lines of integration tests for local DNS profile functionality |
| test_agentpool_decorator.py | Removed blank lines and added unit tests for local DNS profile update methods |
| test_aks_nodepool_update_localdns_required_to_localdnsconfig_with_extra_property_in_dnsOverrides.yaml | New test recording file |
| required_mode_with_valid_vnetdns.json | Test data for valid vnet DNS override configuration |
| required_mode_with_valid_kubedns.json | Test data for valid kube DNS override configuration |
| required_mode_partial_invalid.json | Test data for invalid partial DNS override configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py
Outdated
Show resolved
Hide resolved
- Clean up test files and recordings - Fix whitespace and formatting in source files - Remove unused test data files and recordings - Update test files to meet style requirements
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_localdns_profile.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Please fix CI issues |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 32392 in repo Azure/azure-cli |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py
Show resolved
Hide resolved
|
Please fix CI issues |
@yonzhan Fixed the PR Title. Can you please retrigger the check. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az aks nodepool
|
@FumingZhang, @yonzhan Can you trigger "Azure.azure-cli (Check the Format of Pull Request Title and Content)" again. |
|
please follow the guidance to rename your PR title to something like |
az aks nodepoolaz aks nodepool add/update: Add option --localdns-config to config local dns profile for the nodepool
|
@FumingZhang Changed. Thank you. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az aks nodepool add/update: Add option --localdns-config to config local dns profile for the nodepoolaz aks nodepool add/update: Add parameter --localdns-config to config local dns profile for the nodepool
This PR adds option
--localdns-configto config local dns profile for the nodepool ataz aks nodepool add/updatecliChanges
Testing