Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-28 10:12:57.158285",
"spec_repo_commit": "c16e3609"
"regenerated": "2023-03-01 15:45:34.929706",
"spec_repo_commit": "8905444b"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-28 10:12:57.177148",
"spec_repo_commit": "c16e3609"
"regenerated": "2023-03-01 15:45:34.943206",
"spec_repo_commit": "8905444b"
}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022-11-21T15:36:05.545Z"
"2023-02-24T19:02:01.538Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "f98bd5930d6046a011a332616cfb250b",
"_id": "ac3bc5409b2023605878ba38f943df2e",
"_order": 0,
"cache": {},
"request": {
"bodySize": 208,
"bodySize": 199,
"cookies": [],
"headers": [
{
Expand All @@ -32,17 +32,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"}},\"id\":\"Test-Create_a_log_based_metric_returns_OK_response-1669044965\",\"type\":\"logs_metrics\"}}"
"text": "{\"data\":{\"attributes\":{\"compute\":{\"aggregation_type\":\"distribution\",\"include_percentiles\":true,\"path\":\"@duration\"}},\"id\":\"TestCreatealogbasedmetricreturnsOKresponse1677265321\",\"type\":\"logs_metrics\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/logs/config/metrics"
},
"response": {
"bodySize": 246,
"bodySize": 237,
"content": {
"mimeType": "application/json",
"size": 246,
"text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"group_by\":[],\"compute\":{\"path\":\"@duration\",\"include_percentiles\":true,\"aggregation_type\":\"distribution\"}},\"type\":\"logs_metrics\",\"id\":\"Test_Create_a_log_based_metric_returns_OK_response_1669044965\"}}\n"
"size": 237,
"text": "{\"data\":{\"id\":\"TestCreatealogbasedmetricreturnsOKresponse1677265321\",\"attributes\":{\"filter\":{\"query\":\"*\"},\"group_by\":[],\"compute\":{\"aggregation_type\":\"distribution\",\"path\":\"@duration\",\"include_percentiles\":true}},\"type\":\"logs_metrics\"}}\n"
},
"cookies": [],
"headers": [
Expand All @@ -57,11 +57,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-11-21T15:36:05.555Z",
"time": 272
"startedDateTime": "2023-02-24T19:02:01.546Z",
"time": 487
},
{
"_id": "12c1ae70ac1d021e801d57f41265ad38",
"_id": "4f554b9aa0083e95d132404e1b4748b1",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -74,11 +74,11 @@
"value": "*/*"
}
],
"headersSize": 568,
"headersSize": 559,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Create_a_log_based_metric_returns_OK_response_1669044965"
"url": "https://api.datadoghq.com/api/v2/logs/config/metrics/TestCreatealogbasedmetricreturnsOKresponse1677265321"
},
"response": {
"bodySize": 3,
Expand All @@ -100,8 +100,8 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-11-21T15:36:05.838Z",
"time": 141
"startedDateTime": "2023-02-24T19:02:02.048Z",
"time": 148
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-01-19T19:59:42.355Z"
"2023-02-27T21:53:03.795Z"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,59 @@
"version": "6.0.5"
},
"entries": [
{
"_id": "13b530fd8b9117a8993069a27759db40",
"_order": 0,
"cache": {},
"request": {
"bodySize": 164,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
},
{
"_fromType": "array",
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 574,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"policy\":{\"tag_key\":\"dc\",\"tag_key_required\":true,\"valid_tag_values\":[\"prod\",\"staging\"]},\"policy_type\":\"tag\"},\"type\":\"monitor-config-policy\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/monitor/policy"
},
"response": {
"bodySize": 209,
"content": {
"mimeType": "application/json",
"size": 209,
"text": "{\"data\":{\"type\":\"monitor-config-policy\",\"id\":\"1c8a8eea-b6e9-11ed-a4ec-da7ad0900002\",\"attributes\":{\"policy_type\":\"tag\",\"policy\":{\"tag_key\":\"dc\",\"valid_tag_values\":[\"prod\",\"staging\"],\"tag_key_required\":true}}}}\n"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 634,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-02-27T21:53:03.805Z",
"time": 182
},
{
"_id": "d1d9faecfa7d2feb2d28e24a04e24a01",
"_order": 0,
Expand All @@ -21,18 +74,18 @@
"value": "application/json"
}
],
"headersSize": 522,
"headersSize": 520,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/monitor/policy"
},
"response": {
"bodySize": 12,
"bodySize": 211,
"content": {
"mimeType": "application/json",
"size": 12,
"text": "{\"data\":[]}\n"
"size": 211,
"text": "{\"data\":[{\"type\":\"monitor-config-policy\",\"id\":\"1c8a8eea-b6e9-11ed-a4ec-da7ad0900002\",\"attributes\":{\"policy_type\":\"tag\",\"policy\":{\"tag_key_required\":true,\"valid_tag_values\":[\"prod\",\"staging\"],\"tag_key\":\"dc\"}}}]}\n"
},
"cookies": [],
"headers": [
Expand All @@ -41,14 +94,56 @@
"value": "application/json"
}
],
"headersSize": 613,
"headersSize": 637,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-01-19T19:59:42.357Z",
"time": 97
"startedDateTime": "2023-02-27T21:53:03.997Z",
"time": 123
},
{
"_id": "1e9f2d70210c48716ad8355a59e8e36e",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "*/*"
}
],
"headersSize": 547,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/monitor/policy/1c8a8eea-b6e9-11ed-a4ec-da7ad0900002"
},
"response": {
"bodySize": 0,
"content": {
"mimeType": "text/html; charset=utf-8",
"size": 0
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "text/html; charset=utf-8"
}
],
"headersSize": 623,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 204,
"statusText": "No Content"
},
"startedDateTime": "2023-02-27T21:53:04.145Z",
"time": 148
}
],
"pages": [],
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/logs-metrics/CreateLogsMetric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const apiInstance = new v2.LogsMetricsApi(configuration);
const params: v2.LogsMetricsApiCreateLogsMetricRequest = {
body: {
data: {
id: "Example-Create_a_log_based_metric_returns_OK_response",
id: "ExampleCreatealogbasedmetricreturnsOKresponse",
type: "logs_metrics",
attributes: {
compute: {
Expand Down
12 changes: 12 additions & 0 deletions features/v2/authn_mappings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Feature: AuthN Mappings
And body with value {"data": {"attributes": {"attribute_key": "{{ unique_lower_alnum }}", "attribute_value": "{{ unique }}"}, "relationships": {"role": {"data": {"id": "{{ role.data.id }}", "type": "roles"}}}, "type": "authn_mappings"}}
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.attribute_key" is equal to "{{ unique_lower_alnum }}"
And the response "data.attributes.attribute_value" is equal to "{{ unique }}"
And the response "data.relationships.role.data.id" is equal to "{{ role.data.id }}"

@generated @skip @team:DataDog/team-aaa
Scenario: Delete an AuthN Mapping returns "Not Found" response
Expand Down Expand Up @@ -80,6 +83,10 @@ Feature: AuthN Mappings
And body with value {"data": {"attributes": {"attribute_key": "member-of", "attribute_value": "Development"}, "id": "{{ authn_mapping.data.id }}", "relationships": {"role": {"data": {"id": "{{ role.data.id }}", "type": "roles"}}}, "type": "authn_mappings"}}
When the request is sent
Then the response status is 200 OK
And the response "data.id" is equal to "{{ authn_mapping.data.id }}"
And the response "data.attributes.attribute_key" is equal to "member-of"
And the response "data.attributes.attribute_value" is equal to "Development"
And the response "data.relationships.role.data.id" is equal to "{{ role.data.id }}"

@generated @skip @team:DataDog/team-aaa
Scenario: Edit an AuthN Mapping returns "Unprocessable Entity" response
Expand All @@ -104,6 +111,10 @@ Feature: AuthN Mappings
And request contains "authn_mapping_id" parameter from "authn_mapping.data.id"
When the request is sent
Then the response status is 200 OK
And the response "data.id" is equal to "{{ authn_mapping.data.id }}"
And the response "data.attributes.attribute_key" is equal to "{{ unique_lower_alnum }}"
And the response "data.attributes.attribute_value" is equal to "{{ unique }}"
And the response "data.relationships.role.data.id" is equal to "{{ role.data.id }}"

@team:DataDog/team-aaa
Scenario: List all AuthN Mappings returns "OK" response
Expand All @@ -112,3 +123,4 @@ Feature: AuthN Mappings
And new "ListAuthNMappings" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].type" is equal to "authn_mappings"
1 change: 1 addition & 0 deletions features/v2/ci_visibility_pipelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: CI Visibility Pipelines
And body with value {"compute": [{"aggregation": "pc90", "metric": "@duration", "type": "total"}], "filter": {"from": "now-15m", "query": "@ci.provider.name:(gitlab OR github)", "to": "now"}, "group_by": [{ "facet": "@ci.status", "limit": 10, "total": false}], "options": {"timezone": "GMT"}}
When the request is sent
Then the response status is 200 OK
And the response "meta.status" is equal to "done"

@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
Scenario: Get a list of pipelines events returns "Bad Request" response
Expand Down
1 change: 1 addition & 0 deletions features/v2/ci_visibility_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Feature: CI Visibility Tests
And body with value {"compute": [{"aggregation": "count", "metric": "@test.is_flaky", "type": "total"}], "filter": {"from": "now-15m", "query": "@language:(python OR go)", "to": "now"}, "group_by": [{"facet": "@git.branch", "limit": 10, "sort": {"order": "asc"}, "total": false}], "options": {"timezone": "GMT"}}
When the request is sent
Then the response status is 200 OK
And the response "meta.status" is equal to "done"

@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
Scenario: Get a list of tests events returns "Bad Request" response
Expand Down
7 changes: 7 additions & 0 deletions features/v2/cloudflare_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Feature: Cloudflare Integration
And body with value {"data": {"attributes": {"api_key": "6Zm7WEgKzAlCnt_4exfEK0mSoeHHAaDf41O1AAfu", "email": "new@email", "name": "{{ unique_lower_alnum }}"}, "type": "cloudflare-accounts"}}
When the request is sent
Then the response status is 201 CREATED
And the response "data.type" is equal to "cloudflare-accounts"
And the response "data.attributes.email" is equal to "new@email"
And the response "data.attributes.name" is equal to "{{ unique_lower_alnum }}"

@generated @skip @team:Datadog/web-integrations
Scenario: Add Cloudflare account returns "Not Found" response
Expand Down Expand Up @@ -85,6 +88,9 @@ Feature: Cloudflare Integration
And request contains "account_id" parameter from "cloudflare_account.data.id"
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "cloudflare-accounts"
And the response "data.attributes.email" is equal to "dev@datadog.com"
And the response "data.attributes.name" is equal to "{{ unique_lower_alnum }}"

@generated @skip @team:Datadog/web-integrations
Scenario: List Cloudflare accounts returns "Bad Request" response
Expand All @@ -104,6 +110,7 @@ Feature: Cloudflare Integration
And new "ListCloudflareAccounts" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].type" is equal to "cloudflare-accounts"

@generated @skip @team:Datadog/web-integrations
Scenario: Update Cloudflare account returns "Bad Request" response
Expand Down
4 changes: 4 additions & 0 deletions features/v2/confluent_cloud.feature
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Feature: Confluent Cloud
And request contains "account_id" parameter from "confluent_account.data.id"
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "confluent-cloud-accounts"
And the response "data.attributes.api_key" is equal to "{{ unique_alnum }}"
And the response "data.attributes.resources[0].resource_type" is equal to "kafka"

@generated @skip @team:Datadog/web-integrations
Scenario: Get resource from Confluent account returns "Bad Request" response
Expand Down Expand Up @@ -187,6 +190,7 @@ Feature: Confluent Cloud
And new "ListConfluentAccount" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].type" is equal to "confluent-cloud-accounts"

@generated @skip @team:Datadog/web-integrations
Scenario: Update Confluent account returns "Bad Request" response
Expand Down
2 changes: 2 additions & 0 deletions features/v2/events.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Feature: Events
And request contains "page[limit]" parameter with value 5
When the request is sent
Then the response status is 200 OK
And the response "data" has length 0

@team:DataDog/event-management
Scenario: Search events returns "Bad Request" response
Expand All @@ -61,6 +62,7 @@ Feature: Events
And body with value {"filter": {"query": "datadog-agent", "from": "2020-09-17T11:48:36+01:00", "to": "2020-09-17T12:48:36+01:00"}, "sort": "timestamp", "page": {"limit": 5}}
When the request is sent
Then the response status is 200 OK
And the response "data" has length 0

@replay-only @team:DataDog/event-management @with-pagination
Scenario: Search events returns "OK" response with pagination
Expand Down
Loading