Skip to content

Commit

Permalink
Attempt at fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jillguyonnet committed Oct 22, 2024
1 parent d6964d6 commit de405dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions testing/e2e/api_version/client_api_current.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit de405dd

Please # to comment.