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

Add acceptance tests for how provider handles project arguments #8184

Conversation

modular-magician
Copy link
Collaborator

This PR adds acc tests to test how the provider handles the project argument, using the new datasources google_provider_config_plugin_framework and google_provider_config_sdk.

In the existing unit tests there is a test case in the TestFrameworkProvider_LoadAndValidateFramework_project test called "when project is an unknown value, the provider treats it as if it's unset and uses an environment variable instead".

I added a test case called "when project is unknown in the config, environment variables are used" in the new SDK and PF acc tests. However the test case is flakey and has different outcomes on different runs. Because of this I'm going to leave testing unknown handling to unit tests only.

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#11607

…1607)

[upstream:0bfab18268aa0c26a70c76a3e136ce2c753fcb75]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 9547163 into hashicorp:main Sep 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant