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

Add plan-time validation of name on google_compute_instance #2984

Conversation

modular-magician
Copy link
Collaborator

closes hashicorp/terraform-provider-google#18265

  • Added name validation to google_compute_instance

The regexes are wrong in the validation file. Our verification functions expected 2-63 characters when in reality it's 1-63. Basing on this documentation: https://cloud.google.com/compute/docs/naming-resources#resource-name-format and manual testing

Some other tests might fail due to these changes in the validate file so pls paste the test errors after the CICD run

Release Note Template for Downstream PRs (will be copied)

compute: added plan-time validation to `name` on `google_compute_instance`

Derived from GoogleCloudPlatform/magic-modules#11886

Co-authored-by: Cameron Thornton <[email protected]>

[upstream:4f8bd9304149a31b696139ce9c5086f3b42e00b9]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner October 25, 2024 17:40
@modular-magician modular-magician requested review from iyabchen and removed request for a team October 25, 2024 17:40
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician merged commit 72b9c7f into GoogleCloudPlatform:main Oct 25, 2024
4 of 6 checks passed
@modular-magician modular-magician deleted the downstream-pr-4f8bd9304149a31b696139ce9c5086f3b42e00b9 branch November 18, 2024 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing plan-time validation for the name attribute of the google_compute_instance
1 participant