mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 02:20:07 -04:00
* implement module testing via TFC * ready for review * fix static checks * licence headers
20 lines
410 B
HCL
20 lines
410 B
HCL
|
|
run "defaults" {
|
|
command = plan
|
|
|
|
assert {
|
|
condition = tfcoremock_simple_resource.resource.string == "Hello, world!"
|
|
error_message = "bad string value"
|
|
}
|
|
}
|
|
|
|
run "overrides" {
|
|
variables {
|
|
input = "Hello, universe!"
|
|
}
|
|
|
|
assert {
|
|
condition = tfcoremock_simple_resource.resource.string == "Hello, universe!"
|
|
error_message = "bad string value"
|
|
}
|
|
}
|