-
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
pubsub: additional test permissions fixes #12311
pubsub: additional test permissions fixes #12311
Conversation
Remove duplicated permissions, and work around terraform `depends_on` with some additional logic. Rename terraform resources `bigquery_foo_xxx` instead of just `editor` / `viewer`, to avoid confusion with project viewer / editor roles. Followup to GoogleCloudPlatform#12095 Part of hashicorp/terraform-provider-google#20274 Part of hashicorp/terraform-provider-google#20262 Fixes hashicorp/terraform-provider-google#20261
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hopefully this resolves some or all of the issues from my previous PR. Heads up to @melinath @SarahFrench |
|
||
resource "google_service_account" "bq_write_service_account" { | ||
account_id = "{{index $.Vars "service_account_id"}}" | ||
display_name = "BQ Write Service Account" | ||
} | ||
|
||
resource "google_project_iam_member" "viewer" { | ||
resource "google_project_iam_member" "bigquery_metadata_viewer" { |
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.
this and the other changes in this file shouldn't change any behavior -- just a slight readability / understandability adjustment.
I can revert the changes in this file if desired.
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 55 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
|
Remove duplicated permissions, and work around terraform
depends_on
with some additional logic.Rename terraform resources
bigquery_foo_xxx
instead of justeditor
/viewer
, to avoid confusion with project viewer / editor roles.Followup to #12095
I am pretty sure this will fix the last item; left the other two marked as "part of" in case this doesn't resolve those, but since those the two generated tests have
test_vars_overrides
for bootstrapping that this would have interfered with, hopefully this helps with any such issues.Part of hashicorp/terraform-provider-google#20274
Part of hashicorp/terraform-provider-google#20262
Fixes hashicorp/terraform-provider-google#20261
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.