-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for conditions not known until the apply step
- Loading branch information
1 parent
b95683e
commit 57698a8
Showing
5 changed files
with
78 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,17 @@ jobs: | |
with: | ||
tf_path: tests/pass-output | ||
|
||
- name: Initialize - Pass - Delayed | ||
id: init-pass-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/pass-delayed | ||
- name: Run Tests - Pass - Delayed | ||
id: tests-pass-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/pass-delayed | ||
|
||
- name: Initialize - Fail | ||
id: init-fail | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
|
@@ -70,6 +81,17 @@ jobs: | |
with: | ||
tf_path: tests/fail-output | ||
|
||
- name: Initialize - Fail - Delayed | ||
id: init-fail-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/fail-delayed | ||
- name: Run Tests - Fail - Delayed | ||
id: tests-fail-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/fail-delayed | ||
|
||
# This job just waits for all other jobs to pass. We have it here | ||
# so our branch protection rule can reference a single job, instead | ||
# of needing to list every matrix value of every job above. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
module "fail" { | ||
source = "../../" | ||
// Use a condition that isn't known until the apply step | ||
condition = uuid() == "" | ||
error_message = "sample error" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
module "pass" { | ||
source = "../../" | ||
// Use a condition that isn't known until the apply step | ||
condition = uuid() != "" | ||
error_message = "sample error" | ||
} |