88 "strings"
99 "testing"
1010
11- v1 "github.com/fastly/go-fastly/v11/fastly/domains /v1"
11+ "github.com/fastly/go-fastly/v11/fastly/domainmanagement /v1/domains "
1212
1313 root "github.com/fastly/cli/pkg/commands/domainv1"
1414 "github.com/fastly/cli/pkg/testutil"
@@ -31,7 +31,7 @@ func TestDomainV1Create(t *testing.T) {
3131 Response : & http.Response {
3232 StatusCode : http .StatusOK ,
3333 Status : http .StatusText (http .StatusOK ),
34- Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (v1 .Data {
34+ Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (domains .Data {
3535 DomainID : did ,
3636 FQDN : fqdn ,
3737 ServiceID : & sid ,
@@ -48,7 +48,7 @@ func TestDomainV1Create(t *testing.T) {
4848 Response : & http.Response {
4949 StatusCode : http .StatusOK ,
5050 Status : http .StatusText (http .StatusOK ),
51- Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (v1 .Data {
51+ Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (domains .Data {
5252 DomainID : did ,
5353 FQDN : fqdn ,
5454 }))),
@@ -89,8 +89,8 @@ func TestDomainV1List(t *testing.T) {
8989 did := "domain-id"
9090 description := "domain description"
9191
92- resp := testutil .GenJSON (v1 .Collection {
93- Data : []v1 .Data {
92+ resp := testutil .GenJSON (domains .Collection {
93+ Data : []domains .Data {
9494 {
9595 DomainID : did ,
9696 FQDN : fqdn ,
@@ -141,7 +141,7 @@ func TestDomainV1Describe(t *testing.T) {
141141 did := "domain-id"
142142 description := "domain description"
143143
144- resp := testutil .GenJSON (v1 .Data {
144+ resp := testutil .GenJSON (domains .Data {
145145 DomainID : did ,
146146 FQDN : fqdn ,
147147 ServiceID : & sid ,
@@ -200,7 +200,7 @@ func TestDomainV1Update(t *testing.T) {
200200 Response : & http.Response {
201201 StatusCode : http .StatusOK ,
202202 Status : http .StatusText (http .StatusOK ),
203- Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (v1 .Data {
203+ Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (domains .Data {
204204 DomainID : did ,
205205 FQDN : fqdn ,
206206 ServiceID : & sid ,
@@ -217,7 +217,7 @@ func TestDomainV1Update(t *testing.T) {
217217 Response : & http.Response {
218218 StatusCode : http .StatusOK ,
219219 Status : http .StatusText (http .StatusOK ),
220- Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (v1 .Data {
220+ Body : io .NopCloser (bytes .NewReader (testutil .GenJSON (domains .Data {
221221 DomainID : did ,
222222 FQDN : fqdn ,
223223 }))),
0 commit comments