-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow terraform init when only test files are present in directory (#…
- Loading branch information
Showing
15 changed files
with
172 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: ENHANCEMENTS | ||
body: Allow terraform init when tests are present but no configuration files are directly inside the current directory | ||
time: 2025-02-05T10:41:44.663251+01:00 | ||
custom: | ||
Issue: "35040" |
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
8 changes: 8 additions & 0 deletions
8
internal/command/testdata/test/top-dir-only-nested-test-files/fixtures/main.tf
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,8 @@ | ||
variable "sample" { | ||
type = bool | ||
default = true | ||
} | ||
|
||
output "name" { | ||
value = var.sample | ||
} |
9 changes: 9 additions & 0 deletions
9
internal/command/testdata/test/top-dir-only-nested-test-files/tests/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,9 @@ | ||
run "foo" { | ||
module { | ||
source = "./fixtures" | ||
} | ||
assert { | ||
condition = output.name == true | ||
error_message = "foo" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
internal/command/testdata/test/top-dir-only-test-files/fixtures/main.tf
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,8 @@ | ||
variable "sample" { | ||
type = bool | ||
default = true | ||
} | ||
|
||
output "name" { | ||
value = var.sample | ||
} |
9 changes: 9 additions & 0 deletions
9
internal/command/testdata/test/top-dir-only-test-files/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,9 @@ | ||
run "foo" { | ||
module { | ||
source = "./fixtures" | ||
} | ||
assert { | ||
condition = output.name == true | ||
error_message = "foo" | ||
} | ||
} |
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
8 changes: 8 additions & 0 deletions
8
internal/configs/testdata/only-nested-test-files/fixtures/main.tf
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,8 @@ | ||
variable "sample" { | ||
type = bool | ||
default = true | ||
} | ||
|
||
output "name" { | ||
value = var.sample | ||
} |
9 changes: 9 additions & 0 deletions
9
internal/configs/testdata/only-nested-test-files/tests/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,9 @@ | ||
run "foo" { | ||
module { | ||
source = "./fixtures" | ||
} | ||
assert { | ||
condition = output.name == true | ||
error_message = "foo" | ||
} | ||
} |
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,8 @@ | ||
variable "sample" { | ||
type = bool | ||
default = true | ||
} | ||
|
||
output "name" { | ||
value = var.sample | ||
} |
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,9 @@ | ||
run "foo" { | ||
module { | ||
source = "./fixtures" | ||
} | ||
assert { | ||
condition = output.name == true | ||
error_message = "foo" | ||
} | ||
} |