From ae471ba41743f6b8389bf5d342352328e3d9026e Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Wed, 4 Dec 2024 10:15:19 +0800 Subject: [PATCH] {spring-cloud} Fix disallowed html tag (#8306) * fix disallowed-html-tag lint * update recording --- src/spring-cloud/azext_spring_cloud/_help.py | 2 +- src/spring-cloud/azext_spring_cloud/_params.py | 2 +- .../tests/latest/recordings/test_persistent_storage.yaml | 2 +- .../tests/latest/recordings/test_stop_and_start_service.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spring-cloud/azext_spring_cloud/_help.py b/src/spring-cloud/azext_spring_cloud/_help.py index 67b5a4cf994..a05b9b65354 100644 --- a/src/spring-cloud/azext_spring_cloud/_help.py +++ b/src/spring-cloud/azext_spring_cloud/_help.py @@ -331,7 +331,7 @@ helps['spring-cloud app deployment'] = """ type: group - short-summary: Commands to manage life cycle of deployments of an app in Azure Spring Cloud. More operations on deployments can be done on app level with parameter --deployment. e.g. az spring-cloud app deploy --deployment + short-summary: Commands to manage life cycle of deployments of an app in Azure Spring Cloud. More operations on deployments can be done on app level with parameter --deployment. e.g. `az spring-cloud app deploy --deployment ` """ helps['spring-cloud app deployment list'] = """ diff --git a/src/spring-cloud/azext_spring_cloud/_params.py b/src/spring-cloud/azext_spring_cloud/_params.py index 4351f5915b4..0d256e5f9df 100644 --- a/src/spring-cloud/azext_spring_cloud/_params.py +++ b/src/spring-cloud/azext_spring_cloud/_params.py @@ -43,7 +43,7 @@ validator=validate_env, help="Space-separated environment variables in 'key[=value]' format.", nargs='*') build_env_type = CLIArgumentType( validator=validate_build_env, help="Space-separated environment variables in 'key[=value]' format.", nargs='*') -service_name_type = CLIArgumentType(options_list=['--service', '-s'], help='Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.', configured_default='spring-cloud') +service_name_type = CLIArgumentType(options_list=['--service', '-s'], help='Name of Azure Spring Cloud, you can configure the default service using `az configure --defaults spring-cloud=`.', configured_default='spring-cloud') app_name_type = CLIArgumentType(help='App name, you can configure the default app using az configure --defaults spring-cloud-app=.', validator=validate_app_name, configured_default='spring-cloud-app') sku_type = CLIArgumentType(arg_type=get_enum_type(['Basic', 'Standard', 'Enterprise']), help='Name of SKU. Enterprise is still in Preview.') source_path_type = CLIArgumentType(nargs='?', const='.', diff --git a/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_persistent_storage.yaml b/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_persistent_storage.yaml index 7428ae1653d..570db6bcb90 100644 --- a/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_persistent_storage.yaml +++ b/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_persistent_storage.yaml @@ -18,7 +18,7 @@ interactions: - AZURECLI/2.43.0 azsdk-python-azure-mgmt-storage/21.0.0 Python/3.10.8 (Linux-5.15.0-1023-azure-x86_64-with-glibc2.31) VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2022-09-01&$expand=kerb + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2023-05-01&$expand=kerb response: body: string: '{"keys":[{"creationTime":"2023-01-03T03:35:25.5792346Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2023-01-03T03:35:25.5792346Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' diff --git a/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_stop_and_start_service.yaml b/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_stop_and_start_service.yaml index 81fd9810890..9e9fe3924d7 100644 --- a/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_stop_and_start_service.yaml +++ b/src/spring-cloud/azext_spring_cloud/tests/latest/recordings/test_stop_and_start_service.yaml @@ -19,7 +19,7 @@ interactions: User-Agent: - AZURECLI/2.29.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.9.7 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli?api-version=2022-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli","name":"cli","type":"Microsoft.Resources/resourceGroups","location":"eastus","properties":{"provisioningState":"Succeeded"}}'