From de7b16cf2278f4e9dea216e479552a3b8a8d6da6 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 3 Dec 2021 10:45:49 +0100 Subject: [PATCH] Integration tests: add author/removed_by to downtime cancellations This is implicitly checked in the history consistency tests in HA setups. --- tests/history_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/history_test.go b/tests/history_test.go index bae49c88..dc249886 100644 --- a/tests/history_test.go +++ b/tests/history_test.go @@ -312,6 +312,7 @@ func testHistory(t *testing.T, numNodes int) { req, err = json.Marshal(ActionsRemoveDowntimeRequest{ Downtime: downtimeName, + Author: utils.RandomString(8), }) require.NoError(t, err, "marshal remove-downtime request") response, err = client.PostJson("/v1/actions/remove-downtime", bytes.NewBuffer(req)) @@ -678,6 +679,7 @@ type ActionsProcessCheckResultRequest struct { type ActionsRemoveDowntimeRequest struct { Downtime string `json:"downtime"` + Author string `json:"author"` } type ActionsScheduleDowntimeRequest struct {