Commit ba0a97c
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 <juanbe@microsoft.com>
Co-authored-by: Juan Diego Bencardino <jdbencardinop@unal.edu.co>1 parent 73eb087 commit ba0a97c
57 files changed
Lines changed: 48605 additions & 1021 deletions
File tree
- src/aks-preview
- azext_aks_preview
- tests/latest
- data/localdnsconfig
- recordings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
463 | 467 | | |
464 | 468 | | |
465 | 469 | | |
| |||
Lines changed: 74 additions & 86 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
943 | 1015 | | |
944 | 1016 | | |
945 | 1017 | | |
| |||
1452 | 1524 | | |
1453 | 1525 | | |
1454 | 1526 | | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
1487 | | - | |
1488 | | - | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
| 1527 | + | |
1498 | 1528 | | |
1499 | 1529 | | |
1500 | 1530 | | |
| |||
1794 | 1824 | | |
1795 | 1825 | | |
1796 | 1826 | | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
1805 | | - | |
1806 | | - | |
1807 | | - | |
1808 | | - | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
| 1827 | + | |
1840 | 1828 | | |
1841 | 1829 | | |
1842 | 1830 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments