@@ -23,7 +23,6 @@ import (
2323 errs "errors"
2424 "fmt"
2525 "io"
26- "io/ioutil"
2726 "log"
2827 "mime/multipart"
2928 "net/http"
@@ -227,7 +226,7 @@ func (c *microcksClient) GetKeycloakURL() (string, error) {
227226 // Dump request if verbose required.
228227 config .DumpResponseIfRequired ("Microcks for getting Keycloak config" , resp , true )
229228
230- body , err := ioutil .ReadAll (resp .Body )
229+ body , err := io .ReadAll (resp .Body )
231230 if err != nil {
232231 panic (err .Error ())
233232 }
@@ -366,7 +365,7 @@ func (c *microcksClient) CreateTestResult(serviceID string, testEndpoint string,
366365 // Dump response if verbose required.
367366 config .DumpResponseIfRequired ("Microcks for creating test" , resp , true )
368367
369- body , err := ioutil .ReadAll (resp .Body )
368+ body , err := io .ReadAll (resp .Body )
370369 if err != nil {
371370 panic (err .Error ())
372371 }
@@ -405,7 +404,7 @@ func (c *microcksClient) GetTestResult(testResultID string) (*TestResultSummary,
405404 // Dump response if verbose required.
406405 config .DumpResponseIfRequired ("Microcks for getting status test" , resp , true )
407406
408- body , err := ioutil .ReadAll (resp .Body )
407+ body , err := io .ReadAll (resp .Body )
409408 if err != nil {
410409 panic (err .Error ())
411410 }
0 commit comments