You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/command/testdata/test/write-only-attributes-overr.../main.tftest.hcl

39 lines
597 B

provider "test" {}
override_resource {
target = test_resource.resource
values = {
id = "resource"
}
}
override_data {
target = data.test_data_source.datasource
values = {
value = "hello"
}
}
run "test" {
variables {
input = "input"
}
assert {
condition = data.test_data_source.datasource.value == "hello"
error_message = "wrong value"
}
assert {
condition = test_resource.resource.value == "hello"
error_message = "wrong value"
}
assert {
condition = test_resource.resource.id == "resource"
error_message = "wrong value"
}
}