Integration tests: add author/removed_by to downtime cancellations

This is implicitly checked in the history consistency tests in HA setups.
This commit is contained in:
Julian Brost 2021-12-03 10:45:49 +01:00
parent 02a36ad8b5
commit de7b16cf22

View file

@ -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 {