-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
compute_snapshot datasource added #6527
compute_snapshot datasource added #6527
Conversation
Hello! I am a robot who works on Magic Modules PRs. I've detected that you're a community contributor. @rileykarson, a repository maintainer, has been assigned to assist you and help review your changes. ❓ First time contributing? Click here for more detailsYour assigned reviewer will help review your code by:
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. |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
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.
This is failing to build- holding on review until that passes.
Also, can you format the release note according to the release notes guide? Thanks!
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
38d574c
to
6874b3e
Compare
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccSnapshotDatasource_filter_mostRecent|TestAccSnapshotDatasource_filter|TestAccSnapshotDatasource_name|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCGCSnippet_eventarcWorkflowsExample |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
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.
What issue(s) does this PR address? The filter and most_recent
behaviour are not standard for a single-resource datasource, so I want to make sure we're not introducing additional complexity / surface we have to maintain without a justification.
This PR addresses this issue - Disk snapshot data source #3382 . |
mmv1/third_party/terraform/website/docs/d/compute_snapshot.html.markdown
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/d/compute_snapshot.html.markdown
Show resolved
Hide resolved
@@ -232,6 +232,7 @@ func Provider() *schema.Provider { | |||
"google_compute_resource_policy": dataSourceGoogleComputeResourcePolicy(), | |||
"google_compute_router": dataSourceGoogleComputeRouter(), | |||
"google_compute_router_status": dataSourceGoogleComputeRouterStatus(), | |||
"google_compute_snapshot": dataSourceGoogleComputeSnapshot(), |
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.
nit: The spacing here uses tabs rather than spaces.
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.
fixed
mmv1/third_party/terraform/website/docs/d/compute_snapshot.html.markdown
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/data_sources/data_source_google_compute_snapshot.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/data_sources/data_source_google_compute_snapshot.go.erb
Show resolved
Hide resolved
mmv1/third_party/terraform/data_sources/data_source_google_compute_snapshot.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/data_sources/data_source_google_compute_snapshot.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/data_sources/data_source_google_compute_snapshot.go.erb
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/d/compute_snapshot.html.markdown
Outdated
Show resolved
Hide resolved
Thanks! The issue clarifies why we'd want those behaviours. |
…r user project overrides on new api calls, and fix the documentation
…nto data_source_compute_snapshot
…shDhokai/magic-modules into data_source_compute_snapshot
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccComputeInstance_soleTenantNodeAffinities|TestAccCGCSnippet_eventarcWorkflowsExample|TestAccSnapshotDatasource_filter_mostRecent|TestAccSnapshotDatasource_filter |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
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.
Couple minor comments, otherwise looks good!
mmv1/third_party/terraform/data_sources/data_source_google_compute_snapshot.go.erb
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/tests/data_source_google_compute_snapshot_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/website/docs/d/compute_snapshot.html.markdown
Outdated
Show resolved
Hide resolved
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample|TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCGCSnippet_eventarcWorkflowsExample|TestAccSnapshotDatasource_filterMostRecent |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccComputeInstance_soleTenantNodeAffinities |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Hi @rileykarson, Could you please Merge this PR as it's approved? |
fixes hashicorp/terraform-provider-google#3382
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)