mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-27 04:44:09 -04:00
* write-only attributes: internal providers should set write-only attributes to null * add changelog * fix copywrite headers
38 lines
597 B
HCL
38 lines
597 B
HCL
|
|
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"
|
|
}
|
|
|
|
}
|