AzureMonitor: Update SDK version (#60372)

This commit is contained in:
Andres Martinez Gotor
2022-12-20 16:20:31 +01:00
committed by GitHub
parent ec45c9c990
commit 10cfc27397
7 changed files with 33 additions and 23 deletions
@@ -277,8 +277,6 @@ func GetAzurePortalUrl(azureCloud string) (string, error) {
return "https://portal.azure.cn", nil
case azsettings.AzureUSGovernment:
return "https://portal.azure.us", nil
case azsettings.AzureGermany:
return "https://portal.microsoftazure.de", nil
default:
return "", fmt.Errorf("the cloud is not supported")
}
@@ -141,12 +141,11 @@ func TestAddConfigData(t *testing.T) {
}
func TestGetAzurePortalUrl(t *testing.T) {
clouds := []string{azsettings.AzurePublic, azsettings.AzureChina, azsettings.AzureUSGovernment, azsettings.AzureGermany}
clouds := []string{azsettings.AzurePublic, azsettings.AzureChina, azsettings.AzureUSGovernment}
expectedAzurePortalUrl := map[string]interface{}{
azsettings.AzurePublic: "https://portal.azure.com",
azsettings.AzureChina: "https://portal.azure.cn",
azsettings.AzureUSGovernment: "https://portal.azure.us",
azsettings.AzureGermany: "https://portal.microsoftazure.de",
}
for _, cloud := range clouds {