-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 data source for google_compute_region_disk #9421
Conversation
Hello! I am a robot. It looks like you are a: Community Contributor @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. |
@estebanbouza Thanks for working on this! Would you mind checking the internal contribution page to get your GH account registered so that the tests will automatically run for your changes in the future. Thanks! |
/gcbrun |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataSourceGoogleComputeRegionDisk_basic |
|
Haven't looked closely into the change, only checked the failed tests. It's due to a missing required field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Some comments regarding tests and docs
mmv1/third_party/terraform/services/compute/data_source_google_compute_region_disk_test.go
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/d/compute_region_disk.html.markdown
Outdated
Show resolved
Hide resolved
…html.markdown Include documentation suggestion Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments have been addressed and VCR tests passing locally.
mmv1/third_party/terraform/services/compute/data_source_google_compute_region_disk_test.go
Show resolved
Hide resolved
@shuyama1 thanks for the detailed review. All comments should be addressed now. All tests passing locally. There's a merge conflict but I believe that's part of the auto-generated code? Let me know if you require any further changes. Thanks! |
@estebanbouza Thanks for the update! We've moved out the resource/datasource map from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. Only one small nit-pick and test should be triggered after the merge conflict is resolved.
mmv1/third_party/terraform/services/compute/data_source_google_compute_region_disk_test.go
Outdated
Show resolved
Hide resolved
…_compute_region_disk_test.go Co-authored-by: Shuya Ma <87669292+shuyama1@users.noreply.github.com>
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 4 files changed, 152 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccDataSourceGoogleComputeRegionDisk_basic |
Rerun these tests in REPLAYING mode to catch issues
|
@shuyama1 changes applied, merging done, tests passing. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one nitpick. Should be good to go after. Thanks!
"google_compute_region_instance_group": compute.DataSourceGoogleComputeRegionInstanceGroup(), | ||
"google_compute_region_instance_template": compute.DataSourceGoogleComputeRegionInstanceTemplate(), | ||
"google_compute_region_disk": compute.DataSourceGoogleComputeRegionDisk(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only nit - let's move google_compute_region_disk
before google_compute_region_instance_group
and revert the change of google_compute_router
to follow the alphabetical order. Sorry for the nit-picks
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 4 files changed, 151 insertions(+), 1 deletion(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccGKEHub2Fleet_gkehubFleetBasicExample_update |
Rerun these tests in REPLAYING mode to catch issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This change adds support for a data source for
google_compute_region_disk
.Fixes hashicorp/terraform-provider-google#16462
Release Note Template for Downstream PRs (will be copied)