From a36e197bb69c4fbf245f0b47d2755924bd38478b Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 7 Dec 2017 18:46:16 +0000 Subject: [PATCH] Adding an import test for BGP Settings: ``` $ acctests azurerm TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete === RUN TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete --- PASS: TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete (80.96s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 80.987s ``` --- .../import_arm_local_network_gateway_test.go | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/azurerm/import_arm_local_network_gateway_test.go b/azurerm/import_arm_local_network_gateway_test.go index 47b20cd42864..1ddf471efb05 100644 --- a/azurerm/import_arm_local_network_gateway_test.go +++ b/azurerm/import_arm_local_network_gateway_test.go @@ -28,3 +28,25 @@ func TestAccAzureRMLocalNetworkGateway_importBasic(t *testing.T) { }, }) } + +func TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete(t *testing.T) { + resourceName := "azurerm_local_network_gateway.test" + rInt := acctest.RandInt() + + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheck(t) }, + Providers: testAccProviders, + CheckDestroy: testCheckAzureRMLocalNetworkGatewayDestroy, + Steps: []resource.TestStep{ + { + Config: testAccAzureRMLocalNetworkGatewayConfig_bgpSettingsComplete(rInt, testLocation()), + }, + + { + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +}