Skip to content

Update create_url updateMask for google_chronicle_rule_deployment res… #13053

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

Conversation

ankitgoyal0301
Copy link
Contributor

@ankitgoyal0301 ankitgoyal0301 commented Feb 12, 2025

…ource

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

chronicle: fixed creation issues when optional fields were missing for `google_chronicle_rule_deployment` resource

@github-actions github-actions bot requested a review from ScottSuarez February 12, 2025 12:32
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@ScottSuarez, 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.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google-beta provider: Diff ( 1 file changed, 18 insertions(+), 1 deletion(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 20
Passed tests: 17
Skipped tests: 1
Affected tests: 2

Click here to see the affected service packages
  • chronicle

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccChronicleRuleDeployment_chronicleRuledeploymentBasicExample
  • TestAccChronicleRuleDeployment_chronicleRuledeploymentBasicExample_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccChronicleRuleDeployment_chronicleRuledeploymentBasicExample [Debug log]
TestAccChronicleRuleDeployment_chronicleRuledeploymentBasicExample_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@ScottSuarez
Copy link
Contributor

Is there more context on this change? What issue might it be fixing and would that be testable?

It's possible this is just a difference of implementation?

@ankitgoyal0301
Copy link
Contributor Author

Is there more context on this change? What issue might it be fixing and would that be testable?

It's possible this is just a difference of implementation?

@ScottSuarez So, run_frequency is an optional field for us. Now, during the create call, just assume a case that you don't specify it in your terraform code. Now the updateMask in create_url has run_frequency param (and infact all 4 params, which is the case before this PR because create_url updateMask is hardcoded), the API complains, because it expects a value of the params if they are in updateMask.

This PR is to fix the issue that if you don't pass "run_frequency" during your terraform create call for a rule_deployment resource, it won't complain and work as expected.

@ScottSuarez ScottSuarez added this pull request to the merge queue Feb 12, 2025
@ScottSuarez ScottSuarez removed this pull request from the merge queue due to a manual request Feb 12, 2025
@ScottSuarez ScottSuarez added this pull request to the merge queue Feb 12, 2025
Merged via the queue into GoogleCloudPlatform:main with commit 0817a8e Feb 12, 2025
22 checks passed
JaylonmcShan03 pushed a commit to JaylonmcShan03/magic-modules-jmcshan that referenced this pull request Mar 25, 2025
JaylonmcShan03 pushed a commit to JaylonmcShan03/magic-modules-jmcshan that referenced this pull request Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants