Skip to content

Commit 4268b0c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Use list assertion for ListLogsCustomDestinations (#1913)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 92f0b01 commit 4268b0c

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-03-19 12:07:21.112622",
8-
"spec_repo_commit": "ef47ef5d"
7+
"regenerated": "2024-03-19 16:19:39.787987",
8+
"spec_repo_commit": "a75cff58"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-19 12:07:21.136148",
13-
"spec_repo_commit": "ef47ef5d"
12+
"regenerated": "2024-03-19 16:19:39.804901",
13+
"spec_repo_commit": "a75cff58"
1414
}
1515
}
1616
}

tests/v2/features/logs_custom_destinations.feature

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,21 +183,16 @@ Feature: Logs Custom Destinations
183183
And there is a valid "custom_destination" in the system
184184
When the request is sent
185185
Then the response status is 200 OK
186-
And the response "data" has length 1
187-
And the response "data[0].type" is equal to "custom_destination"
188-
And the response "data[0].id" is equal to "{{ custom_destination.data.id }}"
189-
And the response "data[0].attributes.name" is equal to "{{ custom_destination.data.attributes.name }}"
190-
And the response "data[0].attributes.query" is equal to "{{ custom_destination.data.attributes.query }}"
191-
And the response "data[0].attributes.forwarder_destination.type" is equal to "{{ custom_destination.data.attributes.forwarder_destination.type }}"
192-
And the response "data[0].attributes.forwarder_destination.endpoint" is equal to "{{ custom_destination.data.attributes.forwarder_destination.endpoint }}"
193-
And the response "data[0].attributes.forwarder_destination.auth.type" is equal to "{{ custom_destination.data.attributes.forwarder_destination.auth.type }}"
194-
And the response "data[0].attributes.forwarder_destination.auth" does not have field "username"
195-
And the response "data[0].attributes.forwarder_destination.auth" does not have field "password"
196-
And the response "data[0].attributes.enabled" is false
197-
And the response "data[0].attributes.forward_tags" is false
198-
And the response "data[0].attributes.forward_tags_restriction_list" has length 1
199-
And the response "data[0].attributes.forward_tags_restriction_list" array contains value "host"
200-
And the response "data[0].attributes.forward_tags_restriction_list_type" is equal to "{{ custom_destination.data.attributes.forward_tags_restriction_list_type }}"
186+
And the response "data" has item with field "type" with value "custom_destination"
187+
And the response "data" has item with field "id" with value "{{ custom_destination.data.id }}"
188+
And the response "data" has item with field "attributes.name" with value "{{ custom_destination.data.attributes.name }}"
189+
And the response "data" has item with field "attributes.query" with value "{{ custom_destination.data.attributes.query }}"
190+
And the response "data" has item with field "attributes.forwarder_destination.type" with value "{{ custom_destination.data.attributes.forwarder_destination.type }}"
191+
And the response "data" has item with field "attributes.forwarder_destination.endpoint" with value "{{ custom_destination.data.attributes.forwarder_destination.endpoint }}"
192+
And the response "data" has item with field "attributes.forwarder_destination.auth.type" with value "{{ custom_destination.data.attributes.forwarder_destination.auth.type }}"
193+
And the response "data" has item with field "attributes.enabled" with value false
194+
And the response "data" has item with field "attributes.forward_tags" with value false
195+
And the response "data" has item with field "attributes.forward_tags_restriction_list_type" with value "{{ custom_destination.data.attributes.forward_tags_restriction_list_type }}"
201196

202197
@team:DataDog/logs-backend
203198
Scenario: Update a custom destination returns "Bad Request" response

0 commit comments

Comments
 (0)