-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rename
assert.equals
-> assert.expect
- add optional `assert.fix` on how to fix the issue
- Loading branch information
Andrii Abramov
committed
Nov 8, 2021
1 parent
9fbfb1a
commit f22704b
Showing
5 changed files
with
47 additions
and
34 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
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 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 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 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 |
---|---|---|
@@ -1,30 +1,37 @@ | ||
workspace: | ||
desc: Current terraform workspace | ||
cmd: terraform | ||
test: | ||
desc: Echo test data | ||
cmd: echo | ||
args: | ||
- workspace | ||
- show | ||
- -n | ||
- dev | ||
|
||
tf-apply-dev: | ||
desc: Terraform apply on dev | ||
test1: | ||
desc: Test 1 | ||
cmd: echo | ||
assert: | ||
desc: Check if on dev workspace | ||
ref: workspace # References goal above | ||
equals: dev # Checks whether trimmed output from 'ref' goal is equal to "dev" | ||
cmd: terraform | ||
desc: Check if dev | ||
ref: test | ||
expect: dev | ||
args: | ||
- apply | ||
- -var-file | ||
- vars/dev.tfvars | ||
- Passed. | ||
|
||
tf-apply-stage: | ||
desc: Terraform apply on stage | ||
test2: | ||
desc: Test 1 | ||
cmd: echo | ||
assert: | ||
desc: Check if on stage workspace | ||
ref: workspace # References goal above | ||
equals: stage # Checks whether trimmed output from 'ref' goal is equal to "stage" | ||
cmd: terraform | ||
desc: Check if stage | ||
ref: test | ||
expect: stage | ||
fix: terraform workspace select stage | ||
args: | ||
- apply | ||
- -var-file | ||
- vars/stage.tfvars | ||
- Should not pass! | ||
|
||
# Test stdin | ||
scala: | ||
desc: Run scala REPL | ||
cmd: scala | ||
|
||
# Test env vars being passed | ||
env: | ||
desc: Show env vars | ||
cmd: env |