Add acceptance tests for how provider handles project
arguments
#8184
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds acc tests to test how the provider handles the project argument, using the new datasources
google_provider_config_plugin_framework
andgoogle_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