Skip to content

adding security_policy field in regionBackendService resource#8208

Merged
slevenick merged 7 commits into
GoogleCloudPlatform:mainfrom
felipegc:add-region-security-policy-in-region-backend-service
Jul 20, 2023
Merged

adding security_policy field in regionBackendService resource#8208
slevenick merged 7 commits into
GoogleCloudPlatform:mainfrom
felipegc:add-region-security-policy-in-region-backend-service

Conversation

@felipegc

Copy link
Copy Markdown
Contributor

fixes:
hashicorp/terraform-provider-google#14987

Adding security_policy field in google_compute_region_backend_service resource.

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • [] Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

Compute: added `security_policy` field to `google_compute_region_backend_service` resource(beta)

@modular-magician

Copy link
Copy Markdown
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I've detected that you're a community contributor. @slevenick, a repository maintainer, has been assigned to assist you and help review your changes.

❓ First time contributing? Click here for more details

Your assigned reviewer will help review your code by:

  • Ensuring it's backwards compatible, covers common error cases, etc.
  • Summarizing the change into a user-facing changelog note.
  • Passes tests, either our "VCR" suite, a set of presubmit tests, or with manual test runs.

You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails.

If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox.


@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 Jun 26, 2023

@slevenick slevenick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like there are merge conflicts. Can you fix those?

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jun 27, 2023
@felipegc

Copy link
Copy Markdown
Contributor Author

@slevenick Thanks for warning me that. I fixed the conflicts. Could you please continue with the code review?

@felipegc

felipegc commented Jul 7, 2023

Copy link
Copy Markdown
Contributor Author

@slevenick Is there anything else I have to do to proceed with the code review? Thanks

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 7, 2023
@modular-magician

Copy link
Copy Markdown
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.

Terraform GA: Diff ( 2 files changed, 8 insertions(+))
Terraform Beta: Diff ( 4 files changed, 138 insertions(+))
TF Conversion: Diff ( 3 files changed, 7 insertions(+), 3 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_region_backend_service (0 total tests)
Untested fields: security_policy

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2831
Passed tests 2533
Skipped tests: 295
Affected tests: 3

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
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules|TestAccComputeRegionBackendService_withSecurityPolicy

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccComputeRegionBackendService_withSecurityPolicy[Debug log]

Tests failed during RECORDING mode:
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

Please fix these 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 need reviewer's approval to run presubmit tests label Jul 11, 2023
@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 11, 2023
@modular-magician

Copy link
Copy Markdown
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.

Terraform GA: Diff ( 1 file changed, 4 insertions(+))
Terraform Beta: Diff ( 3 files changed, 160 insertions(+))
TF Conversion: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_region_backend_service (87 total tests)
Untested fields: security_policy

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2849
Passed tests 2551
Skipped tests: 295
Affected tests: 3

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
TestAccComputeRegionBackendService_withSecurityPolicy|TestAccComputeFirewallPolicyRule_multipleRules|TestAccContainerAwsNodePool_BetaBasicHandWritten

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

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

Rerun these tests in REPLAYING mode to catch issues

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


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

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@felipegc

Copy link
Copy Markdown
Contributor Author

@slevenick Is there anything else from my side? Thanks

@slevenick slevenick self-requested a review July 20, 2023 15:03

@slevenick slevenick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. Only issue is that the YAML file is not passing linting, can you fix that?

I'm not sure exactly why, it looks fine to my eye, but you may need to run the linter locally to see the error

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 20, 2023
@felipegc

Copy link
Copy Markdown
Contributor Author

Looks good to me. Only issue is that the YAML file is not passing linting, can you fix that?

I'm not sure exactly why, it looks fine to my eye, but you may need to run the linter locally to see the error

Thanks for pointing that out. I had duplicated the "min_version: beta" definition. Ready for review again.

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 20, 2023
@modular-magician

Copy link
Copy Markdown
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.

Terraform GA: Diff ( 1 file changed, 4 insertions(+))
Terraform Beta: Diff ( 3 files changed, 160 insertions(+))
TF Conversion: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_compute_region_backend_service (87 total tests)
Untested fields: security_policy

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2873
Passed tests 2571
Skipped tests: 299
Affected tests: 3

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
TestAccSpannerDatabaseIamPolicy|TestAccComputeFirewallPolicyRule_multipleRules|TestAccContainerAwsNodePool_BetaBasicHandWritten

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

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

Rerun these tests in REPLAYING mode to catch issues

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


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

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@slevenick slevenick merged commit 779c348 into GoogleCloudPlatform:main Jul 20, 2023
melinath pushed a commit that referenced this pull request Jul 20, 2023
* adding security_policy field in regionBackendService resource

* fixing code review to use http calls instead of lib in RegionBackendService

* removing ParseSecurityPolicyRegionalFieldValue method

* fixing lint issue
ericayyliu pushed a commit to ericayyliu/magic-modules that referenced this pull request Jul 26, 2023
…CloudPlatform#8208)

* adding security_policy field in regionBackendService resource

* fixing code review to use http calls instead of lib in RegionBackendService

* removing ParseSecurityPolicyRegionalFieldValue method

* fixing lint issue
NickElliot pushed a commit to NickElliot/magic-modules that referenced this pull request Jul 31, 2023
…CloudPlatform#8208)

* adding security_policy field in regionBackendService resource

* fixing code review to use http calls instead of lib in RegionBackendService

* removing ParseSecurityPolicyRegionalFieldValue method

* fixing lint issue
DanielRieske pushed a commit to bschaatsbergen/magic-modules that referenced this pull request Aug 2, 2023
…CloudPlatform#8208)

* adding security_policy field in regionBackendService resource

* fixing code review to use http calls instead of lib in RegionBackendService

* removing ParseSecurityPolicyRegionalFieldValue method

* fixing lint issue
shuyama1 pushed a commit that referenced this pull request Aug 3, 2023
* adding security_policy field in regionBackendService resource

* fixing code review to use http calls instead of lib in RegionBackendService

* removing ParseSecurityPolicyRegionalFieldValue method

* fixing lint issue
hao-nan-li pushed a commit to hao-nan-li/magic-modules that referenced this pull request Aug 9, 2023
…CloudPlatform#8208)

* adding security_policy field in regionBackendService resource

* fixing code review to use http calls instead of lib in RegionBackendService

* removing ParseSecurityPolicyRegionalFieldValue method

* fixing lint issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants