Repository navigation
Conversation
Returns resource_changes[*].provider_name for every resource of the requested type, honoring exclude_resource_types on a wildcard, so a RegexMatch can check that cloud resources use the official providers. Closes #420
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
What changes are being made?
terraform_planoperation,provider_name, returnsresource_changes[*].provider_namefor every resource of the requested type (*for all). It honorsexclude_resource_typeson a wildcard, likeactionandcount, and reports severity 1 when no resource of the type is found.documentation/docs/tirith-providers/terraform-plan.md.Why are these changes necessary?
provider_configneeds one exact provider name and doesn't return the name.Which issues or tickets does this PR close or relate to?
Type of Change
Checklist
tests/providers/terraform_plan/test_provider_name.py: 6 tests, including the official-providers regex passing forhashicorp/aws,hashicorp/google(OpenTofu registry),randomandkubernetes, and failing foracme/aws.Additional Information
Locally,
tests/providers/terraform_planhas 48 passing tests and the 10test_direct_references.pyfailures that need aterraformbinary, the same as onmain.