-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
108 additions
and
960 deletions.
There are no files selected for viewing
This file contains 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
101 changes: 101 additions & 0 deletions
101
internal/command/testdata/test/shared_state_parallel/main.tftest.hcl
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# // To run in parallel, sequential runs must have different state keys, and not depend on each other | ||
# // NotDepends: true | ||
# // DiffStateKey: true | ||
|
||
# variables { | ||
# foo = "foo" | ||
# } | ||
|
||
|
||
# run "setup" { | ||
# module { | ||
# source = "./setup" | ||
# } | ||
|
||
# variables { | ||
# input = "foo" | ||
# } | ||
|
||
# assert { | ||
# condition = output.value == var.foo | ||
# error_message = "bad" | ||
# } | ||
# } | ||
|
||
# // Depends on previous run, but has different state key, so would not run in parallel | ||
# // NotDepends: false | ||
# // DiffStateKey: true | ||
# run "test_a" { | ||
# variables { | ||
# input = run.setup.value | ||
# } | ||
|
||
# assert { | ||
# condition = output.value == var.foo | ||
# error_message = "double bad" | ||
# } | ||
|
||
# assert { | ||
# condition = run.setup.value == var.foo | ||
# error_message = "triple bad" | ||
# } | ||
# } | ||
|
||
# // Depends on previous run, and has same state key, so would not run in parallel | ||
# // NotDepends: false | ||
# // DiffStateKey: false | ||
# run "test_b" { | ||
# variables { | ||
# input = run.test_a.value | ||
# } | ||
|
||
# assert { | ||
# condition = output.value == var.foo | ||
# error_message = "double bad" | ||
# } | ||
|
||
# assert { | ||
# condition = run.setup.value == var.foo | ||
# error_message = "triple bad" | ||
# } | ||
# } | ||
|
||
# // Does not depend on previous run, and has same state key, so would not run in parallel | ||
# // NotDepends: true | ||
# // DiffStateKey: false | ||
# run "test_c" { | ||
|
||
# variables { | ||
# input = "foo" | ||
# } | ||
|
||
# assert { | ||
# condition = output.value == var.foo | ||
# error_message = "double bad" | ||
# } | ||
|
||
# assert { | ||
# condition = run.setup.value == var.foo | ||
# error_message = "triple bad" | ||
# } | ||
# } | ||
|
||
# // Does not depend on previous run, and has different state key, so would run in parallel | ||
# // NotDepends: true | ||
# // DiffStateKey: true | ||
# run "test_d" { | ||
|
||
# variables { | ||
# input = "foo" | ||
# } | ||
|
||
# assert { | ||
# condition = output.value == var.foo | ||
# error_message = "double bad" | ||
# } | ||
|
||
# assert { | ||
# condition = run.setup.value == var.foo | ||
# error_message = "triple bad" | ||
# } | ||
# } |
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.