Profiling endpoint fixes (#1707)

- Added support to download all profile tests
- profile.zip file was corrupted after download
- Add suspension warning
- Add Checkbox support
- Support for running multiple profiling types at the same time
- fix profiling test

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
This commit is contained in:
Lenin Alevski
2022-03-18 12:52:42 -07:00
committed by GitHub
parent 3a09361899
commit d7fef8d89e
11 changed files with 241 additions and 212 deletions

View File

@@ -24,7 +24,6 @@ import (
"errors"
"github.com/minio/console/models"
"github.com/minio/madmin-go"
"github.com/stretchr/testify/assert"
)
@@ -63,7 +62,7 @@ func TestStartProfiling(t *testing.T) {
}, nil
}
function := "startProfiling()"
cpuProfiler := models.ProfilerType("cpu")
cpuProfiler := "cpu"
startProfilingResults, err := startProfiling(ctx, adminClient, cpuProfiler)
if err != nil {
t.Errorf("Failed on %s:, error occurred: %s", function, err.Error())