Skip to content

Fixed not being able to update preview status in SecurityPolicyRule and RegionSecurityPolicyRule #13360

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

Conversation

matheusaleixo-cit
Copy link
Contributor

@matheusaleixo-cit matheusaleixo-cit commented Mar 14, 2025

Fixes not being able to update the field preview from true to false in google_compute_security_policy_rule and google_compute_region_security_policy_rule, causing a permadiff.

Fixes: #19443, #20949

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

compute: fixed unable to update the `preview` field for `google_compute_security_policy_rule` resource
compute: fixed unable to update the `preview` field for `google_compute_region_security_policy_rule` resource (beta)

…olicyRule not being able to update from true to false;
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Mar 14, 2025
@matheusaleixo-cit matheusaleixo-cit marked this pull request as ready for review March 14, 2025 20:22
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs.

@shuyama1, 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.

@github-actions github-actions bot requested a review from shuyama1 March 14, 2025 20:23
@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 Mar 17, 2025
@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 ( 2 files changed, 10 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 4 files changed, 20 insertions(+), 4 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1139
Passed tests: 1045
Skipped tests: 79
Affected tests: 15

Click here to see the affected service packages
  • compute

Action taken

Found 15 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeRegionSecurityPolicyRule_EnforceOnKeyUpdates
  • TestAccComputeRegionSecurityPolicyRule_regionSecurityPolicyRuleBasicUpdate
  • TestAccComputeRegionSecurityPolicyRule_securityPolicyDefaultRule
  • TestAccComputeRegionSecurityPolicyRule_withPreconfiguredWafConfig
  • TestAccComputeRegionSecurityPolicyRule_withRateLimitOption_withMultipleEnforceOnKeyConfigs
  • TestAccComputeRegionSecurityPolicyRule_withRateLimitOptions
  • TestAccComputeRegionSecurityPolicyRule_withRuleExpr
  • TestAccComputeSecurityPolicyRule_EnforceOnKeyUpdates
  • TestAccComputeSecurityPolicyRule_basicUpdate
  • TestAccComputeSecurityPolicyRule_securityPolicyDefaultRule
  • TestAccComputeSecurityPolicyRule_withHeadAction
  • TestAccComputeSecurityPolicyRule_withPreconfiguredWafConfig
  • TestAccComputeSecurityPolicyRule_withRateLimitOption_withMultipleEnforceOnKeyConfigs
  • TestAccComputeSecurityPolicyRule_withRateLimitOptions
  • TestAccComputeSecurityPolicyRule_withRedirectOptionsUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeRegionSecurityPolicyRule_EnforceOnKeyUpdates [Debug log]
TestAccComputeRegionSecurityPolicyRule_regionSecurityPolicyRuleBasicUpdate [Debug log]
TestAccComputeRegionSecurityPolicyRule_securityPolicyDefaultRule [Debug log]
TestAccComputeRegionSecurityPolicyRule_withPreconfiguredWafConfig [Debug log]
TestAccComputeRegionSecurityPolicyRule_withRateLimitOption_withMultipleEnforceOnKeyConfigs [Debug log]
TestAccComputeRegionSecurityPolicyRule_withRateLimitOptions [Debug log]
TestAccComputeRegionSecurityPolicyRule_withRuleExpr [Debug log]
TestAccComputeSecurityPolicyRule_EnforceOnKeyUpdates [Debug log]
TestAccComputeSecurityPolicyRule_basicUpdate [Debug log]
TestAccComputeSecurityPolicyRule_securityPolicyDefaultRule [Debug log]
TestAccComputeSecurityPolicyRule_withHeadAction [Debug log]
TestAccComputeSecurityPolicyRule_withPreconfiguredWafConfig [Debug log]
TestAccComputeSecurityPolicyRule_withRateLimitOption_withMultipleEnforceOnKeyConfigs [Debug log]
TestAccComputeSecurityPolicyRule_withRateLimitOptions [Debug log]
TestAccComputeSecurityPolicyRule_withRedirectOptionsUpdate [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

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

Copy link

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

@shuyama1
Copy link
Member

/gcbrun

@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Mar 21, 2025
@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 ( 2 files changed, 10 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 4 files changed, 20 insertions(+), 4 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1145
Passed tests: 1061
Skipped tests: 79
Affected tests: 5

Click here to see the affected service packages
  • compute

Action taken

Found 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeInstanceFromMachineImage_terminationTime
  • TestAccComputeInstanceFromTemplate_TerminationTime
  • TestAccComputeInstanceTemplate_instanceTerminationAction_terminationTime
  • TestAccComputeInstance_schedulingTerminationTime
  • TestAccComputeRegionInstanceTemplate_instanceTerminationAction_terminationTime

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeInstanceFromMachineImage_terminationTime [Debug log]
TestAccComputeInstanceFromTemplate_TerminationTime [Debug log]
TestAccComputeInstanceTemplate_instanceTerminationAction_terminationTime [Debug log]
TestAccComputeInstance_schedulingTerminationTime [Debug log]
TestAccComputeRegionInstanceTemplate_instanceTerminationAction_terminationTime [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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to update preview status on google_compute_security_policy_rule
3 participants