-
Notifications
You must be signed in to change notification settings - Fork 626
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
fix: Ruleset override action #1249
fix: Ruleset override action #1249
Conversation
Fixing parameters string issue
Acceptance test result
|
I noted in your cloudflare-go PR that you probably want enabled to a boolean pointer and when it's explicitly set, it will be passed (whether it is true or false). example https://github.com/cloudflare/terraform-provider-cloudflare/pull/1249/files#diff-c3d3a73e9b05d7cea55e6fac7f280de1aa750869b5e2c73e7bb495de70246be7R694 |
Before I added the action challenge within the test testAccCheckCloudflareRulesetManagedWAFWithIDBasedOverrides and forget to remove it.
Thanks @jacobbednarz it is in fact better with the boolean pointer. I changed the acceptance test accordingly and it passed
|
I did push a small change to handle when some phases don't allow empty
two last things:
then we're good to merge this once the upstream library changes are ready! unit tests will be 👌 once the cloudflare-go version is bumped. |
Done! |
…)" This reverts commit 480c618.
sorry, merged prematurely before we had a cloudflare-go release. the code is now at #1253 pending the upstream changes. |
This add
action
andenabled
for override inaction_parameters
for Ruleset -> #1239When I did test, I still have an issue with the
enabled
, it is not take into consideration if it set-up to false.The API call return
As you may see the enabled is not pass to the API.
@jacobbednarz if you have any clue where that issue may come from, would like to get your help :)
As it is my first PR any comments/improvement welcome ;)