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 "UpdateScorecardOutcomesAsync" enabled
127
+
And there is a valid "create_scorecard_rule" in the system
128
+
And new "UpdateScorecardOutcomesAsync" request
129
+
And body with value {"data": {"attributes": {"results": [{"rule_id": "{{create_scorecard_rule.data.id}}", "entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "state": "pass"}]}, "type": "batched-outcome"}}
Given operation "UpdateScorecardOutcomesAsync" enabled
136
+
And there is a valid "create_scorecard_rule" in the system
137
+
And new "UpdateScorecardOutcomesAsync" request
138
+
And body with value {"data": {"attributes": {"results": [{"rule_id": "{{create_scorecard_rule.data.id}}", "entity_reference": "service:my-service", "state": "INVALID"}]}, "type": "batched-outcome"}}
Given operation "UpdateScorecardOutcomesAsync" enabled
147
+
And new "UpdateScorecardOutcomesAsync" request
148
+
And body with value {"data": {"attributes": {"results": [{"rule_id": "INVALID.RULE_ID", "entity_reference": "service:my-service", "remarks": "See: <a href=\"https://app.datadoghq.com/services\">Services</a>", "state": "pass"}]}, "type": "batched-outcome"}}
149
+
When the request is sent
150
+
Then the response status is 409 Conflict
151
+
And the response "errors" has length 1
152
+
124
153
@generated@skip@team:DataDog/service-catalog
125
154
Scenario: Update an existing rule returns "Bad Request" response
0 commit comments