11package devportalservice
22
33import (
4- "io/ioutil "
4+ "io"
55 "net/http"
66 "strings"
77 "testing"
@@ -23,7 +23,7 @@ func TestGetAppleDeveloperConnection(t *testing.T) {
2323 name : "No Apple Developer Connection set for the build" ,
2424 response : & http.Response {
2525 StatusCode : 200 ,
26- Body : ioutil .NopCloser (strings .NewReader ("{}" )),
26+ Body : io .NopCloser (strings .NewReader ("{}" )),
2727 },
2828 want : & AppleDeveloperConnection {},
2929 wantErr : false ,
@@ -32,7 +32,7 @@ func TestGetAppleDeveloperConnection(t *testing.T) {
3232 name : "No Apple Developer Connection set for the build, test devices available" ,
3333 response : & http.Response {
3434 StatusCode : 200 ,
35- Body : ioutil .NopCloser (strings .NewReader (testDevicesResponseBody )),
35+ Body : io .NopCloser (strings .NewReader (testDevicesResponseBody )),
3636 },
3737 want : & testConnectionOnlyDevices ,
3838 wantErr : false ,
@@ -41,7 +41,7 @@ func TestGetAppleDeveloperConnection(t *testing.T) {
4141 name : "Apple ID-based Apple Developer Connection set for the build" ,
4242 response : & http.Response {
4343 StatusCode : 200 ,
44- Body : ioutil .NopCloser (strings .NewReader (testAppleIDConnectionResponseBody )),
44+ Body : io .NopCloser (strings .NewReader (testAppleIDConnectionResponseBody )),
4545 },
4646 want : & testConnectionWithAppleIDConnection ,
4747 wantErr : false ,
@@ -50,7 +50,7 @@ func TestGetAppleDeveloperConnection(t *testing.T) {
5050 name : "API key Apple Developer Connection set for the build" ,
5151 response : & http.Response {
5252 StatusCode : 200 ,
53- Body : ioutil .NopCloser (strings .NewReader (testAPIKeyConnectionResponseBody )),
53+ Body : io .NopCloser (strings .NewReader (testAPIKeyConnectionResponseBody )),
5454 },
5555 want : & testConnectionWithAPIKeyConnection ,
5656 wantErr : false ,
@@ -59,7 +59,7 @@ func TestGetAppleDeveloperConnection(t *testing.T) {
5959 name : "Apple ID-based and API key Apple Developer Connection set for the build, test device available" ,
6060 response : & http.Response {
6161 StatusCode : 200 ,
62- Body : ioutil .NopCloser (strings .NewReader (testAppleIDAndAPIKeyConnectionResponseBody )),
62+ Body : io .NopCloser (strings .NewReader (testAppleIDAndAPIKeyConnectionResponseBody )),
6363 },
6464 want : & testConnectionWithAppleIDAndAPIKeyConnection ,
6565 wantErr : false ,
@@ -89,7 +89,7 @@ func TestFastlaneLoginSession(t *testing.T) {
8989 name : "No Apple Developer Connection set for the build" ,
9090 response : & http.Response {
9191 StatusCode : 200 ,
92- Body : ioutil .NopCloser (strings .NewReader ("{}" )),
92+ Body : io .NopCloser (strings .NewReader ("{}" )),
9393 },
9494 want : "" ,
9595 wantErr : false ,
@@ -98,7 +98,7 @@ func TestFastlaneLoginSession(t *testing.T) {
9898 name : "Apple ID-based Apple Developer Connection set for the build" ,
9999 response : & http.Response {
100100 StatusCode : 200 ,
101- Body : ioutil .NopCloser (strings .NewReader (testAppleIDConnectionResponseBody )),
101+ Body : io .NopCloser (strings .NewReader (testAppleIDConnectionResponseBody )),
102102 },
103103 want : testFastlaneSession ,
104104 wantErr : false ,
0 commit comments