Skip to content

Commit 106984b

Browse files
committed
update expected validation errors for swagger update
1 parent b749ece commit 106984b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pkg/apiserver/alerts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func TestCreateAlert(t *testing.T) {
139139
w = lapi.RecordResponse(t, ctx, http.MethodPost, "/v1/alerts", alertContent, "password")
140140
assert.Equal(t, http.StatusInternalServerError, w.Code)
141141
assert.JSONEq(t,
142-
`{"message":"validation failure list:\n0.scenario in body is required\n0.scenario_hash in body is required\n0.scenario_version in body is required\n0.simulated in body is required\n0.source in body is required"}`,
142+
`{"message":"0.scenario in body is required"}`,
143143
w.Body.String())
144144

145145
// Create Valid Alert

test/bats/08_metrics_bouncer.bats

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ teardown() {
8686
assert_output - <<-EOT
8787
validation failure list:
8888
remediation_components.0.metrics.0.items in body is required
89-
validation failure list:
90-
remediation_components.0.metrics.0.meta.utc_now_timestamp in body is required
91-
remediation_components.0.metrics.0.meta.window_size_seconds in body is required
9289
EOT
9390
}
9491

0 commit comments

Comments
 (0)