Skip to content

Commit

Permalink
Adding an import test for BGP Settings:
Browse files Browse the repository at this point in the history
```
$ acctests azurerm TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete
=== RUN   TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete
--- PASS: TestAccAzureRMLocalNetworkGateway_importBGPSettingsComplete (80.96s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm    80.987s
```
  • Loading branch information
tombuildsstuff committed Dec 7, 2017
1 parent b58f95b commit a36e197
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions azurerm/import_arm_local_network_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
})
}

0 comments on commit a36e197

Please sign in to comment.