-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 for the Basic SKU #27440
azurerm_application_gateway - support for the Basic SKU #27440
Conversation
azurerm_application_gateway
Basic SKU (Preview)azurerm_application_gateway
Basic SKU (Preview)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like all the tests are failing with:
------- Stdout: -------
=== RUN TestAccApplicationGateway_authCertificate
=== PAUSE TestAccApplicationGateway_authCertificate
=== CONT TestAccApplicationGateway_authCertificate
testcase.go:173: Step 1/6 error: Error running apply: exit status 1
Error: creating Application Gateway (Subscription: "*******"
Resource Group Name: "acctestRG-240920034903751201"
Application Gateway Name: "acctestag-240920034903751201"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: AppGatewayV1SkuDeprecated: Application Gateway SKU tier Standard has been deprecated. Supported SKU tiers are Standard_v2,WAF_v2. Refer https://aka.ms/V1retirement.
with azurerm_application_gateway.test,
on terraform_plugin_test.tf line 72, in resource "azurerm_application_gateway" "test":
72: resource "azurerm_application_gateway" "test" {
--- FAIL: TestAccApplicationGateway_authCertificate (181.02s)
FAIL
As per https://learn.microsoft.com/en-us/azure/application-gateway/v1-retirement#retirement-timelines it looks like we can no longer deploy V1 SKUs of the application gateway since the 1st Sept. At the very least we need to remove any acceptance tests that use any V1 SKUs e.g I believe that this is out of the scope of this PR, so we should raise another to remove this capability. I don't think this is too much effort. @katbyte shall another issue be raised for the removal of these deprecated SKUs? |
@tedsmitt - could you swap the test SKUs to one that will allow them to pass? it's required to be able to test your changes properly for merge |
@katbyte I've updated the Acceptance Tests to use the V2 SKU, these should now pass. |
@katbyte Any update on whether we can re-test this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 ran the tests again and it appears to be a different error now :(
------- Stdout: -------
=== RUN TestAccApplicationGateway_requiresImport
=== PAUSE TestAccApplicationGateway_requiresImport
=== CONT TestAccApplicationGateway_requiresImport
testcase.go:173: Step 1/2 error: Error running apply: exit status 1
Error: creating Application Gateway (Subscription: "*******"
Resource Group Name: "acctestRG-241016180010215836"
Application Gateway Name: "acctestag-241016180010215836"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: ApplicationGatewayRequestRoutingRulePriorityCannotBeEmpty: Priority for the request routing rule /subscriptions/*******/resourceGroups/acctestRG-241016180010215836/providers/Microsoft.Network/applicationGateways/acctestag-241016180010215836/requestRoutingRules/acctest-vnet-241016180010215836-rqrt cannot be empty. All request routing rules should have a priority defined starting from api-version 2021-08-01
with azurerm_application_gateway.test,
on terraform_plugin_test.tf line 71, in resource "azurerm_application_gateway" "test":
71: resource "azurerm_application_gateway" "test" {
--- FAIL: TestAccApplicationGateway_requiresImport (202.42s)
FAIL
… SKU supported features
…nclude priority on request_routing_rule as required with agw v2 sku
3058862
to
49be09f
Compare
…ource to be standard sku for compatibility with agw v2
@katbyte Have pushed some updates that fix the test case resources to be compatible with the v2 SKU. I have re-run some of the tests locally and they are looking better now. P.S There is an opportunity here to do a bit of code tidy up as there are probably some duplicate tests since removing the old Standard SKU. However, I know this PR is already quite large so I'm hesitant to include those changes here, what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failing tests have gone from 30 to 7! and the remaining ones are failing one main. We would certainly welcome another pr cleaning up and fixing the remaining 7 but as this is enough for me to see your PR works + the remaining 7 are failing in main and seem unrelated to this change lets get this in for this weeks release LGTM 🍓
azurerm_application_gateway
Basic SKU (Preview)) * feat: hashicorp#25973 azurerm_application_gateway basic sku support * feat: hashicorp#25973 additional checks for application gateway Basic SKU supported features * tests: hashicorp#25973 add tests for application gateway basic sku * fix: hashicorp#2597 revert erroneous markdown lint changes * docs: hashicorp#2597 add Basic SKU docs * tests(application_gateway): hashicorp#25973 update tests to use v2 SKUs as V1 is now deprecated See https://learn.microsoft.com/en-us/azure/application-gateway/v1-retirement#retirement-timelines * tests(application_gateway): hashicorp#25973 update all agw tests to include priority on request_routing_rule as required with agw v2 sku * tests(application_gateway): hashicorp#25973 update test public ip resource to be standard sku for compatibility with agw v2
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. |
Community Note
Description
PR Checklist
Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_application_gateway
- support for theBasic
SKU tierThis is a (please select all that apply):
Related Issue(s)
Fixes #25973