@@ -3,7 +3,7 @@ package jira
33import (
44 "bytes"
55 "fmt"
6- "io/ioutil "
6+ "io"
77 "net/http"
88 "reflect"
99 "testing"
@@ -15,7 +15,7 @@ func TestAuthenticationService_AcquireSessionCookie_Failure(t *testing.T) {
1515 testMux .HandleFunc ("/rest/auth/1/session" , func (w http.ResponseWriter , r * http.Request ) {
1616 testMethod (t , r , "POST" )
1717 testRequestURL (t , r , "/rest/auth/1/session" )
18- b , err := ioutil .ReadAll (r .Body )
18+ b , err := io .ReadAll (r .Body )
1919 if err != nil {
2020 t .Errorf ("Error in read body: %s" , err )
2121 }
@@ -49,7 +49,7 @@ func TestAuthenticationService_AcquireSessionCookie_Success(t *testing.T) {
4949 testMux .HandleFunc ("/rest/auth/1/session" , func (w http.ResponseWriter , r * http.Request ) {
5050 testMethod (t , r , "POST" )
5151 testRequestURL (t , r , "/rest/auth/1/session" )
52- b , err := ioutil .ReadAll (r .Body )
52+ b , err := io .ReadAll (r .Body )
5353 if err != nil {
5454 t .Errorf ("Error in read body: %s" , err )
5555 }
@@ -140,7 +140,7 @@ func TestAuthenticationService_GetUserInfo_AccessForbidden_Fail(t *testing.T) {
140140 if r .Method == "POST" {
141141 testMethod (t , r , "POST" )
142142 testRequestURL (t , r , "/rest/auth/1/session" )
143- b , err := ioutil .ReadAll (r .Body )
143+ b , err := io .ReadAll (r .Body )
144144 if err != nil {
145145 t .Errorf ("Error in read body: %s" , err )
146146 }
@@ -178,7 +178,7 @@ func TestAuthenticationService_GetUserInfo_NonOkStatusCode_Fail(t *testing.T) {
178178 if r .Method == "POST" {
179179 testMethod (t , r , "POST" )
180180 testRequestURL (t , r , "/rest/auth/1/session" )
181- b , err := ioutil .ReadAll (r .Body )
181+ b , err := io .ReadAll (r .Body )
182182 if err != nil {
183183 t .Errorf ("Error in read body: %s" , err )
184184 }
@@ -234,7 +234,7 @@ func TestAuthenticationService_GetUserInfo_Success(t *testing.T) {
234234 if r .Method == "POST" {
235235 testMethod (t , r , "POST" )
236236 testRequestURL (t , r , "/rest/auth/1/session" )
237- b , err := ioutil .ReadAll (r .Body )
237+ b , err := io .ReadAll (r .Body )
238238 if err != nil {
239239 t .Errorf ("Error in read body: %s" , err )
240240 }
@@ -276,7 +276,7 @@ func TestAuthenticationService_Logout_Success(t *testing.T) {
276276 if r .Method == "POST" {
277277 testMethod (t , r , "POST" )
278278 testRequestURL (t , r , "/rest/auth/1/session" )
279- b , err := ioutil .ReadAll (r .Body )
279+ b , err := io .ReadAll (r .Body )
280280 if err != nil {
281281 t .Errorf ("Error in read body: %s" , err )
282282 }
0 commit comments