Skip to content
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

Alias provider settings are not working at VCR #20019

Open
rileykarson opened this issue Oct 24, 2024 · 1 comment
Open

Alias provider settings are not working at VCR #20019

rileykarson opened this issue Oct 24, 2024 · 1 comment

Comments

@rileykarson
Copy link
Collaborator

rileykarson commented Oct 24, 2024

What kind of contribution is this issue about?

Other (specify in details)

Details

Discussion in https://chat.google.com/room/AAAA49vo02s/fAKok131h5c (limited access), although VCR logs are likely to go stale. This can be observed in TestAccContainerCluster_withResourceUsageExportConfig although the underlying test doesn't need the setting so it will still pass. TestAccSdkProvider_billing_project__GOOGLE_CLOUD_QUOTA_PROJECT_environment_variable_interferes_with_the_billing_account_value_used and TestAccSdkProvider_billing_project__using_billing_account_alone_doesn't_impact_provisioning,_but_using_together_with_user_project_override_does are affected (and faster to run) but are currently skipped in VCR.

References

No response

@rileykarson
Copy link
Collaborator Author

Root cause from @SarahFrench in GoogleCloudPlatform/magic-modules#11610 (comment):

When the test runs in VCR mode the unaliased provider is the first to be configured, so its Config struct is cached. Later when the aliased provider is used in the test the provider arguments are effectively ignored because the aliased provider pulls in the Config of the un-aliased provider (which was configured with different arguments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants