Skip to content

Commit 3916fb2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 100f080 of spec repo
1 parent c58c9ca commit 3916fb2

3 files changed

Lines changed: 30 additions & 12 deletions

File tree

‎tests/v1/features/dashboards.feature‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ Feature: Dashboards
103103
When the request is sent
104104
Then the response status is 200 OK
105105
And the response "widgets[0].definition.type" is equal to "heatgrid"
106+
And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
107+
And the response "widgets[0].definition.requests[0].formulas[0]" does not have field "cell_display_mode"
108+
And the response "widgets[0].definition.requests[0].formulas[0]" does not have field "cell_display_mode_options"
106109
And the response "widgets[0].definition.color.mode" is equal to "gradient"
107110
And the response "widgets[0].definition.color.source" is equal to "preset"
108111
And the response "widgets[0].definition.color.preset_name" is equal to "classic"

‎tests/v1/features/metrics.feature‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ Feature: Metrics
9595
And the response "status" is equal to "ok"
9696
And the response "resp_version" is equal to 1
9797
And the response "query" is equal to "system.cpu.idle{*}"
98+
And the response "times" has length 0
99+
And the response "values" has length 0
100+
And the response "series[0]" has field "attributes"
101+
And the response "series[0].unit" has length 2
102+
And the response "series[0].unit[0].id" is equal to 17
98103

99104
@generated @skip @team:ddoghq/metrics-experience @team:ddoghq/metrics-index @team:ddoghq/metrics-intake @team:ddoghq/timeseries-query
100105
Scenario: Search metrics returns "Bad Request" response

‎tests/v2/features/feature_flags.feature‎

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Feature: Feature Flags
306306
When the request is sent
307307
Then the response status is 400 Bad Request
308308

309-
@team:ddoghq/feature-flags
309+
@team:ddoghq/feature-flags @validate-error-response
310310
Scenario: Get a saved filter returns "Not Found" response
311311
Given new "GetSavedFilter" request
312312
And request contains "saved_filter_id" parameter with value "00000000-0000-0000-0000-000000000000"
@@ -321,18 +321,23 @@ Feature: Feature Flags
321321
Then the response status is 200 OK
322322
And the response "data.id" is equal to "8c051ac8-df7a-496e-b5c0-de691a411100"
323323
And the response "data.type" is equal to "saved-filters"
324+
And the response "data.attributes" has field "created_at"
325+
And the response "data.attributes.created_by" is equal to "550e8400-e29b-41d4-a716-446655440091"
324326
And the response "data.attributes.creation_type" is equal to "RULES"
325327
And the response "data.attributes.name" is equal to "getSavedFilterTest-Rule"
326328
And the response "data.attributes.description" is equal to "Synthetic fixture for OpenAPI tests"
327329
And the response "data.attributes.targeting_rules" has length 2
330+
And the response "data.attributes.targeting_rules[0].id" is equal to "204d53d3-9913-485f-af8e-8a8b4b34a4cb"
328331
And the response "data.attributes.targeting_rules[0].conditions" has length 1
332+
And the response "data.attributes.targeting_rules[0].conditions[0].id" is equal to "e12773d9-27ec-4009-88ab-6654227138c3"
329333
And the response "data.attributes.targeting_rules[0].conditions[0].attribute" is equal to "email"
330334
And the response "data.attributes.targeting_rules[0].conditions[0].operator" is equal to "ONE_OF"
331335
And the response "data.attributes.targeting_rules[0].conditions[0].value" is equal to ["test@example.com"]
332336
And the response "data.attributes.targeting_rules[1].conditions" has length 1
333337
And the response "data.attributes.targeting_rules[1].conditions[0].attribute" is equal to "org_id"
334338
And the response "data.attributes.targeting_rules[1].conditions[0].operator" is equal to "ONE_OF"
335339
And the response "data.attributes.targeting_rules[1].conditions[0].value" is equal to ["test-org-1"]
340+
And the response "data.attributes" has field "updated_at"
336341

337342
@replay-only @team:ddoghq/feature-flags
338343
Scenario: Get a saved filter returns a saved list
@@ -342,14 +347,19 @@ Feature: Feature Flags
342347
Then the response status is 200 OK
343348
And the response "data.id" is equal to "fb44ff15-fe17-4bab-afe8-9a8eb0cf586c"
344349
And the response "data.type" is equal to "saved-filters"
350+
And the response "data.attributes" has field "created_at"
351+
And the response "data.attributes.created_by" is equal to "550e8400-e29b-41d4-a716-446655440091"
345352
And the response "data.attributes.creation_type" is equal to "LIST"
346353
And the response "data.attributes.name" is equal to "getSavedFilterTest-list"
347354
And the response "data.attributes.description" is equal to "Synthetic fixture for OpenAPI tests"
348355
And the response "data.attributes.targeting_rules" has length 1
356+
And the response "data.attributes.targeting_rules[0].id" is equal to "bb656152-2e92-43bc-a30a-b0bd9187c2ec"
349357
And the response "data.attributes.targeting_rules[0].conditions" has length 1
358+
And the response "data.attributes.targeting_rules[0].conditions[0].id" is equal to "6b2127a4-a463-4069-baa8-4950f11c6605"
350359
And the response "data.attributes.targeting_rules[0].conditions[0].attribute" is equal to "user_id"
351360
And the response "data.attributes.targeting_rules[0].conditions[0].operator" is equal to "ONE_OF"
352361
And the response "data.attributes.targeting_rules[0].conditions[0].value" is equal to ["test-user-1", "test-user-2"]
362+
And the response "data.attributes" has field "updated_at"
353363

354364
@skip @team:ddoghq/feature-flags
355365
Scenario: Get an environment returns "Not Found" response
@@ -728,7 +738,7 @@ Feature: Feature Flags
728738
And the response "data.attributes.targeting_rules[0].conditions[0].attribute" is equal to "org_id"
729739
And the response "data.attributes.targeting_rules[0].conditions[0].value" is equal to ["test-org-1"]
730740

731-
@replay-only @team:ddoghq/feature-flags
741+
@replay-only @team:ddoghq/feature-flags @validate-error-response
732742
Scenario: Patch a saved filter rejects a duplicate name
733743
Given new "UpdateSavedFilterAttributes" request
734744
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -740,7 +750,7 @@ Feature: Feature Flags
740750
And the response "errors[0].title" is equal to "Conflict"
741751
And the response "errors[0].detail" is equal to "a saved filter with this name already exists: conflict occurred"
742752

743-
@replay-only @team:ddoghq/feature-flags
753+
@replay-only @team:ddoghq/feature-flags @validate-error-response
744754
Scenario: Patch a saved filter rejects a null-only update
745755
Given new "UpdateSavedFilterAttributes" request
746756
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -752,7 +762,7 @@ Feature: Feature Flags
752762
And the response "errors[0].title" is equal to "Bad Request"
753763
And the response "errors[0].detail" is equal to "at least one field must be provided"
754764

755-
@replay-only @team:ddoghq/feature-flags
765+
@replay-only @team:ddoghq/feature-flags @validate-error-response
756766
Scenario: Patch a saved filter rejects a timestamp-only update
757767
Given new "UpdateSavedFilterAttributes" request
758768
And request contains "saved_filter_id" parameter with value "a8c393b4-3a9c-48fd-aa48-402c97e8d9c9"
@@ -764,7 +774,7 @@ Feature: Feature Flags
764774
And the response "errors[0].title" is equal to "Bad Request"
765775
And the response "errors[0].detail" is equal to "at least one field must be provided"
766776

767-
@replay-only @skip-python @skip-ruby @team:ddoghq/feature-flags
777+
@replay-only @skip-python @skip-ruby @team:ddoghq/feature-flags @validate-error-response
768778
Scenario: Patch a saved filter rejects an empty name
769779
Given new "UpdateSavedFilterAttributes" request
770780
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -776,7 +786,7 @@ Feature: Feature Flags
776786
And the response "errors[0].title" is equal to "Bad Request"
777787
And the response "errors[0].detail" is equal to "name must not be empty"
778788

779-
@replay-only @skip-java @skip-python @skip-ruby @skip-typescript @team:ddoghq/feature-flags
789+
@replay-only @skip-java @skip-python @skip-ruby @skip-typescript @team:ddoghq/feature-flags @validate-error-response
780790
Scenario: Patch a saved filter rejects an invalid timestamp
781791
Given new "UpdateSavedFilterAttributes" request
782792
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -788,7 +798,7 @@ Feature: Feature Flags
788798
And the response "errors[0].title" is equal to "Bad Request"
789799
And the response "errors[0].detail" is equal to "last_updated_at must be a valid RFC3339 timestamp"
790800

791-
@replay-only @skip-python @skip-ruby @team:ddoghq/feature-flags
801+
@replay-only @skip-python @skip-ruby @team:ddoghq/feature-flags @validate-error-response
792802
Scenario: Patch a saved filter rejects empty targeting rules
793803
Given new "UpdateSavedFilterAttributes" request
794804
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -800,7 +810,7 @@ Feature: Feature Flags
800810
And the response "errors[0].title" is equal to "Bad Request"
801811
And the response "errors[0].detail" is equal to "attribute \"targeting_rules\" failed min validation"
802812

803-
@replay-only @team:ddoghq/feature-flags
813+
@replay-only @team:ddoghq/feature-flags @validate-error-response
804814
Scenario: Patch a saved filter rejects nested saved filters
805815
Given new "UpdateSavedFilterAttributes" request
806816
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -812,7 +822,7 @@ Feature: Feature Flags
812822
And the response "errors[0].title" is equal to "Bad Request"
813823
And the response "errors[0].detail" is equal to "targeting rule 0 condition 0: saved filters cannot reference other saved filters"
814824

815-
@replay-only @team:ddoghq/feature-flags
825+
@replay-only @team:ddoghq/feature-flags @validate-error-response
816826
Scenario: Patch a saved filter rejects stale rule updates
817827
Given new "UpdateSavedFilterAttributes" request
818828
And request contains "saved_filter_id" parameter with value "a8c393b4-3a9c-48fd-aa48-402c97e8d9c9"
@@ -860,7 +870,7 @@ Feature: Feature Flags
860870
And the response "data.attributes.targeting_rules[0].conditions[0].attribute" is equal to "user_id"
861871
And the response "data.attributes.targeting_rules[0].conditions[0].value" is equal to ["test-user-3"]
862872

863-
@replay-only @team:ddoghq/feature-flags
873+
@replay-only @team:ddoghq/feature-flags @validate-error-response
864874
Scenario: Patch a saved filter returns "Bad Request" response
865875
Given new "UpdateSavedFilterAttributes" request
866876
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -872,7 +882,7 @@ Feature: Feature Flags
872882
And the response "errors[0].title" is equal to "Bad Request"
873883
And the response "errors[0].detail" is equal to "at least one field must be provided"
874884

875-
@replay-only @team:ddoghq/feature-flags
885+
@replay-only @team:ddoghq/feature-flags @validate-error-response
876886
Scenario: Patch a saved filter returns "Conflict" response
877887
Given new "UpdateSavedFilterAttributes" request
878888
And request contains "saved_filter_id" parameter with value "2cfc7949-7eb4-4d76-b1b8-d1aa9b565535"
@@ -884,7 +894,7 @@ Feature: Feature Flags
884894
And the response "errors[0].title" is equal to "Conflict"
885895
And the response "errors[0].detail" is equal to "saved filter has been modified since you last fetched it; please refresh and retry: conflict occurred"
886896

887-
@replay-only @team:ddoghq/feature-flags
897+
@replay-only @team:ddoghq/feature-flags @validate-error-response
888898
Scenario: Patch a saved filter returns "Not Found" response
889899
Given new "UpdateSavedFilterAttributes" request
890900
And request contains "saved_filter_id" parameter with value "00000000-0000-0000-0000-000000000000"

0 commit comments

Comments
 (0)