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
resource"datadog_synthetics_test""test_multi_step" {
name="Multistep API test"type="api"subtype="multi"status="live"locations=["aws:eu-central-1"]
tags=["foo:bar", "foo", "env:test"]
api_step {
name="An API test on example.org"subtype="http"assertion {
type="statusCode"operator="is"target="200"
}
request_metadata={}
request_definition {
method="GET"url="https://example.org"
}
request_headers={
Content-Type ="application/json"
Authentication ="Token: 1234566789"
}
}
api_step {
name="An API test on example.org"subtype="http"assertion {
type="statusCode"operator="is"target="200"
}
request_definition {
method="GET"url="http://example.org"
}
}
options_list {
tick_every=900accept_self_signed=true
}
}
Relevant debug or panic output
│ Error: Unsupported argument
│
│ on bug.tf line 19, in resource "datadog_synthetics_test" "test_multi_step":
│ 19: request_metadata = {}
│
│ An argument named "request_metadata" is not expected here.
Expected Behavior
The api_step block should accept a metadata or request_metadata input, to match the REST API input config.steps[].request.metadata input.
Actual Behavior
Neither metadata nor request_metadata inputs are accepted in api_step blocks.
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered:
From my understanding, the metadata field is only used for gRPC tests. The description in the docs says Metadata to include when performing the gRPC test., while multi-step synthetic tests only support http requests at this time. As such I don't think there's a need to implement this now, but we will revisit this if multi-step tests ever do support gRPC.
Closing this for now but please reopen if I'm mistaken about anything, thanks!
Hi @nkzou , it seems that Datadog itself already supports grpc in multistep api tests. Are you planning to provide support from Terraform side anytime soon? Where can I place a feature request?
Datadog Terraform Provider Version
3.30.0
Terraform Version
1.3.9
What resources or data sources are affected?
datadog_synthetics_test
Terraform Configuration Files
bug.tf (click to reveal)
Note, this was copied from the Terraform resource documentation. The only change was to add
request_metadata
.Relevant debug or panic output
Expected Behavior
The
api_step
block should accept ametadata
orrequest_metadata
input, to match the REST API inputconfig.steps[].request.metadata
input.Actual Behavior
Neither
metadata
norrequest_metadata
inputs are accepted inapi_step
blocks.Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: