Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei committed Apr 23, 2024
1 parent a7284af commit 9343cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .teamcity/components/settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ var serviceTestConfigurationOverrides = mapOf(
"networkfunction" to testConfiguration(locationOverride = LocationConfiguration("westus2", "eastus2", "westeurope", false)),

// Network Regional Tire Public IP is only available in
"network" to testConfiguration(locationOverride = LocationConfiguration("westeurope", "eastus2", "westus", false)),
"network" to testConfiguration(locationOverride = LocationConfiguration("eastus", "westus", "westeurope", false)),

// Orbital is only available in certain locations
"orbital" to testConfiguration(locationOverride = LocationConfiguration("eastus", "southcentralus", "westus2", false)),
Expand Down
18 changes: 2 additions & 16 deletions internal/services/network/virtual_network_gateway_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,6 @@ func TestAccVirtualNetworkGateway_activeActiveZoneRedundantWithP2S(t *testing.T)
})
}

func TestAccVirtualNetworkGateway_standard(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_virtual_network_gateway", "test")
r := VirtualNetworkGatewayResource{}

data.ResourceTest(t, r, []acceptance.TestStep{
{
Config: r.sku(data, "Standard"),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("sku").HasValue("Standard"),
),
},
})
}

func TestAccVirtualNetworkGateway_vpnGw2(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_virtual_network_gateway", "test")
r := VirtualNetworkGatewayResource{}
Expand Down Expand Up @@ -1129,7 +1114,8 @@ resource "azurerm_public_ip" "test" {
name = "acctestpip1-%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
allocation_method = "Dynamic"
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_virtual_network_gateway" "test" {
Expand Down

0 comments on commit 9343cd0

Please sign in to comment.