Skip to content

Commit

Permalink
more PR improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Dec 7, 2023
1 parent 0082417 commit e4cb918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/agent/cmd/enroll_cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ func TestEnroll(t *testing.T) {
}

assert.True(t, store.Called)

config, err := readConfig(store.Content)
require.NoError(t, err, "readConfig returned an error")
assert.Equal(t, "my-access-api-key", config.AccessAPIKey,
"The stored 'Access API Key' must be the same returned by Fleet-Server")
assert.Equal(t, host, config.Client.Host,
Expand Down
8 changes: 4 additions & 4 deletions testing/integration/container_cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ func TestContainerCMD(t *testing.T) {
}

cmd, err := agentFixture.PrepareAgentCommand(ctx, []string{"container"})
cmd.Env = append(os.Environ(), []string{
cmd.Env = append(os.Environ(),
"FLEET_ENROLL=1",
"FLEET_URL=" + fleetURL,
"FLEET_ENROLLMENT_TOKEN=" + enrollmentToken.APIKey,
}...)
"FLEET_URL="+fleetURL,
"FLEET_ENROLLMENT_TOKEN="+enrollmentToken.APIKey,
)

t.Logf(">> running binary with: %v", cmd.Args)
output, err := cmd.CombinedOutput()
Expand Down

0 comments on commit e4cb918

Please sign in to comment.