From de405dd6a4a9081770f4306f595237195f170dc3 Mon Sep 17 00:00:00 2001 From: Jill Guyonnet Date: Tue, 22 Oct 2024 11:04:28 +0100 Subject: [PATCH] Attempt at fixing test --- testing/e2e/api_version/client_api_current.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/testing/e2e/api_version/client_api_current.go b/testing/e2e/api_version/client_api_current.go index 682cd787a..6009f6c81 100644 --- a/testing/e2e/api_version/client_api_current.go +++ b/testing/e2e/api_version/client_api_current.go @@ -362,9 +362,12 @@ func (tester *ClientAPITester) TestCheckinWithActionNotFound() { tester.T().Logf("test checkin with no upgrade action: agent %s", agentID) // checkin request with upgrade details req := &api.AgentCheckinJSONRequestBody{ - Status: api.CheckinRequestStatusOnline, - Message: "test checkin", - UpgradeDetails: &api.UpgradeDetailsStateUPGDOWNLOADING, + Status: api.CheckinRequestStatusOnline, + Message: "test checkin", + UpgradeDetails: &api.UpgradeDetails{ + ActionId: "test-missing-id", + State: api.UpgradeDetailsStateUPGDOWNLOADING, + }, } _, _, statusCode := tester.Checkin(ctx, agentKey, agentID, nil, nil, req) tester.Require().Equal(http.StatusOK, statusCode, "Expected status code 200 for successful checkin with action not found")