Skip to content

Commit

Permalink
Update test location to use alt location
Browse files Browse the repository at this point in the history
  • Loading branch information
WodansSon authored and ArcturusZhang committed Dec 5, 2019
1 parent d04ec02 commit 9725cd1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions azurerm/resource_arm_nat_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
func TestAccAzureRMNatGateway_basic(t *testing.T) {
resourceName := "azurerm_nat_gateway.test"
ri := tf.AccRandTimeInt()
// It is hard-coded because this resource currently only available in eastus2.
location := "eastus2"
// Using alt location because the resource currently in private preview and is only available in eastus2.
location := testAltLocation()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -39,8 +39,8 @@ func TestAccAzureRMNatGateway_basic(t *testing.T) {
func TestAccAzureRMNatGateway_complete(t *testing.T) {
resourceName := "azurerm_nat_gateway.test"
ri := tf.AccRandTimeInt()
// It is hard-coded because this resource currently only available in eastus2.
location := "eastus2"
// Using alt location because the resource currently in private preview and is only available in eastus2.
location := testAltLocation()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -70,8 +70,8 @@ func TestAccAzureRMNatGateway_complete(t *testing.T) {
func TestAccAzureRMNatGateway_update(t *testing.T) {
resourceName := "azurerm_nat_gateway.test"
ri := tf.AccRandTimeInt()
// It is hard-coded because this resource currently only available in eastus2.
location := "eastus2"
// Using alt location because the resource currently in private preview and is only available in eastus2.
location := testAltLocation()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit 9725cd1

Please sign in to comment.