-
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.
- Loading branch information
1 parent
c0c4704
commit 1b73731
Showing
6 changed files
with
48 additions
and
12 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 |
---|---|---|
|
@@ -49,16 +49,27 @@ jobs: | |
with: | ||
tf_path: tests/pass-output | ||
|
||
- name: Initialize - Pass - Delayed | ||
id: init-pass-delayed | ||
- name: Initialize - Pass - Condition Delayed | ||
id: init-pass-condition-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/pass-delayed | ||
- name: Run Tests - Pass - Delayed | ||
id: tests-pass-delayed | ||
tf_path: tests/pass-condition-delayed | ||
- name: Run Tests - Pass - Condition Delayed | ||
id: tests-pass-condition-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/pass-delayed | ||
tf_path: tests/pass-condition-delayed | ||
|
||
- name: Initialize - Pass - Message Delayed | ||
id: init-pass-message-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/pass-message-delayed | ||
- name: Run Tests - Pass - Message Delayed | ||
id: tests-pass-message-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/pass-message-delayed | ||
|
||
- name: Initialize - Fail | ||
id: init-fail | ||
|
@@ -82,16 +93,27 @@ jobs: | |
with: | ||
tf_path: tests/fail-output | ||
|
||
- name: Initialize - Fail - Delayed | ||
id: init-fail-delayed | ||
- name: Initialize - Fail - Condition Delayed | ||
id: init-fail-condition-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/fail-condition-delayed | ||
- name: Run Tests - Fail - Condition Delayed | ||
id: tests-fail-condition-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/fail-condition-delayed | ||
|
||
- name: Initialize - Fail - Message Delayed | ||
id: init-fail-message-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/fail-delayed | ||
- name: Run Tests - Fail - Delayed | ||
id: tests-fail-delayed | ||
tf_path: tests/fail-message-delayed | ||
- name: Run Tests - Fail - Message Delayed | ||
id: tests-fail-message-delayed | ||
uses: Invicton-Labs/terraform-module-testing/[email protected] | ||
with: | ||
tf_path: tests/fail-delayed | ||
tf_path: tests/fail-message-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 | ||
|
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
File renamed without changes.
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 = false | ||
error_message = uuid() == "" ? "should never happen" : "sample error" | ||
} |
File renamed without changes.
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 = uuid() == "" ? "should never happen" : "sample error" | ||
} |