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

Fix id validation for custom service and SLO to match what's actually usable #15841

Conversation

modular-magician
Copy link
Collaborator

Fixes #15825

The validation for the following id fields were too strict, so they have been adjusted to match the actual formats. Please refer to the issue for specific examples.

  • service_id on google_monitoring_custom_service
  • slo_id on google_monitoring_slo

I checked this documentation. Types of breaking changes | Magic Modules
This change relaxes the validation to contain the current pattern, so I think this is not a breaking change.

Do I need to add tests for the validation defined in regex? If so, I'll add it.
It would be helpful if you could advise on existing test cases for such a change.

Release Note Template for Downstream PRs (will be copied)

monitoring: fixed validation of `service_id` on `google_monitoring_custom_service` and `slo_id` on `google_monitoring_slo` 

Derived from GoogleCloudPlatform/magic-modules#8939

… usable (hashicorp#8939)

* Fix slo_id pattern in google_monitoring_slo

* Fix servie_id pattern in google_monitoring_custom_service

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 78b36b5 into hashicorp:main Sep 14, 2023
4 checks passed
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation pattern is narrower than actually used/generated for google_monitoring_custom_service and SLO.
1 participant