{Role} Bump ResourceType.MGMT_AUTHORIZATION to 2020-04-01-preview#14317
{Role} Bump ResourceType.MGMT_AUTHORIZATION to 2020-04-01-preview#14317
Conversation
|
|
There was a problem hiding this comment.
The weird b''b\'' prefix has been removed by using the latest azure-devtools.
- body: 'b''b\''{"availableToOtherTenants": false, "homepage": "https://cli_test_sp_with_kv_existing_cert000001",
+ body: '{"availableToOtherTenants": false, "homepage": "https://cli_test_sp_with_kv_existing_cert000001",|
add to S173 |
| ResourceType.MGMT_AUTHORIZATION: SDKProfile('2018-09-01-preview', { | ||
| ResourceType.MGMT_AUTHORIZATION: SDKProfile('2020-04-01-preview', { | ||
| 'classic_administrators': '2015-06-01', | ||
| 'role_definitions': '2018-01-01-preview', |
There was a problem hiding this comment.
2018-01-01-preview is the latest version which contains RoleDefinition.
# Conflicts: # src/azure-cli/azure/cli/command_modules/role/custom.py # src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set.yaml # src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml # src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml # src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_update.yaml # src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml
| class RbacSPKeyVaultScenarioTest2(ScenarioTest): | ||
| @ResourceGroupPreparer(name_prefix='cli_test_sp_with_kv_new_cert') | ||
| @KeyVaultPreparer(name_prefix='test_create_for_rbac_with_new_kv_cert') | ||
| @KeyVaultPreparer(name_prefix='test-rbac-new-kv') |
There was a problem hiding this comment.
The name is too long for name_prefix. Shortening it.
| # TODO: https://github.com/Azure/azure-cli/pull/13769 fails to work | ||
| # Cert created with | ||
| # openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 10000 -out certificate.pem | ||
| self.kwargs['cert_file'] = """ |
There was a problem hiding this comment.
Regenerate an un-expired cert.
| # Due to unstable role definition ARIs: https://github.com/Azure/azure-cli/issues/3187 | ||
| import time | ||
| result = None | ||
| while not result: |
There was a problem hiding this comment.
I don't exactly know what number is suitable. The result is pretty unpredictable. It won't affect the CI as the tests will definitely succeed. So I want to put it on hold for now.
There was a problem hiding this comment.
Added as requested. Let's use ROLE_COMMAND_MAX_RETRY = 20 for now.
Description
ResourceType.MGMT_AUTHORIZATIONto2020-04-01-preview.