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
Given operation "CreateGovernanceMitigation" enabled
114
+
And new "CreateGovernanceMitigation" request
115
+
And body with value {"data": {"attributes": {"detection_ids": ["3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"], "detection_type": "unused_api_keys", "mitigation_type": "revoke_api_key"}, "type": "governance_control_detection"}}
Given operation "CreateGovernanceMitigation" enabled
122
+
And new "CreateGovernanceMitigation" request
123
+
And body with value {"data": {"attributes": {"detection_ids": ["3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"], "detection_type": "unused_api_keys", "mitigation_type": "revoke_api_key"}, "type": "governance_control_detection"}}
Scenario: Update a governance control detection returns "Bad Request" response
129
+
Given operation "UpdateGovernanceControlDetection" enabled
130
+
And new "UpdateGovernanceControlDetection" request
131
+
And request contains "detection_type" parameter from "REPLACE.ME"
132
+
And request contains "detection_id" parameter from "REPLACE.ME"
133
+
And body with value {"data": {"attributes": {"assigned_team": "platform-security", "assigned_to": "11111111-2222-3333-4444-555555555555", "mitigate_after": "2024-03-15T00:00:00Z", "state": "exception"}, "type": "governance_control_detection"}}
Scenario: Update a governance control detection returns "Not Found" response
139
+
Given operation "UpdateGovernanceControlDetection" enabled
140
+
And new "UpdateGovernanceControlDetection" request
141
+
And request contains "detection_type" parameter from "REPLACE.ME"
142
+
And request contains "detection_id" parameter from "REPLACE.ME"
143
+
And body with value {"data": {"attributes": {"assigned_team": "platform-security", "assigned_to": "11111111-2222-3333-4444-555555555555", "mitigate_after": "2024-03-15T00:00:00Z", "state": "exception"}, "type": "governance_control_detection"}}
Scenario: Update a governance control detection returns "OK" response
149
+
Given operation "UpdateGovernanceControlDetection" enabled
150
+
And new "UpdateGovernanceControlDetection" request
151
+
And request contains "detection_type" parameter from "REPLACE.ME"
152
+
And request contains "detection_id" parameter from "REPLACE.ME"
153
+
And body with value {"data": {"attributes": {"assigned_team": "platform-security", "assigned_to": "11111111-2222-3333-4444-555555555555", "mitigate_after": "2024-03-15T00:00:00Z", "state": "exception"}, "type": "governance_control_detection"}}
Scenario: Update a governance control returns "Bad Request" response
54
159
Given operation "UpdateGovernanceControl" enabled
@@ -75,3 +180,21 @@ Feature: Governance Controls
75
180
And body with value {"data": {"attributes": {"detection_frequency": "daily", "mitigation_type": "revoke_api_key", "name": "Unused API Keys", "notification_frequency": "daily", "notification_type": "slack"}, "id": "0d4e6f8a-1b2c-3d4e-5f6a-7b8c9d0e1f2a", "type": "governance_control"}}
Scenario: Update governance control notification settings returns "Bad Request" response
186
+
Given operation "UpdateGovernanceControlNotificationSettings" enabled
187
+
And new "UpdateGovernanceControlNotificationSettings" request
188
+
And request contains "detection_type" parameter from "REPLACE.ME"
189
+
And body with value {"data": {"attributes": {"event_settings": [{"enabled": true, "event_type": "new_detection", "targets": [{"handle": "#governance-alerts", "type": "slack"}]}]}, "type": "control_notification_settings"}}
Scenario: Update governance control notification settings returns "OK" response
195
+
Given operation "UpdateGovernanceControlNotificationSettings" enabled
196
+
And new "UpdateGovernanceControlNotificationSettings" request
197
+
And request contains "detection_type" parameter from "REPLACE.ME"
198
+
And body with value {"data": {"attributes": {"event_settings": [{"enabled": true, "event_type": "new_detection", "targets": [{"handle": "#governance-alerts", "type": "slack"}]}]}, "type": "control_notification_settings"}}
0 commit comments