From 9daf6cef4f47ce01e58ef00b8631ed0084628020 Mon Sep 17 00:00:00 2001 From: v-ronl Date: Mon, 18 May 2020 13:23:16 +0800 Subject: [PATCH 1/2] Update api_management_logger_resource_test.go --- .../api_management_logger_resource_test.go | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go b/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go index d407b445292b..6a0151789ac0 100644 --- a/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go +++ b/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go @@ -260,23 +260,23 @@ resource "azurerm_resource_group" "test" { resource "azurerm_eventhub_namespace" "test" { name = "acctesteventhubnamespace-%d" - location = "azurerm_resource_group.test.location" - resource_group_name = "azurerm_resource_group.test.name" - sku_name = "Basic_1" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "Basic" } resource "azurerm_eventhub" "test" { name = "acctesteventhub-%d" - namespace_name = "azurerm_eventhub_namespace.test.name" - resource_group_name = "azurerm_resource_group.test.name" + namespace_name = azurerm_eventhub_namespace.test.name + resource_group_name = azurerm_resource_group.test.name partition_count = 2 message_retention = 1 } resource "azurerm_api_management" "test" { name = "acctestAM-%d" - location = "azurerm_resource_group.test.location" - resource_group_name = "azurerm_resource_group.test.name" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name publisher_name = "pub1" publisher_email = "pub1@email.com" @@ -285,12 +285,12 @@ resource "azurerm_api_management" "test" { resource "azurerm_api_management_logger" "test" { name = "acctestapimnglogger-%d" - api_management_name = "azurerm_api_management.test.name" - resource_group_name = "azurerm_resource_group.test.name" + api_management_name = azurerm_api_management.test.name + resource_group_name = azurerm_resource_group.test.name eventhub { - name = "azurerm_eventhub.test.name" - connection_string = "azurerm_eventhub_namespace.test.default_primary_connection_string" + name = azurerm_eventhub.test.name + connection_string = azurerm_eventhub_namespace.test.default_primary_connection_string } } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) From ab570bd93aac7f9f480e005668c2aa562e8e0236 Mon Sep 17 00:00:00 2001 From: Chang Li Date: Mon, 18 May 2020 15:12:22 +0800 Subject: [PATCH 2/2] Update api_management_logger_resource_test.go --- .../tests/api_management_logger_resource_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go b/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go index 6a0151789ac0..6b77d31ae6fb 100644 --- a/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go +++ b/azurerm/internal/services/apimanagement/tests/api_management_logger_resource_test.go @@ -329,7 +329,7 @@ resource "azurerm_application_insights" "test" { name = "acctestappinsights-%d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - application_type = "Other" + application_type = "other" } resource "azurerm_api_management" "test" { @@ -369,7 +369,7 @@ resource "azurerm_application_insights" "test" { name = "acctestappinsights-%d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - application_type = "Other" + application_type = "other" } resource "azurerm_api_management" "test" {