-
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_web_application_firewall_policy add enabled / disabled state for Custom Rules #23163
azurerm_web_application_firewall_policy add enabled / disabled state for Custom Rules #23163
Conversation
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.
Thanks for this PR @UppyAU.
Although we don't usually expose the enabled
field for blocks, after internal discussion we consider it valid in this particular instance.
Overall this looks good, my only request is that we add or extend a test to cover the scenario where the field enabled
is toggled. Currently we're only testing the creation of a custom_rule
with enabled
set to true
or false
from the get go.
|
Added a test where the each state a rule can be in Enabled, Disabled and Not Set and switching to each of the other possibilities. LMK is that works for you @stephybun |
Should be fixed by #23235 ? |
@UppyAU could you do a rebase to pull that fix in? I can't run the acceptance tests without it (the GHA on the PR is just our standard CI for linting, unit tests, formatting etc.) |
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.
Thanks for the very thorough test @UppyAU! LGTM 🍰
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. |
The azurerm_web_application_firewall_policy resource does not support and is unaware of the State property on the CustomRule present from API Version (2022-09-01).
Fixes #23123
This is my first PR ever. Please be kind.