Single Workspace Skip - DefaultWorkspaceOnly#633
Merged
Conversation
…to av/add-single-workspace-skip # Conflicts: # helper/resource/statestore/statestore_test.go # helper/resource/testing.go
austinvalle
reviewed
Mar 17, 2026
…ed test for default workspace logic and validation
…to av/add-single-workspace-skip
Resolve merge conflict in go.mod file and update dependencies.
austinvalle
reviewed
Mar 19, 2026
austinvalle
previously approved these changes
Mar 23, 2026
Member
austinvalle
left a comment
There was a problem hiding this comment.
Looks like there is a small format change to the changelog needed, but everything else LGTM 🚀
Comment on lines
+2
to
+3
| body: | ||
| helper/resource: Added `DefaultWorkspaceOnly` to enable testing state store implementations that don't support multiple workspaces. This is achieved by only running Terraform commands with the `default` workspace. |
Member
Contributor
Author
There was a problem hiding this comment.
Yeah for some reason if I do not put a new line it gets angry because it thinks that section needs a new header so maybe if I just format it differently?
Member
There was a problem hiding this comment.
Yeah probably because of the : character, wrapping the entire thing in single quotes will treat it as a string literal in YAML, most of our changelogs have something similar:
Contributor
Author
There was a problem hiding this comment.
I tried that once before but then changie fails for some reason?
Member
There was a problem hiding this comment.
Very interesting 🤔, it's likely an encoding problem 👀
austinvalle
reviewed
Mar 24, 2026
Co-authored-by: Austin Valle <austinvalle@gmail.com>
austinvalle
approved these changes
Mar 25, 2026
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.

Related Issue
Fixes #
Description
This PR adds a DefaultWorkspaceOnly boolean to TestStep that makes it so tests are limited to the provider's default workspace, a special case that applies to testing StateStores
Rollback Plan
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
No