@@ -13,7 +13,6 @@ import (
1313 "encoding/json"
1414 "encoding/pem"
1515 "io"
16- "io/ioutil"
1716 "math/big"
1817 "net"
1918 "net/http"
@@ -323,7 +322,7 @@ func NewGoogleInstanceIdentity(t *testing.T, instanceID string, expired bool) (*
323322 require .NoError (t , err )
324323 return & http.Response {
325324 StatusCode : http .StatusOK ,
326- Body : ioutil .NopCloser (bytes .NewReader (data )),
325+ Body : io .NopCloser (bytes .NewReader (data )),
327326 Header : make (http.Header ),
328327 }, nil
329328 }),
@@ -334,7 +333,7 @@ func NewGoogleInstanceIdentity(t *testing.T, instanceID string, expired bool) (*
334333 Transport : roundTripper (func (r * http.Request ) (* http.Response , error ) {
335334 return & http.Response {
336335 StatusCode : http .StatusOK ,
337- Body : ioutil .NopCloser (bytes .NewReader ([]byte (signedKey ))),
336+ Body : io .NopCloser (bytes .NewReader ([]byte (signedKey ))),
338337 Header : make (http.Header ),
339338 }, nil
340339 }),
@@ -379,19 +378,19 @@ func NewAWSInstanceIdentity(t *testing.T, instanceID string) (awsidentity.Certif
379378 case "/latest/api/token" :
380379 return & http.Response {
381380 StatusCode : http .StatusOK ,
382- Body : ioutil .NopCloser (bytes .NewReader ([]byte ("faketoken" ))),
381+ Body : io .NopCloser (bytes .NewReader ([]byte ("faketoken" ))),
383382 Header : make (http.Header ),
384383 }, nil
385384 case "/latest/dynamic/instance-identity/signature" :
386385 return & http.Response {
387386 StatusCode : http .StatusOK ,
388- Body : ioutil .NopCloser (bytes .NewReader (signature )),
387+ Body : io .NopCloser (bytes .NewReader (signature )),
389388 Header : make (http.Header ),
390389 }, nil
391390 case "/latest/dynamic/instance-identity/document" :
392391 return & http.Response {
393392 StatusCode : http .StatusOK ,
394- Body : ioutil .NopCloser (bytes .NewReader (document )),
393+ Body : io .NopCloser (bytes .NewReader (document )),
395394 Header : make (http.Header ),
396395 }, nil
397396 default :
0 commit comments