@@ -3,7 +3,7 @@ package registry
33import (
44 "bytes"
55 "fmt"
6- "io/ioutil "
6+ "io"
77 "net/http"
88 "strings"
99 "testing"
@@ -50,7 +50,7 @@ func TestDownloadSchema(t *testing.T) {
5050 newMockHTTPGetter (func (url string ) (resp * http.Response , err error ) {
5151 return & http.Response {
5252 StatusCode : http .StatusNotFound ,
53- Body : ioutil .NopCloser (strings .NewReader ("http response mock body" )),
53+ Body : io .NopCloser (strings .NewReader ("http response mock body" )),
5454 }, nil
5555 }),
5656 "http://kubernetesjson.dev" ,
@@ -66,7 +66,7 @@ func TestDownloadSchema(t *testing.T) {
6666 newMockHTTPGetter (func (url string ) (resp * http.Response , err error ) {
6767 return & http.Response {
6868 StatusCode : http .StatusServiceUnavailable ,
69- Body : ioutil .NopCloser (strings .NewReader ("http response mock body" )),
69+ Body : io .NopCloser (strings .NewReader ("http response mock body" )),
7070 }, nil
7171 }),
7272 "http://kubernetesjson.dev" ,
@@ -82,7 +82,7 @@ func TestDownloadSchema(t *testing.T) {
8282 newMockHTTPGetter (func (url string ) (resp * http.Response , err error ) {
8383 return & http.Response {
8484 StatusCode : http .StatusOK ,
85- Body : ioutil .NopCloser (strings .NewReader ("http response mock body" )),
85+ Body : io .NopCloser (strings .NewReader ("http response mock body" )),
8686 }, nil
8787 }),
8888 "http://kubernetesjson.dev" ,
0 commit comments