Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cws group in CODEOWNERS #1890

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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