Skip to content

Commit

Permalink
Tests: One more follow-on config I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
nfagerlund committed Nov 2, 2023
1 parent 1c45299 commit 64ef63e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/provider/resource_tfe_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2973,6 +2973,13 @@ resource "tfe_workspace" "foobar" {
}

func testAccTFEWorkspace_renamed(rInt int) string {
// Only test auto-apply-run-trigger outside enterprise... once the feature
// flag is removed, just put it in the normal config.
var aart string
if !enterpriseEnabled() {
aart = "auto_apply_run_trigger = true\n"
}

return fmt.Sprintf(`
resource "tfe_organization" "foobar" {
name = "tst-terraform-%d"
Expand All @@ -2985,7 +2992,8 @@ resource "tfe_workspace" "foobar" {
description = "My favorite workspace!"
allow_destroy_plan = false
auto_apply = true
}`, rInt)
%s
}`, rInt, aart)
}

func testAccTFEWorkspace_update(rInt int) string {
Expand Down

0 comments on commit 64ef63e

Please sign in to comment.