You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add LocalDNS Live Tests for valid and invalid scenarios (#9252)
* skip none overrides on localdns profile
* update history rst
* refactor to process dns overrides func
* move overrides function to helper file
* apply linter suggestions
* add localdnsconfig folder
* add more tests
* add new json files
* add default dns overrides
* add more test cases
* move tests around, move invalid cases to another file
* add back import semver
* reorder the existing tests
* delete preferred mode only
* delete null.json
* remove redundant json file
* remove redundant json file
* fix the mistake at line 3349
* forgot that i put all the configs in data/localconfig folder
* remove unused file
* spelling error
* fix default dnsOverrides check when we create agentpool with required mode only
* restore localdnsconfig file
* delete extra property case from invalid test file
* add extra property cases in src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py
* add extra property files
* check for defaulted *dnsOverrides when making agent pool with mode: required only
* comment out cleanup in test_aks_nodepool_add_with_localdns_required_mode
* add more logging for debugging
* add print statements in src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/operations/_agent_pools_operations.py for debugging
* only initialize the dictionaries if dnsoverrides are provided
* process dns overrides only when dns overrides are provided
* consolidate duplicated build_localdns_profile function
* move invalid cases to line 4133
* update test_aks_commands.py
* look for vnetDnsOverrides and kubeDNSOverrides keys, case-insensitive
* fix test_aks_nodepool_add_with_localdns_required_mode_single_vnetdns
* check for dictionary for build_override
* update failing test cases
* rename from required_mode_extra_property.json -> required_mode_kubedns_extra_property.json
* fix azdev style
* temporarily add self.fail statements s.t. i can see the error_message
* change from assertTrue to assertIn with more specific error msg, delete un-needed test case
* change from print to debug
* remove logger.debug line to print localdnsprofile
* add null config file
* fix the tests
* fix the tests
* update src/aks-preview/HISTORY.rst with a new note under 18.0.0b42
* update src/aks-preview/HISTORY.rst
* Revert "add print statements in src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/operations/_agent_pools_operations.py for debugging"
This reverts commit b747438.
* update src/aks-preview/HISTORY.rst
* Revert "add more logging for debugging"
This reverts commit 1786254.
* mix the casing for *dnsoverrides
* throw an exception from cli if the values of kubednsoverrides or vnetdnsoverrides are not type dict
* add tests for null and non-dict overrides
* make the keys of localdnsprofile mixed-case
* add required_mode_null_dnsOverrides.json and required_mode_number_dnsOverrides.json
* correct the error message I'm looking for, for non-dict dns overrides
* remove print stmt from src/aks-preview/azext_aks_preview/_helpers.py
* add check for DNS override settings
* update the test with dns override settings check
* update assertIn msg for test_aks_nodepool_add_with_localdns_required_mode_partial_invalid
* break down InvalidArgumentValueError msg into two lines
* update existing cassette files
* new cassette files for new tests
* add three additional cassette files I did not commit before
* expect InvalidArgumentValueError when None is provided for DNS overrides
* update AKSPreviewAgentPoolUpdateDecoratorCommonTestCase.common_update_localdns_profile
* revert the import statement for from azure.cli.command_modules.acs.tests.latest.mocks import
* Add a new line
* Revert "Add a new line"
This reverts commit 2c347c3.
* update version in src/aks-preview/setup.py to align with azure-cli-extensions/src/aks-preview/HISTORY.rst
---------
Co-authored-by: juanbe <[email protected]>
Co-authored-by: Juan Diego Bencardino <[email protected]>
Copy file name to clipboardExpand all lines: src/aks-preview/HISTORY.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,12 @@ To release a new version, please select a new version number (usually plus 1 to
12
12
Pending
13
13
+++++++
14
14
15
+
18.0.0b43
16
+
+++++++
17
+
* Fix `--localdns-config` parameter to handle null values and case-insensitive JSON keys in DNS override sections, preventing crashes with malformed localdns configuration files.
18
+
* Enhance `build_override` function to validate dictionary types and only initialize DNS overrides when present in localdns configuration (case-insensitive).
19
+
* Refactor `build_localdns_profile` function to eliminate code duplication between AgentPool add and update operations.
20
+
15
21
18.0.0b42
16
22
+++++++
17
23
* Fix role assignment failure when using azure-cli version >= `2.77.0`.
0 commit comments