From 5d2fed596afecdab1df4f34653f20e40b8f22fb7 Mon Sep 17 00:00:00 2001 From: Yishi Wang Date: Tue, 27 May 2025 10:16:55 +0800 Subject: [PATCH] Fix Cred Scan failure: Replace shared keys in container app test recordings --- .../recordings/test_container_app_mount_azurefile_e2e.yaml | 2 +- .../test_containerapp_create_with_environment_id.yaml | 4 ++-- .../tests/latest/recordings/test_containerapp_env_e2e.yaml | 2 +- .../tests/latest/recordings/test_containerapp_env_mtls.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml index 3cc2b1b8d01..5238fe64099 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_container_app_mount_azurefile_e2e.yaml @@ -1619,7 +1619,7 @@ interactions: body: '{"location": "eastus", "tags": null, "properties": {"daprAIInstrumentationKey": null, "vnetConfiguration": null, "appLogsConfiguration": {"destination": "log-analytics", "logAnalyticsConfiguration": {"customerId": "a32e97eb-f2ba-4a43-a567-cda169fc8b81", - "sharedKey": "iwPYd3mvdKlNKYFlr6gw5v/zB2I0VWu3FN54YkjqCMIpA+GMjSdh1lQTMA6bEKkOMjsQ8jhTEk5Gb47i/aehdQ=="}}, + "sharedKey": "testFakeSharedKey=="}}, "customDomainConfiguration": null, "workloadProfiles": [{"workloadProfileType": "Consumption", "Name": "Consumption"}], "zoneRedundant": false}}' headers: diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_create_with_environment_id.yaml b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_create_with_environment_id.yaml index dc67c66a89f..d43ee90255a 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_create_with_environment_id.yaml +++ b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_create_with_environment_id.yaml @@ -1351,7 +1351,7 @@ interactions: body: '{"location": "eastus", "tags": null, "properties": {"daprAIInstrumentationKey": null, "vnetConfiguration": null, "appLogsConfiguration": {"destination": "log-analytics", "logAnalyticsConfiguration": {"customerId": "9cd877b2-e078-4660-8de2-713547c7ef39", - "sharedKey": "W6UAMXWrlGiAfMArhap4zmZyLKFKLAt+bE2kSpZQ8omxA0AGjkseU0ZxX070D59P9STvB4h+LGFm0vzAbPBdKw=="}}, + "sharedKey": "testFakeSharedKey=="}}, "customDomainConfiguration": null, "workloadProfiles": [{"workloadProfileType": "Consumption", "Name": "Consumption"}], "zoneRedundant": false}}' headers: @@ -5318,7 +5318,7 @@ interactions: body: '{"location": "eastus", "tags": null, "properties": {"daprAIInstrumentationKey": null, "vnetConfiguration": null, "appLogsConfiguration": {"destination": "log-analytics", "logAnalyticsConfiguration": {"customerId": "9cd877b2-e078-4660-8de2-713547c7ef39", - "sharedKey": "W6UAMXWrlGiAfMArhap4zmZyLKFKLAt+bE2kSpZQ8omxA0AGjkseU0ZxX070D59P9STvB4h+LGFm0vzAbPBdKw=="}}, + "sharedKey": "testFakeSharedKey=="}}, "customDomainConfiguration": null, "workloadProfiles": [{"workloadProfileType": "Consumption", "Name": "Consumption"}], "zoneRedundant": false}}' headers: diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml index 45014949042..c3c23d4fd6c 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_e2e.yaml @@ -1351,7 +1351,7 @@ interactions: body: '{"location": "eastus", "tags": {"foo": "bar", "key1": "val1"}, "properties": {"daprAIInstrumentationKey": null, "vnetConfiguration": null, "appLogsConfiguration": {"destination": "log-analytics", "logAnalyticsConfiguration": {"customerId": - "2d765c2c-2516-4306-9f8e-18857e541c26", "sharedKey": "UPDos6Pr/YVlowD6RRATjCZRyVLRBjg3NLb6rola8w51MGDVX4BGaVdVFMV5zFBUTYBb0xBpQBvwPNrWWZRD3A=="}}, + "2d765c2c-2516-4306-9f8e-18857e541c26", "sharedKey": "testFakeSharedKey=="}}, "customDomainConfiguration": null, "workloadProfiles": [{"workloadProfileType": "Consumption", "Name": "Consumption"}], "zoneRedundant": false}}' headers: diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_mtls.yaml b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_mtls.yaml index 69edb5ba592..d538fe58cea 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_mtls.yaml +++ b/src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/recordings/test_containerapp_env_mtls.yaml @@ -1351,7 +1351,7 @@ interactions: body: '{"location": "eastus", "tags": null, "properties": {"daprAIInstrumentationKey": null, "vnetConfiguration": null, "appLogsConfiguration": {"destination": "log-analytics", "logAnalyticsConfiguration": {"customerId": "7b1c9363-d0b6-4d01-818d-3dfd96edab0a", - "sharedKey": "zVSNPmgdUlipcYNDdsTd7TZzMrvQTQyBuTclMnZ4YOXY9dx3hzOcYdxyYAbm31xNn0xguMPNWSsLCEbeXuWKsA=="}}, + "sharedKey": "testFakeSharedKey=="}}, "customDomainConfiguration": null, "workloadProfiles": [{"workloadProfileType": "Consumption", "Name": "Consumption"}], "zoneRedundant": false, "peerAuthentication": {"mtls": {"enabled": true}}}}'