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

feat: allow mocking of provisioners with terraform test #36469

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fredouric
Copy link

This PR introduces a override_provisioner block allowing users to skip / mock provisioners on resources entirely when running terraform test.
The implementation tries to follow conventions from the override_resource, override_data, and override_module blocks.

Fixes #35459

Target Release

1.11.x

Draft CHANGELOG entry

The terraform test command now supports a override_provision block in test runs. This feature allows to skip or mock provisioners on entire resources.

@fredouric fredouric requested a review from a team as a code owner February 11, 2025 15:50
@crw
Copy link
Contributor

crw commented Feb 11, 2025

Thanks for this submission! I will raise it in the next triage meeting.

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.

Allow mocking/skipping provisioners when running terraform test
2 participants