Skip to content

Commit 4d711b1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 06c7795 of spec repo (#598)
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 b28edcb commit 4d711b1

File tree

7 files changed

+65
-12
lines changed

7 files changed

+65
-12
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.5.1.dev2",
7-
"regenerated": "2021-10-08 15:41:32.329900",
8-
"spec_repo_commit": "9a4b94d"
7+
"regenerated": "2021-10-12 09:01:06.740298",
8+
"spec_repo_commit": "06c7795"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-08 15:42:11.137635",
13-
"spec_repo_commit": "9a4b94d"
12+
"regenerated": "2021-10-12 09:01:40.970217",
13+
"spec_repo_commit": "06c7795"
1414
}
1515
}
1616
}

docs/v1/Event.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/event.py

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/openapi.yaml

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2021-09-28T08:13:10.613Z
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
interactions:
2+
- request:
3+
body: '{"tags":["test:TestPostaneventwithalongtitlereturnsOKresponse1632816790"],"text":"A
4+
text message.","title":"Test-Post_an_event_with_a_long_title_returns_OK_response-1632816790
5+
very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong
6+
title with 100+ characters"}'
7+
headers:
8+
accept:
9+
- application/json, */*;q=0.8
10+
connection:
11+
- close
12+
content-length:
13+
- '306'
14+
content-type:
15+
- application/json
16+
host:
17+
- api.datadoghq.com
18+
user-agent:
19+
- datadog-api-client-typescript/1.0.0-beta.5 (node 14.17.6; os Linux; arch x64)
20+
x-datadog-parent-id:
21+
- '4925178679312190133'
22+
x-datadog-trace-id:
23+
- '734946206016071848'
24+
method: POST
25+
uri: https://api.datadoghq.com/api/v1/events
26+
response:
27+
body:
28+
string: '{"status":"ok","event":{"id":6183308802141975575,"id_str":"6183308802141975575","title":"Test-Post_an_event_with_a_long_title_returns_OK_response-1632816790
29+
very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong
30+
title with 100+ characters","text":"A text message.","date_happened":1632816790,"handle":null,"priority":null,"related_event_id":null,"tags":["test:TestPostaneventwithalongtitlereturnsOKresponse1632816790"],"url":"https://app.datadoghq.com/event/event?id=6183308802141975575"}}'
31+
headers:
32+
connection:
33+
- close
34+
content-length:
35+
- '536'
36+
content-security-policy:
37+
- frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report
38+
content-type:
39+
- application/json
40+
date:
41+
- Tue, 28 Sep 2021 08:13:10 GMT
42+
strict-transport-security:
43+
- max-age=15724800;
44+
x-content-type-options:
45+
- nosniff
46+
x-frame-options:
47+
- SAMEORIGIN
48+
status:
49+
code: 202
50+
message: Accepted
51+
version: 1

tests/v1/features/events.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ Feature: Events
3838
When the request is sent
3939
Then the response status is 202 OK
4040

41+
Scenario: Post an event with a long title returns "OK" response
42+
Given new "CreateEvent" request
43+
And body with value {"title": "{{ unique }} very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters", "text": "A text message.", "tags": ["test:{{ unique_alnum }}"]}
44+
When the request is sent
45+
Then the response status is 202 OK
46+
4147
@generated @skip
4248
Scenario: Query the event stream returns "Bad Request" response
4349
Given a valid "appKeyAuth" key in the system

0 commit comments

Comments
 (0)