Skip to content

Commit

Permalink
Update cws group in CODEOWNERS (#1890)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 1, 2023
1 parent 10f9a1b commit f5c0655
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 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.4",
"regenerated": "2023-03-01 15:45:35.664586",
"spec_repo_commit": "8905444b"
"regenerated": "2023-03-01 19:51:30.039125",
"spec_repo_commit": "fc9468ac"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-03-01 15:45:35.677341",
"spec_repo_commit": "8905444b"
"regenerated": "2023-03-01 19:51:30.051769",
"spec_repo_commit": "fc9468ac"
}
}
}
26 changes: 13 additions & 13 deletions tests/scenarios/features/v2/cloud_workload_security.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ Feature: Cloud Workload Security
And a valid "appKeyAuth" key in the system
And an instance of "CloudWorkloadSecurity" API

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Create a Cloud Workload Security Agent rule returns "Bad Request" response
Given new "CreateCloudWorkloadSecurityAgentRule" request
And body with value {"data": {"attributes": {"description": "Test Agent rule", "enabled": true, "expression": "open.file.path = sh", "name": "{{ unique_lower_alnum }}"}, "type": "agent_rule"}}
When the request is sent
Then the response status is 400 Bad Request

@skip @team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@skip @team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Create a Cloud Workload Security Agent rule returns "Conflict" response
Given new "CreateCloudWorkloadSecurityAgentRule" request
And body with value {"data": {"attributes": {"description": "Test Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\"", "name": "{{ unique_lower_alnum }}"}, "type": "agent_rule"}}
When the request is sent
Then the response status is 409 Conflict

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Create a Cloud Workload Security Agent rule returns "OK" response
Given new "CreateCloudWorkloadSecurityAgentRule" request
And body with value {"data": {"attributes": {"description": "Test Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\"", "name": "{{ unique_lower_alnum }}"}, "type": "agent_rule"}}
Expand All @@ -31,29 +31,29 @@ Feature: Cloud Workload Security
And the response "data.type" is equal to "agent_rule"
And the response "data.attributes.description" is equal to "Test Agent rule"

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Delete a Cloud Workload Security Agent rule returns "Not Found" response
Given new "DeleteCloudWorkloadSecurityAgentRule" request
And request contains "agent_rule_id" parameter with value "abc-123-xyz"
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Delete a Cloud Workload Security Agent rule returns "OK" response
Given there is a valid "agent_rule" in the system
And new "DeleteCloudWorkloadSecurityAgentRule" request
And request contains "agent_rule_id" parameter from "agent_rule.data.id"
When the request is sent
Then the response status is 204 OK

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Get a Cloud Workload Security Agent rule returns "Not Found" response
Given new "GetCloudWorkloadSecurityAgentRule" request
And request contains "agent_rule_id" parameter with value "abc-123-xyz"
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Get a Cloud Workload Security Agent rule returns "OK" response
Given there is a valid "agent_rule" in the system
And new "GetCloudWorkloadSecurityAgentRule" request
Expand All @@ -63,21 +63,21 @@ Feature: Cloud Workload Security
And the response "data.type" is equal to "agent_rule"
And the response "data.attributes.description" is equal to "My Agent rule"

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Get all Cloud Workload Security Agent rules returns "OK" response
Given there is a valid "agent_rule" in the system
And new "ListCloudWorkloadSecurityAgentRules" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].type" is equal to "agent_rule"

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Get the latest Cloud Workload Security policy returns "OK" response
Given new "DownloadCloudWorkloadPolicyFile" request
When the request is sent
Then the response status is 200 OK

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Update a Cloud Workload Security Agent rule returns "Bad Request" response
Given there is a valid "agent_rule" in the system
And new "UpdateCloudWorkloadSecurityAgentRule" request
Expand All @@ -86,7 +86,7 @@ Feature: Cloud Workload Security
When the request is sent
Then the response status is 400 Bad Request

@skip @team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@skip @team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Update a Cloud Workload Security Agent rule returns "Concurrent Modification" response
Given there is a valid "agent_rule" in the system
And new "UpdateCloudWorkloadSecurityAgentRule" request
Expand All @@ -95,15 +95,15 @@ Feature: Cloud Workload Security
When the request is sent
Then the response status is 409 Concurrent Modification

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Update a Cloud Workload Security Agent rule returns "Not Found" response
Given new "UpdateCloudWorkloadSecurityAgentRule" request
And request contains "agent_rule_id" parameter with value "abc-123-xyz"
And body with value {"data": {"attributes": {"description": "Test Agent rule", "enabled": true, "expression": "exec.file.name == \"sh\""}, "type": "agent_rule"}}
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/cws-backend @team:DataDog/k9-cloud-security-platform
@team:DataDog/k9-cloud-security-platform @team:DataDog/k9-cws-backend
Scenario: Update a Cloud Workload Security Agent rule returns "OK" response
Given there is a valid "agent_rule" in the system
And new "UpdateCloudWorkloadSecurityAgentRule" request
Expand Down

0 comments on commit f5c0655

Please sign in to comment.