@@ -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 TestSecretListUnsupported(t *testing.T) {
2322 version : "1.24" ,
2423 client : & http.Client {},
2524 }
26- _ , err := client .SecretList (context .Background (), types .SecretListOptions {})
25+ _ , err := client .SecretList (context .Background (), swarm .SecretListOptions {})
2726 assert .Check (t , is .Error (err , `"secret list" requires API version 1.25, but the Docker daemon API version is 1.24` ))
2827}
2928
@@ -33,25 +32,25 @@ func TestSecretListError(t *testing.T) {
3332 client : newMockClient (errorMock (http .StatusInternalServerError , "Server error" )),
3433 }
3534
36- _ , err := client .SecretList (context .Background (), types .SecretListOptions {})
35+ _ , err := client .SecretList (context .Background (), swarm .SecretListOptions {})
3736 assert .Check (t , is .ErrorType (err , errdefs .IsSystem ))
3837}
3938
4039func TestSecretList (t * testing.T ) {
4140 const expectedURL = "/v1.25/secrets"
4241
4342 listCases := []struct {
44- options types .SecretListOptions
43+ options swarm .SecretListOptions
4544 expectedQueryParams map [string ]string
4645 }{
4746 {
48- options : types .SecretListOptions {},
47+ options : swarm .SecretListOptions {},
4948 expectedQueryParams : map [string ]string {
5049 "filters" : "" ,
5150 },
5251 },
5352 {
54- options : types .SecretListOptions {
53+ options : swarm .SecretListOptions {
5554 Filters : filters .NewArgs (
5655 filters .Arg ("label" , "label1" ),
5756 filters .Arg ("label" , "label2" ),
0 commit comments