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

Migrate Network Firewall Policy Association (global and region) resource from DCL to MMv1 #11366

Conversation

Samir-Cit
Copy link
Contributor

@Samir-Cit Samir-Cit commented Aug 5, 2024

Hello folks.
This PR is to move two Network Firewall Policy Association resources (global and region) from DCL to MMv1.

  • google_compute_network_firewall_policy_association
  • google_compute_region_network_firewall_policy_association

And this PR includes:

  • Creation of the resource on MMv1.
  • Creation of the examples and tests.
  • Remove references to DCL resource.

Note: This PR doesn't include the deletion of the DCL resource. This change will be done on the Delarative Resource Client Library repository.

Release Note Template for Downstream PRs (will be copied)

compute: `google_compute_network_firewall_policy_association` now uses MMv1 engine instead of DCL.
compute: `google_compute_region_network_firewall_policy_association` now uses MMv1 engine instead of DCL.

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Aug 5, 2024
@Samir-Cit Samir-Cit changed the title Move google_compute_network_firewall_policy_association esource from DCL to MMv1 Move google_compute_network_firewall_policy_association resource from DCL to MMv1 Aug 6, 2024
@Samir-Cit Samir-Cit changed the title Move google_compute_network_firewall_policy_association resource from DCL to MMv1 Move Network Firewall Policy Association (global and region) resource from DCL to MMv1 Aug 7, 2024
@Samir-Cit Samir-Cit marked this pull request as ready for review August 9, 2024 22:18
@github-actions github-actions bot requested a review from c2thorn August 9, 2024 22:19
Copy link

github-actions bot commented Aug 9, 2024

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

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

@c2thorn c2thorn requested review from slevenick and removed request for c2thorn August 12, 2024 16:28
@melinath melinath requested a review from trodge August 12, 2024 21:59
@modular-magician modular-magician added service/network-security-distributed-firewall and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Aug 13, 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 ( 10 files changed, 791 insertions(+), 466 deletions(-))
google-beta provider: Diff ( 10 files changed, 791 insertions(+), 466 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 158 insertions(+))

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field project lost its diff suppress function - reference
  • Field region transitioned from optional+computed to optional google_compute_region_network_firewall_policy_association - reference

If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 979
Passed tests: 903
Skipped tests: 72
Affected tests: 4

Click here to see the affected service packages
  • compute

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeNetworkFirewallPolicyAssociation_networkFirewallPolicyAssociationExample
  • TestAccComputeNetworkFirewallPolicyRule_multipleRules
  • TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update
  • TestAccComputeRegionNetworkFirewallPolicyAssociation_regionNetworkFirewallPolicyAssociationExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeNetworkFirewallPolicyAssociation_networkFirewallPolicyAssociationExample[Debug log]
TestAccComputeRegionNetworkFirewallPolicyAssociation_regionNetworkFirewallPolicyAssociationExample[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeNetworkFirewallPolicyRule_multipleRules[Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Aug 13, 2024
Copy link

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

@Samir-Cit Samir-Cit marked this pull request as draft August 16, 2024 15:16
@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Aug 17, 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 ( 10 files changed, 791 insertions(+), 466 deletions(-))
google-beta provider: Diff ( 10 files changed, 791 insertions(+), 466 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 158 insertions(+))

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field project lost its diff suppress function - reference
  • Field region transitioned from optional+computed to optional google_compute_region_network_firewall_policy_association - reference

If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 982
Passed tests: 906
Skipped tests: 72
Affected tests: 4

Click here to see the affected service packages
  • compute

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeDisk_storagePoolSpecified
  • TestAccComputeInstance_bootDisk_storagePoolSpecified
  • TestAccComputeNetworkFirewallPolicyRule_multipleRules
  • TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeDisk_storagePoolSpecified[Error message] [Debug log]
TestAccComputeInstance_bootDisk_storagePoolSpecified[Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyRule_multipleRules[Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@Samir-Cit Samir-Cit changed the title Move Network Firewall Policy Association (global and region) resource from DCL to MMv1 Migrate Network Firewall Policy Association (global and region) resource from DCL to MMv1 Aug 19, 2024
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Aug 19, 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 ( 9 files changed, 534 insertions(+), 489 deletions(-))
google-beta provider: Diff ( 9 files changed, 534 insertions(+), 489 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 188 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 982
Passed tests: 904
Skipped tests: 72
Affected tests: 6

Click here to see the affected service packages
  • compute

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputeDisk_storagePoolSpecified
  • TestAccComputeInstance_bootDisk_storagePoolSpecified
  • TestAccComputeNetworkFirewallPolicyAssociation_networkFirewallPolicyAssociationExample
  • TestAccComputeNetworkFirewallPolicyRule_multipleRules
  • TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update
  • TestAccComputeRegionNetworkFirewallPolicyAssociation_regionNetworkFirewallPolicyAssociationExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccComputeNetworkFirewallPolicyRule_multipleRules[Debug log]
TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update[Debug log]

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccComputeDisk_storagePoolSpecified[Error message] [Debug log]
TestAccComputeInstance_bootDisk_storagePoolSpecified[Error message] [Debug log]
TestAccComputeNetworkFirewallPolicyAssociation_networkFirewallPolicyAssociationExample[Error message] [Debug log]
TestAccComputeRegionNetworkFirewallPolicyAssociation_regionNetworkFirewallPolicyAssociationExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Errors occurred during RECORDING mode. Please fix them to complete your PR.}}$

View the build log or the debug log for each test

@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Aug 21, 2024
@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1026
Passed tests: 951
Skipped tests: 74
Affected tests: 1

Click here to see the affected service packages
  • compute

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
  • TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeRegionPerInstanceConfig_removeInstanceOnDestroy[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

@Samir-Cit Samir-Cit marked this pull request as ready for review October 8, 2024 22:57
Copy link

@slevenick @c2thorn @trodge 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 @slevenick @c2thorn @trodge This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@c2thorn c2thorn removed their request for review October 15, 2024 18:22
@github-actions github-actions bot requested a review from c2thorn October 16, 2024 15:07
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Oct 16, 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 ( 11 files changed, 817 insertions(+), 460 deletions(-))
google-beta provider: Diff ( 11 files changed, 817 insertions(+), 460 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 158 insertions(+))

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field project lost its diff suppress function - reference

If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1036
Passed tests: 960
Skipped tests: 73
Affected tests: 3

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeNetworkFirewallPolicyRule_multipleRules[Debug log]
TestAccComputeNetworkFirewallPolicyRule_securityProfileGroup_update[Debug log]
TestAccComputeRegionNetworkFirewallPolicyRule_multipleRules[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

@c2thorn c2thorn removed their request for review October 16, 2024 17:59
Copy link

@GoogleCloudPlatform/terraform-team @slevenick @trodge This PR has been waiting for review for 2 weeks. Please take a look! Use the label disable-review-reminders to disable these notifications.

@github-actions github-actions bot requested a review from c2thorn October 22, 2024 14:19
@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Oct 22, 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 ( 11 files changed, 817 insertions(+), 460 deletions(-))
google-beta provider: Diff ( 11 files changed, 817 insertions(+), 460 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 158 insertions(+))

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field project lost its diff suppress function - reference

If you believe this detection to be incorrect please raise the concern with your reviewer.
If you intend to make this change you will need to wait for a major release window.
An override-breaking-change label can be added to allow merging.

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1039
Passed tests: 966
Skipped tests: 73
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@trodge trodge added the override-breaking-change Allows a potential breaking change to be merged label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants