Conversation
|
Azurestack |
|
please make CI pass first |
|
@Juliehzl - All CI checks passed. Please review |
| ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2015-01-01', | ||
| ResourceType.MGMT_NETWORK_DNS: '2016-04-01', | ||
| ResourceType.MGMT_AUTHORIZATION: SDKProfile('2016-09-01', { | ||
| ResourceType.MGMT_AUTHORIZATION: SDKProfile('2015-07-01', { |
There was a problem hiding this comment.
Is there a downgrade for authorization?
There was a problem hiding this comment.
This is not a downgrade, This is a bug fix. In our earlier PR we have mistakenly updated the api version @Juliehzl
| from ._errors import CMK_MANAGED_IDENTITY_ERROR | ||
| _handle_error(CMK_MANAGED_IDENTITY_ERROR.format_error_message(registry_name), ignore_errors) | ||
| if cmd.supported_api_version(min_api='2020-11-01-preview', resource_type=ResourceType.MGMT_CONTAINERREGISTRY): # pylint: disable=too-many-nested-blocks | ||
| # CMK settings |
There was a problem hiding this comment.
please also add acr code owner to review your change
There was a problem hiding this comment.
@Bhuvaneswari-Santharam I tested this locally and it looks good. @northtyphoon we should consider adding some unit tests for acr check-health
adewaleo
left a comment
There was a problem hiding this comment.
Approved for ACR.
@Bhuvaneswari-Santharam I tested this locally and it looks good.
@northtyphoon we should consider adding some unit tests for acr check-health
|
@northtyphoon please add more unit tests as @adewaleo mentioned. |
@yonzhan, I was making this suggestion as a follow up item. Given |
FumingZhang
left a comment
There was a problem hiding this comment.
Need to update some recording files, since some of the tests failed.
.../command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_availability_zones_msi.yaml
Outdated
Show resolved
Hide resolved
...cs/tests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml
Outdated
Show resolved
Hide resolved
...ests/hybrid_2020_09_01/recordings/test_aks_create_aadv1_and_update_with_managed_aad_msi.yaml
Outdated
Show resolved
Hide resolved
...ure/cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas.yaml
Outdated
Show resolved
Hide resolved
...cli/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_blb_vmas_msi.yaml
Outdated
Show resolved
Hide resolved
...2020_09_01/recordings/test_aks_create_slb_vmss_with_default_mgd_outbound_ip_then_update.yaml
Outdated
Show resolved
Hide resolved
...i/command_modules/acs/tests/hybrid_2020_09_01/recordings/test_aks_create_fqdn_subdomain.yaml
Outdated
Show resolved
Hide resolved
...nd_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service.yaml
Outdated
Show resolved
Hide resolved
...les/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_default_service_no_aad.yaml
Outdated
Show resolved
Hide resolved
...nd_modules/acs/tests/hybrid_2020_09_01/recordings/test_openshift_create_service_no_wait.yaml
Outdated
Show resolved
Hide resolved
|
|
||
| # pylint: skip-file | ||
| import unittest | ||
| import mock |
There was a problem hiding this comment.
mock module is deprecated in azure cli. see #19024
FumingZhang
left a comment
There was a problem hiding this comment.
AKS test recordings looks good to me.
| from urllib import urlencode | ||
| import json | ||
| import unittest | ||
| import mock |
Description
Testing Guide
This 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.