@@ -13,7 +13,6 @@ import (
13
13
"encoding/json"
14
14
"encoding/pem"
15
15
"io"
16
- "io/ioutil"
17
16
"math/big"
18
17
"net"
19
18
"net/http"
@@ -323,7 +322,7 @@ func NewGoogleInstanceIdentity(t *testing.T, instanceID string, expired bool) (*
323
322
require .NoError (t , err )
324
323
return & http.Response {
325
324
StatusCode : http .StatusOK ,
326
- Body : ioutil .NopCloser (bytes .NewReader (data )),
325
+ Body : io .NopCloser (bytes .NewReader (data )),
327
326
Header : make (http.Header ),
328
327
}, nil
329
328
}),
@@ -334,7 +333,7 @@ func NewGoogleInstanceIdentity(t *testing.T, instanceID string, expired bool) (*
334
333
Transport : roundTripper (func (r * http.Request ) (* http.Response , error ) {
335
334
return & http.Response {
336
335
StatusCode : http .StatusOK ,
337
- Body : ioutil .NopCloser (bytes .NewReader ([]byte (signedKey ))),
336
+ Body : io .NopCloser (bytes .NewReader ([]byte (signedKey ))),
338
337
Header : make (http.Header ),
339
338
}, nil
340
339
}),
@@ -379,19 +378,19 @@ func NewAWSInstanceIdentity(t *testing.T, instanceID string) (awsidentity.Certif
379
378
case "/latest/api/token" :
380
379
return & http.Response {
381
380
StatusCode : http .StatusOK ,
382
- Body : ioutil .NopCloser (bytes .NewReader ([]byte ("faketoken" ))),
381
+ Body : io .NopCloser (bytes .NewReader ([]byte ("faketoken" ))),
383
382
Header : make (http.Header ),
384
383
}, nil
385
384
case "/latest/dynamic/instance-identity/signature" :
386
385
return & http.Response {
387
386
StatusCode : http .StatusOK ,
388
- Body : ioutil .NopCloser (bytes .NewReader (signature )),
387
+ Body : io .NopCloser (bytes .NewReader (signature )),
389
388
Header : make (http.Header ),
390
389
}, nil
391
390
case "/latest/dynamic/instance-identity/document" :
392
391
return & http.Response {
393
392
StatusCode : http .StatusOK ,
394
- Body : ioutil .NopCloser (bytes .NewReader (document )),
393
+ Body : io .NopCloser (bytes .NewReader (document )),
395
394
Header : make (http.Header ),
396
395
}, nil
397
396
default :
0 commit comments