Closed GoodmanBen closed 3 weeks ago
Hi @GoodmanBen! Sorry for the delay. Did this bug happen again?
We have not had any changes to the resource since then, but I would suspect that if any were made going foward it would wipe the pre-set values again.
I think you should use the pattern
property instead of example
. It's meant to initialize the variable's value, then it becomes hidden.
At least, in my case the example
property is never used when running the test, so my assertions are failing. On the other hand, pattern
is indeed used, so the assertions are passing when using it.
And I couldn't reproduce the fact that "the example/values within the config_variable
block were reset after the resource's in-place update".
I'll close this issue. Feel free to reopen with reproducible steps if you manage to reproduce the bug 🙇
Datadog Terraform Provider Version
v.3.41.0
Terraform Version
v.1.9.2
What resources or data sources are affected?
datadog_synthetics_test
Terraform Configuration Files
Relevant debug or panic output
No response
Expected Behavior
The example/values within the
config_variable
block should not have been reset on the synthetic test, since theexample
field is explicitly set.Actual Behavior
The example/values within the
config_variable
block were reset after the resource's in-place update. This led to the test failing to run, and an alert being fired.The
terraform plan
shows no change in this field during the update.Steps to Reproduce
No response
Important Factoids
No response
References
No response