mirror of https://github.com/hashicorp/terraform
Add test case to ensure no regression of already fixed crash (#36583)
parent
9953a638d8
commit
aaf617d6d7
@ -0,0 +1,8 @@
|
||||
|
||||
resource "test_resource" "example" {
|
||||
value = "bar"
|
||||
}
|
||||
|
||||
output "value" {
|
||||
value = test_resource.example.value
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
|
||||
run "test" {
|
||||
command = apply
|
||||
plan_options {
|
||||
mode = refresh-only
|
||||
}
|
||||
assert {
|
||||
condition = test_resource.example.value == "bar"
|
||||
error_message = "wrong value"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue