Skip to content

Commit

Permalink
Regenerate client from commit 8a003d3 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Nov 27, 2021
1 parent 76bfb79 commit 08b3a75
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 4 deletions.
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.5.1.dev2",
"regenerated": "2021-11-26 10:29:43.003956",
"spec_repo_commit": "fdabc88"
"regenerated": "2021-11-27 20:34:13.551699",
"spec_repo_commit": "8a003d3"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-26 10:29:43.022631",
"spec_repo_commit": "fdabc88"
"regenerated": "2021-11-27 20:34:13.573859",
"spec_repo_commit": "8a003d3"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2021-11-27T10:34:03.855Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
interactions:
- request:
body: |
{"date_happened":1,"tags":["test:TestPostaneventinthepastreturnsBadRequestresponse1638009243"],"text":"A text message.","title":"Test-Post_an_event_in_the_past_returns_Bad_Request_response-1638009243"}
form: {}
headers:
Accept:
- application/json, */*;q=0.8
Connection:
- close
Content-Length:
- '201'
Content-Type:
- application/json
Host:
- api.datadoghq.com
User-Agent:
- datadog-api-client-typescript/1.0.0-beta.4+dev (node 16.11.0; os Darwin; arch
x64)
X-Datadog-Parent-Id:
- '6045414839224189330'
X-Datadog-Trace-Id:
- '6045414839224189330'
method: POST
url: https://api.datadoghq.com/api/v1/events
response:
body: '{"errors": ["Event too far in the past"]}'
code: 400
duration: ''
headers:
Connection:
- close
Content-Length:
- '41'
Content-Security-Policy:
- frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report
Content-Type:
- text/plain; charset=utf-8
Date:
- Sat, 27 Nov 2021 10:34:04 GMT
Strict-Transport-Security:
- max-age=15724800;
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- SAMEORIGIN
status: 400 Bad Request
version: 1
7 changes: 7 additions & 0 deletions tests/scenarios/features/v1/events.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ Feature: Events
When the request is sent
Then the response status is 202 OK

Scenario: Post an event in the past returns "Bad Request" response
Given new "CreateEvent" request
And body with value {"title": "{{ unique }}", "text": "A text message.", "date_happened": 1, "tags": ["test:{{ unique_alnum }}"]}
When the request is sent
Then the response status is 400 Bad Request
And the response "errors[0]" is equal to "Event too far in the past"

@generated @skip
Scenario: Query the event stream returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
Expand Down

0 comments on commit 08b3a75

Please sign in to comment.