Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup leftover comments in TestSetLogLevelFleetManaged #4926

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions testing/integration/log_level_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,6 @@ func TestSetLogLevelFleetManaged(t *testing.T) {
fleetServerURL, err := fleettools.DefaultURL(ctx, info.KibanaClient)
require.NoError(t, err, "failed getting Fleet Server URL")

//cmd, err := f.PrepareAgentCommand(ctx, nil)
//if err != nil {
// t.Fatalf("cannot prepare Elastic-Agent command: %s", err)
//}
//
//output := strings.Builder{}
//cmd.Stderr = &output
//cmd.Stdout = &output
//
//if err = cmd.Start(); err != nil {
// t.Fatalf("could not start Elastic-Agent: %s", err)
//}
//
//out, err := f.Exec(ctx, []string{"enroll", "--url", fleetServerURL, "--enrollment-token", enrollmentTokenResp.APIKey})
//require.NoErrorf(t, err, "error enrolling agent. Enroll command output:\n%s\n", string(out))

installOutput, err := f.Install(ctx, &atesting.InstallOpts{
NonInteractive: true,
Force: true,
Expand All @@ -89,18 +73,6 @@ func TestSetLogLevelFleetManaged(t *testing.T) {
agentID, err := getAgentID(ctx, f)
require.NoError(t, err, "error getting the agent ID")

// Make sure the Elastic-Agent process is not running before
// exiting the test
//t.Cleanup(func() {
// // Ignore the error because we cancelled the context,
// // and that always returns an error
// _ = cmd.Wait()
// if t.Failed() {
// t.Log("Elastic-Agent output:")
// t.Log(output.String())
// }
//})

testLogLevelSetViaFleet(ctx, f, agentID, t, info, policyResp)
}

Expand Down
Loading