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

azurerm_application_gateway - support priority property #13498

Merged
merged 7 commits into from
Oct 28, 2021

Conversation

gingerninja80
Copy link
Contributor

Fixes #13247

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 @gingerninja80

Thanks for this PR.

I've taken a look through and besides one minor comment to the documentation this otherwise LGTM 👍

Thanks!

website/docs/r/application_gateway.html.markdown Outdated Show resolved Hide resolved
Co-authored-by: Tom Harvey <[email protected]>
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.

Looks like we have a test failure:

------ Stdout: -------
=== RUN   TestAccApplicationGateway_requestRoutingRulePriority
=== PAUSE TestAccApplicationGateway_requestRoutingRulePriority
=== CONT  TestAccApplicationGateway_requestRoutingRulePriority
    testcase.go:88: Step 2/3 error: Error running apply: exit status 1
        
        Error: creating/updating Application Gateway: (Name "acctestag-211006184123439634" / Resource Group "acctestRG-211006184123439634"): network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="ApplicationGatewayRequestRoutingRulesUsingSameHttpListener" Message="Two Request Routing Rules of Application Gateway /subscriptions/*******/resourceGroups/acctestRG-211006184123439634/providers/Microsoft.Network/applicationGateways/acctestag-211006184123439634 are using the same Http Listener /subscriptions/*******/resourceGroups/acctestRG-211006184123439634/providers/Microsoft.Network/applicationGateways/acctestag-211006184123439634/httpListeners/acctest-vnet-211006184123439634-httplstn." Details=[]
        
          with azurerm_application_gateway.test,
          on terraform_plugin_test.tf line 53, in resource "azurerm_application_gateway" "test":
          53: resource "azurerm_application_gateway" "test" {
        
--- FAIL: TestAccApplicationGateway_requestRoutingRulePriority (814.40s)
FAIL

@gingerninja80
Copy link
Contributor Author

@katbyte please can you re-test?

@katbyte katbyte changed the title Added support for routing rule priorities for App Gateway resources azurerm_application_gateway - support priority property Oct 7, 2021
@katbyte katbyte added this to the v2.80.0 milestone Oct 7, 2021
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.

Thanks @gingerninja80 ! tests pass now LGTM 🙌

@katbyte
Copy link
Collaborator

katbyte commented Oct 7, 2021

@gingerninja80 - just need GHA CI to be fixed and this is good to go!

@katbyte katbyte modified the milestones: v2.80.0, v2.81.0 Oct 8, 2021
@katbyte
Copy link
Collaborator

katbyte commented Oct 14, 2021

Was looking at this today and it seems there is a check with the wrong value?

------- Stdout: -------
=== RUN   TestAccApplicationGateway_requestRoutingRulePriority
=== PAUSE TestAccApplicationGateway_requestRoutingRulePriority
=== CONT  TestAccApplicationGateway_requestRoutingRulePriority
    testcase.go:88: Step 2/3 error: Check failed: Check 2/3 error: azurerm_application_gateway.test: Attribute 'request_routing_rule.0.priority' expected "1", got "0"
--- FAIL: TestAccApplicationGateway_requestRoutingRulePriority (866.40s)
FAIL

@katbyte katbyte modified the milestones: v2.81.0, v2.82.0 Oct 14, 2021
@katbyte katbyte modified the milestones: v2.82.0, v2.83.0 Oct 21, 2021
@github-actions
Copy link

This functionality has been released in v2.83.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@gingerninja80
Copy link
Contributor Author

The issue highlighted by @katbyte have now been resolved and the acctests are all passing successfully, so I'm really hoping this will be included in the v2.83.0 release 🤞🏼

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.

Thanks @gingerninja80! they are now, LGTM 🏗️

@katbyte katbyte merged commit 64fce73 into hashicorp:main Oct 28, 2021
katbyte added a commit that referenced this pull request Oct 28, 2021
@github-actions
Copy link

This functionality has been released in v2.83.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@Zeralith

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2021
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.

azurerm_application_gateway missing priority field on routing rules.
5 participants