Azure Monitor: Remove references to Germany cloud (#60588)
This commit is contained in:
@@ -15,7 +15,6 @@ const (
|
||||
azureMonitorPublic = "azuremonitor"
|
||||
azureMonitorChina = "chinaazuremonitor"
|
||||
azureMonitorUSGovernment = "govazuremonitor"
|
||||
azureMonitorGermany = "germanyazuremonitor"
|
||||
azureMonitorCustomized = "customizedazuremonitor"
|
||||
)
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ func TestCredentials_getAzureCloud(t *testing.T) {
|
||||
t.Run("when auth type is managed identity", func(t *testing.T) {
|
||||
jsonData := simplejson.NewFromAny(map[string]interface{}{
|
||||
"azureAuthType": azcredentials.AzureAuthManagedIdentity,
|
||||
"cloudName": azureMonitorGermany,
|
||||
"cloudName": azureMonitorUSGovernment,
|
||||
})
|
||||
|
||||
t.Run("should be from server configuration regardless of datasource value", func(t *testing.T) {
|
||||
@@ -153,7 +153,7 @@ func TestCredentials_getAzureCredentials(t *testing.T) {
|
||||
t.Run("when auth type is managed identity", func(t *testing.T) {
|
||||
jsonData := simplejson.NewFromAny(map[string]interface{}{
|
||||
"azureAuthType": azcredentials.AzureAuthManagedIdentity,
|
||||
"cloudName": azureMonitorGermany,
|
||||
"cloudName": azureMonitorUSGovernment,
|
||||
"tenantId": "9b9d90ee-a5cc-49c2-b97e-0d1b0f086b5c",
|
||||
"clientId": "849ccbb0-92eb-4226-b228-ef391abd8fe6",
|
||||
})
|
||||
|
||||
@@ -25,12 +25,6 @@ var azUSGovManagement = types.AzRoute{
|
||||
Headers: map[string]string{"x-ms-app": "Grafana"},
|
||||
}
|
||||
|
||||
var azGermanyManagement = types.AzRoute{
|
||||
URL: "https://management.microsoftazure.de",
|
||||
Scopes: []string{"https://management.microsoftazure.de/.default"},
|
||||
Headers: map[string]string{"x-ms-app": "Grafana"},
|
||||
}
|
||||
|
||||
var azChinaManagement = types.AzRoute{
|
||||
URL: "https://management.chinacloudapi.cn",
|
||||
Scopes: []string{"https://management.chinacloudapi.cn/.default"},
|
||||
|
||||
Reference in New Issue
Block a user