You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
538
534
When the request is sent
539
535
Then the response status is 400 Bad Request
540
536
541
537
@generated@skip@team:DataDog/k9-investigation
542
538
Scenario: Create ServiceNow tickets for security findings returns "Created" response
543
-
Given operation "CreateServiceNowTickets" enabled
544
-
And new "CreateServiceNowTickets" request
539
+
Given new "CreateServiceNowTickets" request
545
540
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]}
Copy file name to clipboardExpand all lines: services/security_monitoring/src/v2/SecurityMonitoringApi.ts
-20Lines changed: 0 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -375,16 +375,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
375
375
): Promise<RequestContext> {
376
376
const _config = _options || this.configuration;
377
377
378
-
if (
379
-
!_config.unstableOperations[
380
-
"SecurityMonitoringApi.v2.attachServiceNowTicket"
381
-
]
382
-
) {
383
-
throw new Error(
384
-
"Unstable operation 'attachServiceNowTicket' is disabled. Enable it by setting `configuration.unstableOperations['SecurityMonitoringApi.v2.attachServiceNowTicket'] = true`",
385
-
);
386
-
}
387
-
388
378
// verify required parameter 'body' is not null or undefined
389
379
if (body === null || body === undefined) {
390
380
throw new RequiredError("body", "attachServiceNowTicket");
@@ -2127,16 +2117,6 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
"Unstable operation 'createServiceNowTickets' is disabled. Enable it by setting `configuration.unstableOperations['SecurityMonitoringApi.v2.createServiceNowTickets'] = true`",
2137
-
);
2138
-
}
2139
-
2140
2120
// verify required parameter 'body' is not null or undefined
2141
2121
if (body === null || body === undefined) {
2142
2122
throw new RequiredError("body", "createServiceNowTickets");
0 commit comments