Skip to content

Commit

Permalink
tests(application_gateway): #25973 update all agw tests to include pr…
Browse files Browse the repository at this point in the history
…iority on request_routing_rule as required with agw v2 sku
  • Loading branch information
tedsmitt committed Oct 20, 2024
1 parent 3c42d4e commit 49be09f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions internal/services/network/application_gateway_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -2252,6 +2253,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -2323,6 +2325,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -2383,6 +2386,7 @@ resource "azurerm_application_gateway" "import" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.basic(data))
Expand Down Expand Up @@ -2463,6 +2467,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -2879,6 +2884,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger, forceFirewallPolicyAssociation)
Expand Down Expand Up @@ -3417,6 +3423,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -3586,6 +3593,7 @@ resource "azurerm_application_gateway" "test" {
rule_type = "PathBasedRouting"
url_path_map_name = local.url_path_map_name
http_listener_name = local.listener_name
priority = 10
}
url_path_map {
Expand Down Expand Up @@ -3674,6 +3682,7 @@ resource "azurerm_application_gateway" "test" {
rule_type = "PathBasedRouting"
url_path_map_name = local.url_path_map_name
http_listener_name = local.listener_name
priority = 10
}
redirect_configuration {
Expand Down Expand Up @@ -3785,6 +3794,7 @@ resource "azurerm_application_gateway" "test" {
rule_type = "Basic"
http_listener_name = local.listener_name
redirect_configuration_name = local.redirect_configuration_name
priority = 10
}
redirect_configuration {
Expand Down Expand Up @@ -3880,6 +3890,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
redirect_configuration_name = local.redirect_configuration_name
priority = 10
}
redirect_configuration {
Expand Down Expand Up @@ -3977,6 +3988,7 @@ resource "azurerm_application_gateway" "test" {
rule_type = "PathBasedRouting"
url_path_map_name = local.url_path_map_name
http_listener_name = local.listener_name
priority = 10
}
url_path_map {
Expand Down Expand Up @@ -4119,6 +4131,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -4225,6 +4238,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -4308,6 +4322,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -4472,6 +4487,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger, hostName, pick)
Expand Down Expand Up @@ -4624,6 +4640,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -5016,6 +5033,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
ssl_certificate {
Expand Down Expand Up @@ -5094,6 +5112,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
ssl_certificate {
Expand Down Expand Up @@ -5172,6 +5191,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
ssl_certificate {
Expand Down Expand Up @@ -5300,6 +5320,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
ssl_certificate {
Expand Down Expand Up @@ -5383,6 +5404,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
ssl_certificate {
Expand Down Expand Up @@ -5475,6 +5497,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -5551,6 +5574,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -6424,6 +6448,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -7047,6 +7072,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -7117,6 +7143,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -7194,6 +7221,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger, data.RandomInteger)
Expand Down Expand Up @@ -7362,6 +7390,7 @@ resource "azurerm_application_gateway" "test" {
rule_type = "PathBasedRouting"
url_path_map_name = local.url_path_map_name
http_listener_name = local.listener_name
priority = 10
}
url_path_map {
Expand Down Expand Up @@ -7473,6 +7502,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -8267,6 +8297,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger, enableFips)
Expand Down Expand Up @@ -8345,6 +8376,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -8418,6 +8450,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down Expand Up @@ -8487,6 +8520,7 @@ resource "azurerm_application_gateway" "test" {
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
priority = 10
}
}
`, r.template(data), data.RandomInteger)
Expand Down

0 comments on commit 49be09f

Please sign in to comment.