-
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 Resource SCC V2 Project Nofitification Config #10964
Add Resource SCC V2 Project Nofitification Config #10964
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @BBBmau, 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. |
Hi @BBBmau, can you please approve the trigger so that CI will continue the next steps. Thanks. |
@BBBmau This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
Heads up that #10817 is extremely related. I would ask that you please make every attempt to test this implementation locally, as I'm asking the other contributor to do, to avoid a high volume of requests to trigger CI runs. |
@GoogleCloudPlatform/terraform-team @BBBmau This PR has been waiting for review for 1 week. Please take a look! Use the label |
@BBBmau Just to follow up on the above, I was able to follow up with this contributor over chat, and they were able to get their local setup working up to the point where the pubsub_topic needs to be created. Their test environment prevents topic creation for the moment, so they can't fully run these tests locally, and the manager of their environment is OOO for 2+ weeks. That is to say, we will need to rely on CI runs (and manual approvals) for testing this PR. |
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: 6859 Click here to see the affected service packages
Action takenFound 9 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Hey @BBBmau, can you please approve the trigger to run the next steps. Thanks. |
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: 3825 Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
@BBBmau This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
@vijaykanthm, this PR is waiting for action from you. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. If no action is taken, this PR will be closed in 28 days. This notification can be disabled with the |
Hi @BBBmau, can you please approve the trigger so that CI will continue the next steps. Thanks. |
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: 6 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
f0b9804
to
7027630
Compare
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_scc_v2_project_notification_config" "primary" {
project_id = # value needed
}
|
Tests analyticsTotal tests: 7 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
mmv1/templates/terraform/examples/scc_v2_project_notification_config_basic.tf.erb
Show resolved
Hide resolved
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: 7 Click here to see the affected service packages
View the build log |
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.
Was able to take one last in-depth review of this now that tests are passing, these involve checking that the docs and PR match.
I noticed that streamingConfig
is not marked as required, but based on the purpose of this new resource it's safe to assume that this streamingConfig is necessary.
function: 'validation.StringLenBetween(0, 1024)' | ||
- !ruby/object:Api::Type::String | ||
name: pubsubTopic | ||
required: true |
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.
Looking over the docs, it looks like it shouldn't be marked as required. Is their other documentation that supports having it be set to required? docs: https://cloud.google.com/security-command-center/docs/reference/rest/v2/projects.locations.notificationConfigs
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.
I don't think there is any other documentation and the current documentation also are vague which doesn't explicitly mention if they are required or not. Based on other contemporary config files I have put it as required, I can remove the field. Let me know if I can remove it.
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.
Let's remove it so that it matches the documentation.
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.
Removed.
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: 12 Click here to see the affected service packages
View the build log |
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.
I appreciate your patience in regards to the requested changes, all looks good now!
…m#10964) Co-authored-by: Mauricio Alvarez Leon <[email protected]>
…m#10964) Co-authored-by: Mauricio Alvarez Leon <[email protected]>
Related to http://b/309603080.
Bug Description: hashicorp/terraform-provider-google#16427
Adding new template for SCC API V2 Project Notification Config
https://cloud.google.com/security-command-center/docs/reference/rest/v2/projects.locations.notificationConfigs
Release Note Template for Downstream PRs (will be copied)