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

Fixed preconfigured_waf_config permadiff causing rules being recreated #11946

Conversation

matheusaleixo-cit
Copy link
Contributor

@matheusaleixo-cit matheusaleixo-cit commented Oct 8, 2024

Fixes a permadiff related to the preconfigured_waf_config field in google_compute_security_policy.
Also promotes preconfigured_waf_config to GA.

Part of: hashicorp/terraform-provider-google#16882, hashicorp/terraform-provider-google#18596

Release Note Template for Downstream PRs (will be copied)

compute: fixed permadiff on the `preconfigured_waf_config` field for `google_compute_security_policy` resource
compute: added `preconfigured_waf_config` field  to `google_compute_security_policy` resource (ga)

…ld return a empty preconfigured_waf_config value and updated tests to cover such case;

- Promoted preconfigured_waf_config from Beta to GA;
@github-actions github-actions bot requested a review from NickElliot October 8, 2024 18:22
Copy link

github-actions bot commented Oct 8, 2024

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 8, 2024
Copy link

@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.

@modular-magician modular-magician added service/compute-security-policy and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Oct 14, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 446 insertions(+), 21 deletions(-))
google-beta provider: Diff ( 3 files changed, 73 insertions(+), 6 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1028
Passed tests: 953
Skipped tests: 74
Affected tests: 1

Click here to see the affected service packages
  • compute
#### Non-exercised tests

🔴 Tests were added that are GA-only additions and require manual runs:

  • TestAccComputeSecurityPolicy_withPreconfiguredWafConfig

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeSecurityPolicy_withPreconfiguredWafConfig

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeSecurityPolicy_withPreconfiguredWafConfig[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link

@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

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

LGTM! The only change I'm looking for is a comment that would explain the solution being implemented.

@github-actions github-actions bot requested a review from NickElliot October 16, 2024 21:01
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 16, 2024
Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

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

LGTM!

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Oct 18, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 448 insertions(+), 21 deletions(-))
google-beta provider: Diff ( 3 files changed, 75 insertions(+), 6 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1036
Passed tests: 963
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute
#### Non-exercised tests

🔴 Tests were added that are GA-only additions and require manual runs:

  • TestAccComputeSecurityPolicy_withPreconfiguredWafConfig
    🟢 All tests passed!

View the build log

Copy link

This PR is approved and has been waiting for merge for 1 week. Is it ready to merge? Use the label disable-review-reminders to disable these notifications.

Copy link

github-actions bot commented Nov 1, 2024

@NickElliot This PR is approved and has been waiting for merge for 2 weeks. Is it ready to merge? Use the label disable-review-reminders to disable these notifications.

@github-actions github-actions bot requested a review from NickElliot November 4, 2024 20:07
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Nov 4, 2024
@NickElliot NickElliot merged commit 73c6232 into GoogleCloudPlatform:main Nov 4, 2024
6 of 7 checks passed
@matheusaleixo-cit matheusaleixo-cit deleted the fix-compute-security-policy-preconfigured-waf-config-permadiff branch November 12, 2024 14:34
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Pull requests that need reviewer's approval to run presubmit tests service/compute-security-policy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants