Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Jan 8, 2025
1 parent 7e78f58 commit 7a8ef63
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/pkg/api/openapi.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/pkg/server/fleet_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ func Test_Agent_Id_No_ReplaceToken(t *testing.T) {
cli := cleanhttp.DefaultClient()
res, err := cli.Do(req)
require.NoError(t, err)
_ = res.Body.Close()
require.Equal(t, http.StatusForbidden, res.StatusCode)
}

Expand Down Expand Up @@ -928,6 +929,7 @@ func Test_Agent_Id_ReplaceToken_Mismatch(t *testing.T) {
cli := cleanhttp.DefaultClient()
res, err := cli.Do(req)
require.NoError(t, err)
_ = res.Body.Close()
require.Equal(t, http.StatusForbidden, res.StatusCode)
}

Expand Down
3 changes: 2 additions & 1 deletion model/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ components:
The ID of the agent.
This is the ID that will be used to reference this agent, if no ID is passed one will be generated.
If another agent is enrolled with the same ID the other agent will no longer be able to communicate,
this new agent is considered a replacement of the other agent.
this new agent is considered a replacement of the other agent. The other agent will be able to continue
sending data to ES.
type:
description: |
The enrollment type of the agent.
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/types.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a8ef63

Please sign in to comment.