-
Notifications
You must be signed in to change notification settings - Fork 102
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 AutoApplyRunTrigger attribute to workspaces #798
Conversation
This is the commit from hashicorp/go-tfe#798, which is a prerequisite of the impending work. It should be replaced with a commit that updates go-tfe to a released version with the required feature before merge. If you see this commit log on main, someone done messed up!
a6b881f
to
c593200
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs BETA labelling since it's behind a FF and maybe a CHANGELOG
This is the commit from hashicorp/go-tfe#798, which is a prerequisite of the impending work. It should be replaced with a commit that updates go-tfe to a released version with the required feature before merge. If you see this commit log on main, someone done messed up!
57468bc
to
fbcc54a
Compare
This is the commit from hashicorp/go-tfe#798, which is a prerequisite of the impending work. It should be replaced with a commit that updates go-tfe to a released version with the required feature before merge. If you see this commit log on main, someone done messed up!
For posterity: we discussed in slack, and this is not in fact beta — there's a feature flag, but it's rolled out 100% to prod in TFC. |
workspace_integration_test.go
Outdated
@@ -506,6 +506,34 @@ func TestWorkspacesCreate(t *testing.T) { | |||
} | |||
}) | |||
|
|||
t.Run("with valid auto-apply-run-trigger option", func(t *testing.T) { | |||
skipUnlessBeta(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is no longer beta, but only available in TFC we should use the skipIfEnterprise()
helper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
omg. yeah, thank you!
fbcc54a
to
c48d728
Compare
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
Description
Support the new auto-apply-run-trigger workspace attribute, which is exactly like auto-apply except it has to be a new attribute to avoid surprising anyone accustomed to the prior behavior of hard-denying auto-apply for run triggers.
This feature is shipped to TFC prod, but not yet available in TFE.
Testing plan
External links
Output from tests
I'm internal, check CI.