@@ -10,7 +10,6 @@ import (
1010 "strings"
1111 "testing"
1212
13- "github.com/docker/docker/api/types"
1413 "github.com/docker/docker/api/types/filters"
1514 "github.com/docker/docker/api/types/swarm"
1615 "github.com/docker/docker/errdefs"
@@ -23,7 +22,7 @@ func TestConfigListUnsupported(t *testing.T) {
2322 version : "1.29" ,
2423 client : & http.Client {},
2524 }
26- _ , err := client .ConfigList (context .Background (), types .ConfigListOptions {})
25+ _ , err := client .ConfigList (context .Background (), swarm .ConfigListOptions {})
2726 assert .Check (t , is .Error (err , `"config list" requires API version 1.30, but the Docker daemon API version is 1.29` ))
2827}
2928
@@ -33,25 +32,25 @@ func TestConfigListError(t *testing.T) {
3332 client : newMockClient (errorMock (http .StatusInternalServerError , "Server error" )),
3433 }
3534
36- _ , err := client .ConfigList (context .Background (), types .ConfigListOptions {})
35+ _ , err := client .ConfigList (context .Background (), swarm .ConfigListOptions {})
3736 assert .Check (t , is .ErrorType (err , errdefs .IsSystem ))
3837}
3938
4039func TestConfigList (t * testing.T ) {
4140 expectedURL := "/v1.30/configs"
4241
4342 listCases := []struct {
44- options types .ConfigListOptions
43+ options swarm .ConfigListOptions
4544 expectedQueryParams map [string ]string
4645 }{
4746 {
48- options : types .ConfigListOptions {},
47+ options : swarm .ConfigListOptions {},
4948 expectedQueryParams : map [string ]string {
5049 "filters" : "" ,
5150 },
5251 },
5352 {
54- options : types .ConfigListOptions {
53+ options : swarm .ConfigListOptions {
5554 Filters : filters .NewArgs (
5655 filters .Arg ("label" , "label1" ),
5756 filters .Arg ("label" , "label2" ),
0 commit comments