Skip to content

Commit

Permalink
Regenerate client from commit ca2ada97 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 30, 2024
1 parent dc9ee45 commit b110257
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 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.6.6",
"regenerated": "2024-01-26 20:57:00.588070",
"spec_repo_commit": "a1db94fd"
"regenerated": "2024-01-30 13:10:11.080986",
"spec_repo_commit": "ca2ada97"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-01-26 20:57:00.671832",
"spec_repo_commit": "a1db94fd"
"regenerated": "2024-01-30 13:10:11.098730",
"spec_repo_commit": "ca2ada97"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17240,7 +17240,7 @@ components:
description: 'Keyword list that will be checked during scanning in order
to validate a match.

The number of keywords in the list must be less than or equal to 20.'
The number of keywords in the list must be lower or equal than 30.'
example:
- credit card
- cc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self_, character_count: int, keywords: List[str], **kwargs):
:type character_count: int
:param keywords: Keyword list that will be checked during scanning in order to validate a match.
The number of keywords in the list must be less than or equal to 20.
The number of keywords in the list must be lower or equal than 30.
:type keywords: [str]
"""
super().__init__(kwargs)
Expand Down
44 changes: 22 additions & 22 deletions tests/v2/features/sensitive_data_scanner.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Feature: Sensitive Data Scanner
And a valid "appKeyAuth" key in the system
And an instance of "SensitiveDataScanner" API

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Create Scanning Group returns "Bad Request" response
Given new "CreateScanningGroup" request
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}}
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Create Scanning Group returns "OK" response
Given a valid "configuration" in the system
And new "CreateScanningGroup" request
Expand All @@ -25,7 +25,7 @@ Feature: Sensitive Data Scanner
And the response "data.type" is equal to "sensitive_data_scanner_group"
And the response "data.attributes.name" is equal to "{{ unique }}"

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Create Scanning Rule returns "Bad Request" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -34,7 +34,7 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Create Scanning Rule returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -48,23 +48,23 @@ Feature: Sensitive Data Scanner
And the response "data.attributes.included_keyword_configuration.character_count" is equal to 35
And the response "data.attributes.included_keyword_configuration.keywords[0]" is equal to "credit card"

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Delete Scanning Group returns "Bad Request" response
Given new "DeleteScanningGroup" request
And request contains "group_id" parameter from "REPLACE.ME"
And body with value {"meta": {"version": 0}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Delete Scanning Group returns "Not Found" response
Given new "DeleteScanningGroup" request
And request contains "group_id" parameter from "REPLACE.ME"
And body with value {"meta": {"version": 0}}
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Delete Scanning Group returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -74,23 +74,23 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Delete Scanning Rule returns "Bad Request" response
Given new "DeleteScanningRule" request
And request contains "rule_id" parameter from "REPLACE.ME"
And body with value {"meta": {"version": 0}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Delete Scanning Rule returns "Not Found" response
Given new "DeleteScanningRule" request
And request contains "rule_id" parameter from "REPLACE.ME"
And body with value {"meta": {"version": 0}}
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Delete Scanning Rule returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -101,13 +101,13 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: List Scanning Groups returns "Bad Request" response
Given new "ListScanningGroups" request
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: List Scanning Groups returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -116,19 +116,19 @@ Feature: Sensitive Data Scanner
Then the response status is 200 OK
And the response "included" has item with field "id" with value "{{ group.data.id }}"

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: List standard patterns returns "Bad Request" response
Given new "ListStandardPatterns" request
When the request is sent
Then the response status is 400 Bad Request

@integration-only @team:DataDog/logs-app @team:DataDog/logs-core
@integration-only @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: List standard patterns returns "OK" response
Given new "ListStandardPatterns" request
When the request is sent
Then the response status is 200 OK

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Reorder Groups returns "Bad Request" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -137,7 +137,7 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 400 Bad Request

@replay-only @team:DataDog/logs-app @team:DataDog/logs-core
@replay-only @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Reorder Groups returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -146,23 +146,23 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Update Scanning Group returns "Bad Request" response
Given new "UpdateScanningGroup" request
And request contains "group_id" parameter from "REPLACE.ME"
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}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Update Scanning Group returns "Not Found" response
Given new "UpdateScanningGroup" request
And request contains "group_id" parameter from "REPLACE.ME"
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}}
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Update Scanning Group returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -172,7 +172,7 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 200 OK

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Update Scanning Rule returns "Bad Request" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand All @@ -183,15 +183,15 @@ Feature: Sensitive Data Scanner
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/logs-app @team:DataDog/logs-core
@generated @skip @team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Update Scanning Rule returns "Not Found" response
Given new "UpdateScanningRule" request
And request contains "rule_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"excluded_namespaces": ["admin.name"], "included_keyword_configuration": {"character_count": 30, "keywords": ["credit card", "cc"]}, "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}}
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/logs-app @team:DataDog/logs-core
@team:DataDog/logs-app @team:DataDog/sensitive-data-scanner
Scenario: Update Scanning Rule returns "OK" response
Given a valid "configuration" in the system
And there is a valid "scanning_group" in the system
Expand Down

0 comments on commit b110257

Please sign in to comment.