You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The synthetic test should have been provisioned in DataDog
Actual Behavior
An error was produced:
module.datadog.datadog_synthetics_test.example_synthetic_test: Creating...
╷
│ Error: error creating synthetics API test from https://api.datadoghq.eu/api/v1/synthetics/tests/api: 400 Bad Request: {"errors":["0.type: '' is not of type 'number'\n\nFailed validating 'type' in schema[0]:\n {'type': 'number'}\n\nOn instance:\n ''"]}
│
│ with module.datadog.datadog_synthetics_test.example_synthetic_test,
│ on ../../../modules/datadog_e2e/example.tf line 1, in resource "datadog_synthetics_test" "example_synthetic_test":
│ 1: resource "datadog_synthetics_test" "example_synthetic_test" {
│
╵
Steps to Reproduce
Run terraform apply on the above configuration.
Important Factoids
If I remove the assertion block with the validatesJSONPath condition, it works fine:
I managed to reproduce. Indeed the previous PR didn't fix the issue, as the value is now optional but an empty string is still passed to the backend which causes the error you see. We'll write a fix, thanks for your patience.
therve
changed the title
BUG: unable to create datadog_synthetics_test with validatesJSONPath block
Unable to create datadog_synthetics_test with validatesJSONPath block and isUndefined operator
Jun 13, 2023
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Please provide a link to a GitHub Gist containing the complete debug output:
https://gist.github.com/sachams/e30c9570605c0fe4b87c91cf0b269b51
Panic Output
None
Expected Behavior
The synthetic test should have been provisioned in DataDog
Actual Behavior
An error was produced:
Steps to Reproduce
Run
terraform apply
on the above configuration.Important Factoids
If I remove the assertion block with the
validatesJSONPath
condition, it works fine:References
This issue is very like this one which was closed. In fact, the example terraform config is taken from that example.
datadog_synthetics_test
when passingoperator = isUndefined
#1876The text was updated successfully, but these errors were encountered: