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 #2803

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 requested a review from a team as a code owner September 16, 2024 11:53
@modular-magician modular-magician requested review from ScottSuarez and removed request for a team September 16, 2024 11:53
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician merged commit 52b0d8a into GoogleCloudPlatform:main Sep 16, 2024
3 of 5 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