-
-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terragrunt-info parsing improvement (#2901)
* Add test for parsing TerragruntInfoGroup * PR cleanup * Update cli/commands/terragrunt-info/action.go Co-authored-by: Levko Burburas <62853952+levkohimins@users.noreply.github.com> * Update cli/commands/terragrunt-info/action.go Co-authored-by: Levko Burburas <62853952+levkohimins@users.noreply.github.com> * Updated imports * imports update --------- Co-authored-by: Levko Burburas <62853952+levkohimins@users.noreply.github.com>
- Loading branch information
1 parent
6e218c1
commit 8d8bd8e
Showing
8 changed files
with
102 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "test_var" { | ||
value = "hello" | ||
} |
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,3 @@ | ||
terraform { | ||
source = ".//" | ||
} |
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,7 @@ | ||
variable "test_var" { | ||
type = string | ||
} | ||
|
||
output "result" { | ||
value = var.test_var | ||
} |
16 changes: 16 additions & 0 deletions
16
test/fixture-terragrunt-info-error/module-b/terragrunt.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,16 @@ | ||
terraform { | ||
source = ".//" | ||
} | ||
|
||
dependency "module_a" { | ||
config_path = "../module-a" | ||
mock_outputs_allowed_terraform_commands = ["init", "plan", "validate"] | ||
mock_outputs_merge_strategy_with_state = "shallow" | ||
mock_outputs = { | ||
test_mock = "abc" | ||
} | ||
} | ||
|
||
inputs = { | ||
test_var = dependency.module_a.outputs.test_mock | ||
} |
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