Skip to content

Commit 1162c59

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spectherve
authored
Regenerate client from commit 1a43071a of spec repo (#1513)
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> Co-authored-by: Thomas Hervé <[email protected]>
1 parent 3483545 commit 1162c59

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
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.4",
7-
"regenerated": "2023-06-07 12:15:32.988435",
8-
"spec_repo_commit": "a80d1dae"
7+
"regenerated": "2023-06-07 15:44:40.557387",
8+
"spec_repo_commit": "1a43071a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-07 12:15:33.004364",
13-
"spec_repo_commit": "a80d1dae"
12+
"regenerated": "2023-06-07 15:44:40.569692",
13+
"spec_repo_commit": "1a43071a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22221,6 +22221,8 @@ paths:
2222122221
schema:
2222222222
$ref: '#/components/schemas/APIErrorResponse'
2222322223
description: Authentication Error
22224+
'404':
22225+
$ref: '#/components/responses/NotFoundResponse'
2222422226
'429':
2222522227
$ref: '#/components/responses/TooManyRequestsResponse'
2222622228
summary: Delete Scanning Group
@@ -22265,6 +22267,8 @@ paths:
2226522267
schema:
2226622268
$ref: '#/components/schemas/APIErrorResponse'
2226722269
description: Authentication Error
22270+
'404':
22271+
$ref: '#/components/responses/NotFoundResponse'
2226822272
'429':
2226922273
$ref: '#/components/responses/TooManyRequestsResponse'
2227022274
summary: Update Scanning Group
@@ -22347,6 +22351,8 @@ paths:
2234722351
schema:
2234822352
$ref: '#/components/schemas/APIErrorResponse'
2234922353
description: Authentication Error
22354+
'404':
22355+
$ref: '#/components/responses/NotFoundResponse'
2235022356
'429':
2235122357
$ref: '#/components/responses/TooManyRequestsResponse'
2235222358
summary: Delete Scanning Rule
@@ -22390,6 +22396,8 @@ paths:
2239022396
schema:
2239122397
$ref: '#/components/schemas/APIErrorResponse'
2239222398
description: Authentication Error
22399+
'404':
22400+
$ref: '#/components/responses/NotFoundResponse'
2239322401
'429':
2239422402
$ref: '#/components/responses/TooManyRequestsResponse'
2239522403
summary: Update Scanning Rule

tests/v2/features/sensitive_data_scanner.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ Feature: Sensitive Data Scanner
5454
When the request is sent
5555
Then the response status is 400 Bad Request
5656

57+
@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
58+
Scenario: Delete Scanning Group returns "Not Found" response
59+
Given new "DeleteScanningGroup" request
60+
And request contains "group_id" parameter from "REPLACE.ME"
61+
And body with value {"meta": {"version": 0}}
62+
When the request is sent
63+
Then the response status is 404 Not Found
64+
5765
@team:DataDog/logs-app @team:DataDog/logs-core
5866
Scenario: Delete Scanning Group returns "OK" response
5967
Given a valid "configuration" in the system
@@ -72,6 +80,14 @@ Feature: Sensitive Data Scanner
7280
When the request is sent
7381
Then the response status is 400 Bad Request
7482

83+
@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
84+
Scenario: Delete Scanning Rule returns "Not Found" response
85+
Given new "DeleteScanningRule" request
86+
And request contains "rule_id" parameter from "REPLACE.ME"
87+
And body with value {"meta": {"version": 0}}
88+
When the request is sent
89+
Then the response status is 404 Not Found
90+
7591
@team:DataDog/logs-app @team:DataDog/logs-core
7692
Scenario: Delete Scanning Rule returns "OK" response
7793
Given a valid "configuration" in the system
@@ -136,6 +152,14 @@ Feature: Sensitive Data Scanner
136152
When the request is sent
137153
Then the response status is 400 Bad Request
138154

155+
@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
156+
Scenario: Update Scanning Group returns "Not Found" response
157+
Given new "UpdateScanningGroup" request
158+
And request contains "group_id" parameter from "REPLACE.ME"
159+
And body with value {"data": {"attributes": {"filter": {}, "product_list": ["logs"]}, "relationships": {"configuration": {"data": {"type": "sensitive_data_scanner_configuration"}}, "rules": {"data": [{"type": "sensitive_data_scanner_rule"}]}}, "type": "sensitive_data_scanner_group"}, "meta": {"version": 0}}
160+
When the request is sent
161+
Then the response status is 404 Not Found
162+
139163
@team:DataDog/logs-app @team:DataDog/logs-core
140164
Scenario: Update Scanning Group returns "OK" response
141165
Given a valid "configuration" in the system
@@ -157,6 +181,14 @@ Feature: Sensitive Data Scanner
157181
When the request is sent
158182
Then the response status is 400 Bad Request
159183

184+
@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
185+
Scenario: Update Scanning Rule returns "Not Found" response
186+
Given new "UpdateScanningRule" request
187+
And request contains "rule_id" parameter from "REPLACE.ME"
188+
And body with value {"data": {"attributes": {"excluded_namespaces": ["admin.name"], "namespaces": ["admin"], "tags": [], "text_replacement": {"type": "none"}}, "relationships": {"group": {"data": {"type": "sensitive_data_scanner_group"}}, "standard_pattern": {"data": {"type": "sensitive_data_scanner_standard_pattern"}}}, "type": "sensitive_data_scanner_rule"}, "meta": {"version": 0}}
189+
When the request is sent
190+
Then the response status is 404 Not Found
191+
160192
@team:DataDog/logs-app @team:DataDog/logs-core
161193
Scenario: Update Scanning Rule returns "OK" response
162194
Given a valid "configuration" in the system

0 commit comments

Comments
 (0)