Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature application gateway customerrors #2783

Merged
merged 9 commits into from
Jan 29, 2019
Merged

Feature application gateway customerrors #2783

merged 9 commits into from
Jan 29, 2019

Conversation

mcharriere
Copy link
Contributor

@mcharriere mcharriere commented Jan 28, 2019

Add custom errors to the Application gateway resource. #2364

Adds global level configuration and listener level configuration using the same block structure.

(fixes #2364)

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @mcharriere

Thanks for this PR :)

I've taken a look through and this mostly LGTM - if we can fix up the minor comments then we should be able to run the tests and get this merged 👍

Thanks!

azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
website/docs/r/application_gateway.html.markdown Outdated Show resolved Hide resolved
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @mcharriere

Thanks for pushing those changes - this now LGTM, I'll kick off the test suite shortly 👍

Thanks!

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mcharriere,

There were a few errors in the test config i have fixed, however the test is now failing with:

UPDATE: azurerm_application_gateway.test
          http_listener.0.custom_error_configuration.0.custom_error_page_url: "http://azure.com/error.html" => "http://azure.com/error403_listener.html"
          http_listener.0.custom_error_configuration.1.custom_error_page_url: "http://azure.com/error.html" => "http://azure.com/error502_listener.html"

@mcharriere
Copy link
Contributor Author

Hi @mcharriere,

There were a few errors in the test config i have fixed, however the test is now failing with:

UPDATE: azurerm_application_gateway.test
          http_listener.0.custom_error_configuration.0.custom_error_page_url: "http://azure.com/error.html" => "http://azure.com/error403_listener.html"
          http_listener.0.custom_error_configuration.1.custom_error_page_url: "http://azure.com/error.html" => "http://azure.com/error502_listener.html"

I think that the problem is that I was calling the expand function inside the listener. That would set the configuration for the global level inside the listener.
I was able to fix that by changing the argument that the function receives, so the same function expands the block avoiding code dup. Is that ok?

@katbyte katbyte added this to the 1.22.0 milestone Jan 29, 2019
@katbyte
Copy link
Collaborator

katbyte commented Jan 29, 2019

Thanks @mcharriere, LGTM now 🙂

@katbyte katbyte merged commit c96f54d into hashicorp:master Jan 29, 2019
katbyte added a commit that referenced this pull request Jan 29, 2019
@ghost
Copy link

ghost commented Mar 5, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature : Add Custom Error Pages 403/502 for azurerm_application_gateway
3 participants