@@ -23,7 +23,7 @@ func TestList(t *testing.T) {
23
23
w .Header ().Add ("Content-Type" , "application/json" )
24
24
w .WriteHeader (http .StatusOK )
25
25
26
- fmt .Fprintf (w , AddressGroupListResponse )
26
+ fmt .Fprint (w , AddressGroupListResponse )
27
27
})
28
28
29
29
count := 0
@@ -73,7 +73,7 @@ func TestCreate(t *testing.T) {
73
73
w .Header ().Add ("Content-Type" , "application/json" )
74
74
w .WriteHeader (http .StatusCreated )
75
75
76
- fmt .Fprintf (w , AddressGroupCreateResponse )
76
+ fmt .Fprint (w , AddressGroupCreateResponse )
77
77
})
78
78
79
79
opts := addressgroups.CreateOpts {
@@ -107,7 +107,7 @@ func TestGet(t *testing.T) {
107
107
w .Header ().Add ("Content-Type" , "application/json" )
108
108
w .WriteHeader (http .StatusOK )
109
109
110
- fmt .Fprintf (w , AddressGroupGetResponse )
110
+ fmt .Fprint (w , AddressGroupGetResponse )
111
111
})
112
112
113
113
sr , err := addressgroups .Get (context .TODO (), fake .ServiceClient (fakeServer ), "8722e0e0-9cc9-4490-9660-8c9a5732fbb0" ).Extract ()
@@ -134,7 +134,7 @@ func TestUpdate(t *testing.T) {
134
134
w .Header ().Add ("Content-Type" , "application/json" )
135
135
w .WriteHeader (http .StatusOK )
136
136
137
- fmt .Fprintf (w , AddressGroupUpdateResponse )
137
+ fmt .Fprint (w , AddressGroupUpdateResponse )
138
138
})
139
139
140
140
name := "ADDR_GP_2"
@@ -168,7 +168,7 @@ func TestAddAddresses(t *testing.T) {
168
168
w .Header ().Add ("Content-Type" , "application/json" )
169
169
w .WriteHeader (http .StatusOK )
170
170
171
- fmt .Fprintf (w , AddressGroupAddAddressesResponse )
171
+ fmt .Fprint (w , AddressGroupAddAddressesResponse )
172
172
})
173
173
174
174
opts := addressgroups.UpdateAddressesOpts {
@@ -197,7 +197,7 @@ func TestRemoveAddresses(t *testing.T) {
197
197
w .Header ().Add ("Content-Type" , "application/json" )
198
198
w .WriteHeader (http .StatusOK )
199
199
200
- fmt .Fprintf (w , AddressGroupRemoveAddressesResponse )
200
+ fmt .Fprint (w , AddressGroupRemoveAddressesResponse )
201
201
})
202
202
203
203
opts := addressgroups.UpdateAddressesOpts {
0 commit comments