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

Add protocol field for filestore Instance product #10324

Merged
merged 5 commits into from
Apr 17, 2024

Conversation

DendoD96
Copy link
Contributor

@DendoD96 DendoD96 commented Mar 29, 2024

Fixes hashicorp/terraform-provider-google#17523. As NFSv4.1 is in preview, this feature is available only for google-beta provider.

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).
  • 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 the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

filestore: Added `protocol` property for `google_filestore_instance` instance to support NFSv3 and NFSv4.1

Copy link

google-cla bot commented Mar 29, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

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

@rileykarson, 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 rileykarson March 29, 2024 13:34
@DendoD96
Copy link
Contributor Author

DendoD96 commented Apr 8, 2024

Hi @rileykarson, can you take a look please?

Best regards,
Daniele

@rileykarson
Copy link
Member

/gcbrun

@modular-magician modular-magician added awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests service/filestore and removed awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests labels Apr 8, 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 ( 1 file changed, 37 insertions(+))
google-beta provider: Diff ( 3 files changed, 113 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 11
Passed tests: 0
Skipped tests: 0
Affected tests: 11

Click here to see the affected service packages
  • filestore

Action taken

Found 11 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccFilestoreBackup_filestoreBackupBasicExample|TestAccFilestoreBackup_update|TestAccFilestoreInstanceDatasource_basic|TestAccFilestoreInstance_filestoreInstanceBasicExample|TestAccFilestoreInstance_filestoreInstanceFullExample|TestAccFilestoreInstance_filestoreInstanceProtocolExample|TestAccFilestoreInstance_reservedIpRange_update|TestAccFilestoreInstance_restore|TestAccFilestoreInstance_update|TestAccFilestoreSnapshot_filestoreSnapshotBasicExample|TestAccFilestoreSnapshot_filestoreSnapshotFullExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccFilestoreBackup_filestoreBackupBasicExample[Debug log]
TestAccFilestoreBackup_update[Debug log]
TestAccFilestoreInstanceDatasource_basic[Debug log]
TestAccFilestoreInstance_filestoreInstanceBasicExample[Debug log]
TestAccFilestoreInstance_filestoreInstanceFullExample[Debug log]
TestAccFilestoreInstance_filestoreInstanceProtocolExample[Debug log]
TestAccFilestoreInstance_reservedIpRange_update[Debug log]
TestAccFilestoreInstance_restore[Debug log]
TestAccFilestoreInstance_update[Debug log]
TestAccFilestoreSnapshot_filestoreSnapshotBasicExample[Debug log]
TestAccFilestoreSnapshot_filestoreSnapshotFullExample[Debug log]

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


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

@DendoD96
Copy link
Contributor Author

Hello @rileykarson,
terraform-google-conversion-build-and-unit-tests are broken, but I don't know how to fix (if I can).
Can you give me a suggestion?

Best regards,
Daniele

@rileykarson
Copy link
Member

Ah- that's an overly-brittle test for an addon. You should just need to add an entry like "protocol": "NFS_V3" to https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/tgc/tests/data/example_filestore_instance.json

@DendoD96
Copy link
Contributor Author

Thank you,
sorry for the oversight 😥

@rileykarson
Copy link
Member

There are no materials in our docs covering that and no (reasonable) way to have caught that in local development, all good! I figure these out when I get a failure message too, ha. Really gotta fix the tight coupling between the provider and the TGC addon.

/gcbrun

@modular-magician modular-magician added the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Apr 10, 2024
@DendoD96
Copy link
Contributor Author

Hi @rileykarson, just another question: why community-checker (graphite-docker-images) is in a waiting state?

@rileykarson
Copy link
Member

I need to kick it, sorry about the delay. Thought there was an email before I had to do anything. Done that.

@modular-magician modular-magician removed the awaiting-approval Pull requests that needs reviewer's approval to run presubmit tests label Apr 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 ( 1 file changed, 37 insertions(+))
google-beta provider: Diff ( 3 files changed, 113 insertions(+))
terraform-google-conversion: Diff ( 2 files changed, 12 insertions(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 11
Passed tests: 11
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • filestore

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

@github-actions github-actions bot requested a review from rileykarson April 17, 2024 17:24
@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 Apr 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 ( 1 file changed, 37 insertions(+))
google-beta provider: Diff ( 3 files changed, 117 insertions(+))
terraform-google-conversion: Diff ( 2 files changed, 12 insertions(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 11
Passed tests: 11
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages
  • filestore

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

Copy link
Member

@rileykarson rileykarson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@rileykarson rileykarson merged commit a508f99 into GoogleCloudPlatform:main Apr 17, 2024
14 checks passed
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request Apr 19, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request May 8, 2024
pawelJas pushed a commit to pawelJas/magic-modules that referenced this pull request May 16, 2024
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
Cheriit pushed a commit to Cheriit/magic-modules that referenced this pull request Jun 4, 2024
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
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.

Add support for specifying Protocol on Filestore instance deployments
3 participants