-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 billing_project
arguments
#11610
Add acceptance tests for how provider handles billing_project
arguments
#11610
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
05841af
to
e7c2dd8
Compare
mmv1/third_party/terraform/fwprovider/framework_provider_billing_project_test.go
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mmv1/third_party/terraform/fwprovider/framework_provider_billing_project_test.go
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6a74dea
to
e78cd7b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
e78cd7b
to
5071cbd
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
Hi @NickElliot - I've currently stuck with something in this PR that seems related to the VCR test project, or specifically to tests running on PRs. It's odd! The TestAccSdkProvider_billing_project test that's failing here is failing because the test expects errors but doesn't experience any. However there should be an error, as the test is structured to cause one. When the SDK test is run in TeamCity (using the VCR project) the test passes as expected. Any idea what could be causing this? I'm stuck... the solution could just be to skip in VCR? |
@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label |
@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 2 weeks. Please take a look! Use the label |
@NickElliot , could you please take a look at this PR? If you're at capacity with work I can reassign, just let me know! Similar for #11686 |
Hey @c2thorn, here's the PR where I need a bit of help figuring out why tests behave differently when I run them locally vs on this PR. There's a message summarising the issue here : #11610 (comment) |
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.
tentative lgtm depending on how you want to address https://github.com/GoogleCloudPlatform/magic-modules/pull/11610/files#r1811341541
Tests analyticsTotal tests: 4209 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
I'd missed that 2 tests are failing in TestAccSdkProvider_billing_project. I'll confirm that it passes ok in the nightlies and then make it skip in VCR too. Edit: confirmed. |
Tests analyticsTotal tests: 4209 Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
Going ahead with merge! |
Ah dammit, it failed in the nightlies: https://hashicorp.teamcity.com/buildConfiguration/TerraformProviders_GoogleCloud_GOOGLE_NIGHTLYTESTS_GOOGLE_PACKAGE_PROVIDER/254854?branch=refs%2Fheads%2Fnightly-test&buildTypeTab=overview&mode=builds&hideTestsFromDependencies=false&buildTab=tests&expandedTest=build%3A%28id%3A254854%29%2Cid%3A2000000015 I'll ask in the team channel about how to use billing_project and user_project_override together |
For completeness, noting here: The tests failed in VCR due to hashicorp/terraform-provider-google#20019 This is why the test passes when run outside of VCR mode and failed in VCR mode. The failure identified here is just bad luck and unrelated to the VCR-related confusion! |
This PR adds acceptance tests for usage of
billing_project
that demonstrate:billing_project
+user_project_override=false
to show that billing_project has no impact thenbilling_project
+user_project_override=true
to show that billing_project does have impact thenNOTE: I added some usage tests for the PF provider, but they should be replaced in future because being limited to Firebase data sources to test the PF provider makes the test very awkward
Release Note Template for Downstream PRs (will be copied)