terraform/internal/command/testdata/test/ephemeral_input/main.tftest.hcl
Daniel Schmidt 725add6a1a
test: pass in variables during apply
ephemeral variables need to be re-supplied
2024-10-16 16:30:31 +02:00

19 lines
349 B
HCL

run "validate_ephemeral_input" {
variables {
foo = "bar"
}
assert {
condition = var.foo == "bar"
error_message = "Should be accessible"
}
}
run "validate_ephemeral_input_is_ephemeral" {
variables {
foo = "bar"
}
assert {
condition = ephemeralasnull(var.foo) == null
error_message = "Should be ephemeral"
}
}