-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix buggy IAM import tests previously excluded using skip_import_test
#7240
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
Fix buggy IAM import tests previously excluded using skip_import_test
#7240
Conversation
|
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 ( 3 files changed, 8 insertions(+), 8 deletions(-)) |
8da4973 to
3cc0a5b
Compare
|
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 ( 5 files changed, 16 insertions(+), 16 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccDataprocMetastoreFederationIamMemberGenerated|TestAccDataprocMetastoreFederationIamBindingGenerated|TestAccRegionInstanceGroupManager_stateful|TestAccComputeMachineImage_machineImageBasicExample|TestAccComputeMachineImage_computeMachineImageKmsExample|TestAccApiGatewayApiConfig_apigatewayApiConfigFullExample|TestAccApiGatewayGateway_apigatewayGatewayBasicExampleUpdated|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExample|TestAccApiGatewayGateway_apigatewayGatewayFullExample|TestAccApiGatewayGateway_apigatewayGatewayBasicExample|TestAccApiGatewayApi_apigatewayApiBasicExampleUpdated|TestAccApiGatewayApi_apigatewayApiFullExample|TestAccApiGatewayApi_apigatewayApiBasicExample|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExampleUpdated|TestAccApigeeAddonsConfig_apigeeAddonsTestExample|TestAccApiGatewayApiConfig_apigatewayApiConfigGrpcFullExample|TestAccDataprocMetastoreFederationIamPolicyGenerated|TestAccApiGatewayApiConfig_apigatewayApiConfigGrpcExample|TestAccRuntimeConfigConfigIamPolicyGenerated|TestAccFirebaserulesRelease_BasicRelease|TestAccComputeMachineImageIamPolicyGenerated_withCondition|TestAccFrameworkProviderMeta_setModuleName|TestAccComputeMachineImageIamMemberGenerated_withCondition|TestAccBigqueryDatapolicyDataPolicyIamPolicyGenerated|TestAccApiGatewayGatewayIamBindingGenerated|TestAccApiGatewayApiIamPolicyGenerated|TestAccApiGatewayApiIamMemberGenerated|TestAccBigqueryDatapolicyDataPolicyIamMemberGenerated|TestAccApiGatewayApiIamBindingGenerated|TestAccApiGatewayApiConfigIamPolicyGenerated|TestAccApiGatewayApiConfigIamMemberGenerated|TestAccComputeMachineImageIamBindingGenerated_withCondition|TestAccApiGatewayGatewayIamPolicyGenerated|TestAccApiGatewayGatewayIamMemberGenerated|TestAccComputeMachineImageIamPolicyGenerated|TestAccComputeMachineImageIamMemberGenerated|TestAccComputeMachineImageIamBindingGenerated|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceDnsManagedZone_basic|TestAccApiGatewayApiConfigIamBindingGenerated|TestAccDataprocMetastoreFederation_dataprocMetastoreFederationBigqueryExample|TestAccDataprocMetastoreFederation_dataprocMetastoreFederationBasicExample |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
3cc0a5b to
02c4fe4
Compare
|
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 ( 5 files changed, 16 insertions(+), 16 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccDataprocMetastoreFederationIamBindingGenerated|TestAccDataprocMetastoreFederationIamMemberGenerated|TestAccDataprocMetastoreFederationIamPolicyGenerated|TestAccApiGatewayApiConfigIamPolicyGenerated|TestAccFrameworkProviderMeta_setModuleName|TestAccApiGatewayApiConfigIamMemberGenerated|TestAccDataprocMetastoreFederation_dataprocMetastoreFederationBigqueryExample|TestAccDataprocMetastoreFederation_dataprocMetastoreFederationBasicExample|TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccApigeeAddonsConfig_apigeeAddonsTestExample|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExample|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExampleUpdated|TestAccApiGatewayApiConfigIamBindingGenerated|TestAccDataSourceDnsRecordSet_basic|TestAccDataSourceDnsManagedZone_basic |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
ffc6386 to
bc3493b
Compare
|
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 ( 5 files changed, 16 insertions(+), 16 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccLoggingBucketConfigProject_cmekSettings|TestAccApiGatewayApiConfigIamPolicyGenerated|TestAccApiGatewayApiConfigIamMemberGenerated|TestAccApiGatewayApiConfigIamBindingGenerated|TestAccComputeForwardingRule_update|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExampleUpdated|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExample|TestAccApigeeAddonsConfig_apigeeAddonsTestExample |
|
Tests passed during RECORDING mode: All tests passed |
|
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 ( 5 files changed, 16 insertions(+), 16 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccApiGatewayApiConfigIamPolicyGenerated|TestAccApiGatewayApiConfigIamMemberGenerated|TestAccApiGatewayApiConfigIamBindingGenerated|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExample|TestAccApiGatewayGatewayIamMemberGenerated|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExampleUpdated|TestAccApiGatewayGatewayIamPolicyGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
|
For the last tests, this is the error showing the expected ID for the resource: Here's the actual name from the debug logs: I'll re-ignore those tests and leave it at that 😆 |
|
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 ( 5 files changed, 16 insertions(+), 16 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccApiGatewayApiConfig_apigatewayApiConfigBasicExampleUpdated|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExample|TestAccApiGatewayGatewayIamPolicyGenerated|TestAccApiGatewayApiConfigIamPolicyGenerated|TestAccApiGatewayApiConfigIamBindingGenerated|TestAccApiGatewayApiConfigIamMemberGenerated |
|
Tests passed during RECORDING mode: All tests passed |
| primary_resource_name: "fmt.Sprintf(\"tf-test-my-api%s\", context[\"random_suffix\"])" | ||
| vars: | ||
| name: "api" | ||
| api_id: "my-api" |
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.
Explanation: I updated the name of the vars because in tests where 3 names were being passed in it was easier to understand if they all had consistent names that matched the argument they were used for. For consistency I did this across all tests.
I updated the value to include a hyphen, as presence of the hyphen is needed to cause the generated test code to include tf-test- at the start of the value and the random suffix (from context) at the end.
a439152 to
a1240be
Compare
|
Just rebased the branch and fixed a merge conflict due to the |
Co-authored-by: Riley Karson <[email protected]>
|
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 ( 5 files changed, 16 insertions(+), 16 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 12 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaserulesRelease_BasicRelease|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExample|TestAccApiGatewayApiConfig_apigatewayApiConfigBasicExampleUpdated|TestAccApigeeAddonsConfig_apigeeAddonsTestExample|TestAccLoggingBucketConfigProject_cmekSettings|TestAccWorkstationsWorkstationConfig_workstationConfigEncryptionKeyExample|TestAccBigqueryDatapolicyDataPolicyIamPolicyGenerated|TestAccBigqueryDatapolicyDataPolicyIamMemberGenerated|TestAccApiGatewayApiConfigIamPolicyGenerated|TestAccDataSourceDnsManagedZone_basic|TestAccApiGatewayApiConfigIamBindingGenerated|TestAccApiGatewayApiConfigIamMemberGenerated |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
|
Failing VCR test isn't related to this PR; merging! |
…t` (GoogleCloudPlatform#7240) * Add ability to skip import steps in IAM resource tests * Fix ApiGateway IAM import tests * Fix Compute MachineImage IAM import tests * Fix DataprocMetastore Federation IAM import tests * Remove `skip_import_test` from ApiConfig and Gateway resources * Re-add import step skipping in IAM acc tests * Update mmv1/products/apigateway/terraform.yaml Co-authored-by: Riley Karson <[email protected]> --------- Co-authored-by: Riley Karson <[email protected]>
…t` (GoogleCloudPlatform#7240) * Add ability to skip import steps in IAM resource tests * Fix ApiGateway IAM import tests * Fix Compute MachineImage IAM import tests * Fix DataprocMetastore Federation IAM import tests * Remove `skip_import_test` from ApiConfig and Gateway resources * Re-add import step skipping in IAM acc tests * Update mmv1/products/apigateway/terraform.yaml Co-authored-by: Riley Karson <[email protected]> --------- Co-authored-by: Riley Karson <[email protected]>
Relates to hashicorp/terraform-provider-google#12610
This PR:
skip_import_testfrom some resources so that the IAM acceptance tests include import stepsIf this PR is for Terraform, I acknowledge that I have:
make testandmake lintto ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)