-
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
Handle bigquery_reservation_capacity_commitment creation when capacity_commitment_id is unspecified #9293
Conversation
…y_commitment_id is unspecified
Hello! I am a robot. It looks like you are a: @zli82016, 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. |
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, 65 insertions(+), 28 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigQueryDataTable_bigtable|TestAccBigqueryReservationCapacityCommitment_bigqueryReservationCapacityCommitmentNoIdExample|TestAccBigqueryReservationCapacityCommitment_bigqueryReservationCapacityCommitmentBasicExample |
Rerun these tests in REPLAYING mode to catch issues
|
Test error:
I'm not familiar with |
In tests, it also verifies if import works or not. You can check what has been changed in the provider through this link https://github.com/modular-magician/terraform-provider-google-beta/compare/auto-pr-9293-old..auto-pr-9293 |
You may try to use |
Thank you, that's a very handy link. Is it in the contributor guide somewhere? Meanwhile, I don't quite understand how 1) my change to |
You can check the diff report comment in this PR to find the I don't think it is in the contributor guide https://googlecloudplatform.github.io/magic-modules/. |
|
mmv1/templates/terraform/examples/bigquery_reservation_capacity_commitment_no_id.tf.erb
Show resolved
Hide resolved
Yeah, |
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, 68 insertions(+), 25 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigqueryReservationCapacityCommitment_bigqueryReservationCapacityCommitmentNoIdExample|TestAccBigqueryReservationCapacityCommitment_bigqueryReservationCapacityCommitmentBasicExample |
|
New test error:
From the log in the test, ID was set correctly: "[DEBUG] Finished creating CapacityCommitment", so what does the error message mean by "The provider returned a resource missing an identifier during ImportResourceState"? |
It looks like it becomes much more complicated to modify the id. Can you please try the recommendation in the comment? Also, I think encoder is needed to set the field
|
I don't feel like |
With the current option to modify the id format, you have to use the Another problem is the url for |
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, 73 insertions(+), 25 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 5 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigqueryReservationCapacityCommitment_bigqueryReservationCapacityCommitmentNoIdExample|TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample|TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample|TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccDataSourceGoogleServiceAccountJwt |
Rerun these tests in REPLAYING mode to catch issues
|
Looks like either way we'll need to introduce something custom - encoder or Import. I prefer using |
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. Thanks for working on it.
Fixes hashicorp/terraform-provider-google#16204.
Release Note Template for Downstream PRs (will be copied)