magic-modules
magic-modules copied to clipboard
Metastore: add `auxiliary_versions` and `metadata_integration` args
Closes https://github.com/hashicorp/terraform-provider-google/issues/12108
If this PR is for Terraform, I acknowledge that I have:
- [x] 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).
- [x] Generated Terraform, and ran
make test
andmake lint
to ensure it passes unit and linter tests. - [x] 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).
- [x] Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
- [x] Read the Release Notes Guide before writing my release note below.
Release Note Template for Downstream PRs (will be copied)
metastore add `metadata_integration` and `hive_metastore_config. auxiliary_versions` args to `google_dataproc_metastore_service`
Hello! I am a robot who works on Magic Modules PRs.
I've detected that you're a community contributor. @shuyama1, a repository maintainer, has been assigned to assist you and help review your changes.
:question: 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.
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.
Diff report:
Terraform GA: Diff ( 1 file changed, 41 insertions(+)) Terraform Beta: Diff ( 3 files changed, 356 insertions(+)) TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-)) TF OiCS: Diff ( 8 files changed, 232 insertions(+))
Tests analytics
Total tests: 2110
Passed tests 1879
Skipped tests: 226
Failed tests: 5
Action taken
Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccDataprocMetastoreService_dataprocMetastoreServiceMetadataExample|TestAccDataprocMetastoreService_dataprocMetastoreServiceAuxExample|TestAccComputeInstance_soleTenantNodeAffinities|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccPrivatecaCertificateAuthority_subordinateCaActivatedByFirstPartyIssuerOnCreation
Tests passed during RECORDING mode:
TestAccDataprocMetastoreService_dataprocMetastoreServiceMetadataExample
[view]
TestAccDataprocMetastoreService_dataprocMetastoreServiceAuxExample
[view]
Tests failed during RECORDING mode:
TestAccComputeInstance_soleTenantNodeAffinities
[view]
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
[view]
TestAccPrivatecaCertificateAuthority_subordinateCaActivatedByFirstPartyIssuerOnCreation
[view]
Please fix these to complete your PR View the build log or the debug log for each test
shuyama1 gentle reminder 😊
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.
Diff report:
Terraform GA: Diff ( 1 file changed, 41 insertions(+)) Terraform Beta: Diff ( 3 files changed, 356 insertions(+)) TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-)) TF OiCS: Diff ( 8 files changed, 232 insertions(+))
Tests analytics
Total tests: 2116
Passed tests 1886
Skipped tests: 226
Failed tests: 4
Action taken
Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaserulesRelease_BasicRelease|TestAccComputeInstance_soleTenantNodeAffinities|TestAccPrivatecaCertificateAuthority_subordinateCaActivatedByFirstPartyIssuerOnCreation|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease
[view]
Tests failed during RECORDING mode:
TestAccComputeInstance_soleTenantNodeAffinities
[view]
TestAccPrivatecaCertificateAuthority_subordinateCaActivatedByFirstPartyIssuerOnCreation
[view]
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
[view]
Please fix these to complete your PR View the build log or the debug log for each test
Hi shuyama1 can you re-review and check my comments on length of name?
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.
Diff report:
Terraform GA: Diff ( 1 file changed, 41 insertions(+)) Terraform Beta: Diff ( 3 files changed, 356 insertions(+)) TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-)) TF OiCS: Diff ( 8 files changed, 232 insertions(+))
Tests analytics
Total tests: 2127
Passed tests 1892
Skipped tests: 227
Failed tests: 8
Action taken
Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccComputeInstance_networkPerformanceConfig|TestAccComputeInstance_soleTenantNodeAffinities|TestAccComputeGlobalForwardingRule_internalLoadBalancing|TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample|TestAccCloudFunctions2Function_fullUpdate
Tests passed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
[view]
TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample
[view]
TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample
[view]
TestAccCloudFunctions2Function_fullUpdate
[view]
Tests failed during RECORDING mode:
TestAccComputeInstance_networkPerformanceConfig
[view]
TestAccComputeGlobalForwardingRule_internalLoadBalancing
[view]
TestAccComputeInstance_soleTenantNodeAffinities
[view]
TestAccCloudRunService_cloudRunServiceStaticOutboundExample
[view]
Please fix these to complete your PR View the build log or the debug log for each test
@DrFaust92 Thank you so much for making the update.
Regarding the name length validation problem, I tested it locally with federation_id
set as "tf-test-fed-1-%{random_suffix}"
---[ REQUEST ]---------------------------------------
POST /v1beta/projects/shuya-terraform-test/locations/us-central1/federations?alt=json&federationId=tf-test-fed-1-y6d4yp9pko HTTP/1.1
Host: metastore.googleapis.com
User-Agent: Terraform/1.1.6 (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/acc
Content-Length: 184
Content-Type: application/json
Accept-Encoding: gzip
{
"backendMetastores": {
"1": {
"metastoreType": "DATAPROC_METASTORE",
"name": "projects/shuya-terraform-test/locations/us-central1/services/tf-test-service-1-y6d4yp9pko"
}
},
"version": "3.1.2"
}
and the test passed. Also based on the API documentation, the validation should be on federationId
itself excluding the projects/{projectNumber}/locations/{locationId}/federations/
prefix.
let me know if that's not the case for you. I could have easily missed something. Also apologize that the resource takes so long to create and the test takes forever to run.
@DrFaust92 , @shuyama1, Thank you for working on this issue. We are eagerly waiting for this change to be merged, so that we can proceed with the DPMS set up with aux version.
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.
Diff report:
Terraform GA: Diff ( 2 files changed, 43 insertions(+), 2 deletions(-)) Terraform Beta: Diff ( 6 files changed, 370 insertions(+), 14 deletions(-)) TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-)) TF OiCS: Diff ( 9 files changed, 234 insertions(+), 2 deletions(-))
Tests analytics
Total tests: 2131
Passed tests 1892
Skipped tests: 227
Failed tests: 12
Action taken
Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccComputeInstance_soleTenantNodeAffinities|TestAccComputeInstance_networkPerformanceConfig|TestAccComputeGlobalForwardingRule_internalLoadBalancing|TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample|TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample|TestAccCloudFunctions2Function_fullUpdate|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccDataprocMetastoreFederationIamPolicyGenerated|TestAccDataprocMetastoreFederationIamMemberGenerated|TestAccDataprocMetastoreFederationIamBindingGenerated|TestAccDataprocMetastoreFederation_dataprocMetastoreFederationBasicExample|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
Tests passed during RECORDING mode:
TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample
[view]
TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample
[view]
TestAccCloudFunctions2Function_fullUpdate
[view]
TestAccDataprocMetastoreFederationIamPolicyGenerated
[view]
TestAccDataprocMetastoreFederationIamMemberGenerated
[view]
TestAccDataprocMetastoreFederationIamBindingGenerated
[view]
TestAccDataprocMetastoreFederation_dataprocMetastoreFederationBasicExample
[view]
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
[view]
Tests failed during RECORDING mode:
TestAccComputeInstance_soleTenantNodeAffinities
[view]
TestAccComputeInstance_networkPerformanceConfig
[view]
TestAccComputeGlobalForwardingRule_internalLoadBalancing
[view]
TestAccCloudRunService_cloudRunServiceStaticOutboundExample
[view]
Please fix these to complete your PR View the build log or the debug log for each test
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.
Diff report:
Terraform GA: Diff ( 2 files changed, 43 insertions(+), 2 deletions(-)) Terraform Beta: Diff ( 6 files changed, 370 insertions(+), 14 deletions(-)) TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-)) TF OiCS: Diff ( 9 files changed, 234 insertions(+), 2 deletions(-))
Tests analytics
Total tests: 2132
Passed tests 1896
Skipped tests: 227
Failed tests: 9
Action taken
Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccFirebaserulesRelease_BasicRelease|TestAccComputeInstance_soleTenantNodeAffinities|TestAccComputeInstance_networkPerformanceConfig|TestAccComputeGlobalForwardingRule_internalLoadBalancing|TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample|TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccCloudFunctions2Function_fullUpdate|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
Tests passed during RECORDING mode:
TestAccFirebaserulesRelease_BasicRelease
[view]
TestAccCloudfunctions2function_cloudfunctions2BasicAuditlogsExample
[view]
TestAccCloudfunctions2function_cloudfunctions2BasicGcsExample
[view]
TestAccCloudFunctions2Function_fullUpdate
[view]
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample
[view]
Tests failed during RECORDING mode:
TestAccComputeInstance_soleTenantNodeAffinities
[view]
TestAccComputeInstance_networkPerformanceConfig
[view]
TestAccComputeGlobalForwardingRule_internalLoadBalancing
[view]
TestAccCloudRunService_cloudRunServiceStaticOutboundExample
[view]
Please fix these to complete your PR View the build log or the debug log for each test
@DrFaust92 Thanks for your contribution!