GoogleCloudPlatform / terraform-validator

Terraform Validator is not an officially supported Google product; it is a library for conversion of Terraform plan data to CAI Assets. If you have been using terraform-validator directly in the past, we recommend migrating to `gcloud beta terraform vet`.
https://cloud.google.com/docs/terraform/policy-validation
Apache License 2.0
437 stars 93 forks source link

Make some test utility functions public #1426

Closed modular-magician closed 1 year ago

modular-magician commented 1 year ago

Make some test utility functions public

The case insensitive diffs looks good

git config --global difftool.idiff.cmd 'diff -i $LOCAL $REMOTE' git difftool -y --tool idiff f42899ac83e12eaefb8016f8d94bf0555c067aff origin/acctest-pre-2

<         // Location is the location attribute to match, if matched, append Name to list of Testhide
<         Location string `yaml:"location"`
<         // Name specifies sample file name to add to Testhide if location matches.
<         Name string `yaml:"file_name"`
---
>   // Location is the location attribute to match, if matched, append Name to list of Testhide
>   Location string `yaml:"location"`
>   // Name specifies sample file name to add to Testhide if location matches.
>   Name string `yaml:"file_name"`
108a109
> 

If this PR is for Terraform, I acknowledge that I have:

Release Note Template for Downstream PRs (will be copied)

Derived from https://github.com/GoogleCloudPlatform/magic-modules/pull/7403