mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Implement updates to testing framework based on recent feedback
This commit is contained in:
9
internal/command/testdata/test/only_modules/example/main.tf
vendored
Normal file
9
internal/command/testdata/test/only_modules/example/main.tf
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
variable "input" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "test_resource" "module_resource" {
|
||||
id = "df6h8as9"
|
||||
value = var.input
|
||||
}
|
||||
9
internal/command/testdata/test/only_modules/main.tf
vendored
Normal file
9
internal/command/testdata/test/only_modules/main.tf
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
variable "input" {
|
||||
type = string
|
||||
}
|
||||
|
||||
resource "test_resource" "resource" {
|
||||
id = "598318e0"
|
||||
value = var.input
|
||||
}
|
||||
23
internal/command/testdata/test/only_modules/main.tftest.hcl
vendored
Normal file
23
internal/command/testdata/test/only_modules/main.tftest.hcl
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# This is an example test file from a use case requested by a user. We only
|
||||
# refer to alternate modules and not the main configuration. This means we
|
||||
# shouldn't have to provide any data for the main configuration.
|
||||
|
||||
run "first" {
|
||||
module {
|
||||
source = "./example"
|
||||
}
|
||||
|
||||
variables {
|
||||
input = "start"
|
||||
}
|
||||
}
|
||||
|
||||
run "second" {
|
||||
module {
|
||||
source = "./example"
|
||||
}
|
||||
|
||||
variables {
|
||||
input = "update"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user