Skip to content

Commit

Permalink
feat(application-gateway): support other status_code on custom_error_…
Browse files Browse the repository at this point in the history
…configuration
  • Loading branch information
carnei-ro committed Jul 22, 2024
1 parent 5a4cc53 commit e5bcd1c
Show file tree
Hide file tree
Showing 194 changed files with 292 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-helpers/resourcemanager/zones"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2022-07-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/network/application_gateway_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-helpers/resourcemanager/zones"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2022-07-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
Expand Down
72 changes: 71 additions & 1 deletion internal/services/network/application_gateway_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2022-07-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationgateways"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down Expand Up @@ -6308,22 +6308,92 @@ resource "azurerm_application_gateway" "test" {
custom_error_page_url = "http://azure.com/error403_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus404"
custom_error_page_url = "http://azure.com/error404_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus405"
custom_error_page_url = "http://azure.com/error405_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus408"
custom_error_page_url = "http://azure.com/error408_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus400"
custom_error_page_url = "http://azure.com/error400_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus502"
custom_error_page_url = "http://azure.com/error502_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus503"
custom_error_page_url = "http://azure.com/error503_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus504"
custom_error_page_url = "http://azure.com/error504_listener.html"
}
custom_error_configuration {
status_code = "HttpStatus500"
custom_error_page_url = "http://azure.com/error500_listener.html"
}
}
custom_error_configuration {
status_code = "HttpStatus403"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus404"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus405"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus408"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus400"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus502"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus503"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus504"
custom_error_page_url = "http://azure.com/error.html"
}
custom_error_configuration {
status_code = "HttpStatus500"
custom_error_page_url = "http://azure.com/error.html"
}
request_routing_rule {
name = local.request_routing_rule_name
rule_type = "Basic"
Expand Down
2 changes: 1 addition & 1 deletion internal/services/network/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package client
import (
"fmt"

"github.com/hashicorp/go-azure-sdk/resource-manager/network/2022-07-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationgateways"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses"
network_2023_11_01 "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01"
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e5bcd1c

Please sign in to comment.