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
description: Get ownership settings for the org. When settings are unset, the API returns the default opt-out configuration with `auto_tag` set to `true` and `confidence_level` set to `high`.
Copy file name to clipboardExpand all lines: features/v2/csm_ownership.feature
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,13 @@ Feature: CSM Ownership
12
12
And a valid "appKeyAuth" key in the system
13
13
And an instance of "CSMOwnership" API
14
14
15
+
@generated@skip@team:DataDog/k9-misconfigs
16
+
Scenario: Count untagged findings by ownership confidence returns "OK" response
17
+
Given operation "GetOwnershipUntaggedFindings" enabled
18
+
And new "GetOwnershipUntaggedFindings" request
19
+
When the request is sent
20
+
Then the response status is 200 OK
21
+
15
22
@generated@skip@team:DataDog/k9-misconfigs
16
23
Scenario: Get an ownership inference by owner type returns "Bad Request" response
17
24
Given operation "GetOwnershipInference" enabled
@@ -39,6 +46,13 @@ Feature: CSM Ownership
39
46
When the request is sent
40
47
Then the response status is 200 OK
41
48
49
+
@generated@skip@team:DataDog/k9-misconfigs
50
+
Scenario: Get ownership settings for the org returns "OK" response
51
+
Given operation "GetOwnershipSettings" enabled
52
+
And new "GetOwnershipSettings" request
53
+
When the request is sent
54
+
Then the response status is 200 OK
55
+
42
56
@generated@skip@team:DataDog/k9-misconfigs
43
57
Scenario: Get the evidence for an ownership inference returns "Bad Request" response
44
58
Given operation "GetOwnershipEvidence" enabled
@@ -163,3 +177,19 @@ Feature: CSM Ownership
163
177
And body with value {"data": {"attributes": {"action": "confirm", "actor_handle": "user@example.com", "actor_type": "user", "corrected_owner_handle": "team-b", "corrected_owner_type": "team", "inference_checksum": "abc123", "reason": "Confirmed by team lead."}, "type": "ownership_feedback"}}
164
178
When the request is sent
165
179
Then the response status is 404 Not Found
180
+
181
+
@generated@skip@team:DataDog/k9-misconfigs
182
+
Scenario: Update ownership settings for the org returns "Bad Request" response
183
+
Given operation "PostOwnershipSettings" enabled
184
+
And new "PostOwnershipSettings" request
185
+
And body with value {"data": {"attributes": {"auto_tag": true, "confidence_level": "high"}, "type": "ownership_settings"}}
186
+
When the request is sent
187
+
Then the response status is 400 Bad Request
188
+
189
+
@generated@skip@team:DataDog/k9-misconfigs
190
+
Scenario: Update ownership settings for the org returns "OK" response
191
+
Given operation "PostOwnershipSettings" enabled
192
+
And new "PostOwnershipSettings" request
193
+
And body with value {"data": {"attributes": {"auto_tag": true, "confidence_level": "high"}, "type": "ownership_settings"}}
0 commit comments