55 "net/http"
66 "path/filepath"
77
8+ volumetypes "github.com/docker/docker/api/server/types/volume"
89 "github.com/docker/docker/api/types"
910 "github.com/docker/docker/pkg/integration/checker"
1011 "github.com/go-check/check"
@@ -18,7 +19,7 @@ func (s *DockerSuite) TestVolumesAPIList(c *check.C) {
1819 c .Assert (err , checker .IsNil )
1920 c .Assert (status , checker .Equals , http .StatusOK )
2021
21- var volumes types. VolumesListResponse
22+ var volumes volumetypes. VolumesListOKBody
2223 c .Assert (json .Unmarshal (b , & volumes ), checker .IsNil )
2324
2425 c .Assert (len (volumes .Volumes ), checker .Equals , 1 , check .Commentf ("\n %v" , volumes .Volumes ))
@@ -47,7 +48,7 @@ func (s *DockerSuite) TestVolumesAPIRemove(c *check.C) {
4748 c .Assert (err , checker .IsNil )
4849 c .Assert (status , checker .Equals , http .StatusOK )
4950
50- var volumes types. VolumesListResponse
51+ var volumes volumetypes. VolumesListOKBody
5152 c .Assert (json .Unmarshal (b , & volumes ), checker .IsNil )
5253 c .Assert (len (volumes .Volumes ), checker .Equals , 1 , check .Commentf ("\n %v" , volumes .Volumes ))
5354
@@ -75,7 +76,7 @@ func (s *DockerSuite) TestVolumesAPIInspect(c *check.C) {
7576 c .Assert (err , checker .IsNil )
7677 c .Assert (status , checker .Equals , http .StatusOK , check .Commentf (string (b )))
7778
78- var volumes types. VolumesListResponse
79+ var volumes volumetypes. VolumesListOKBody
7980 c .Assert (json .Unmarshal (b , & volumes ), checker .IsNil )
8081 c .Assert (len (volumes .Volumes ), checker .Equals , 1 , check .Commentf ("\n %v" , volumes .Volumes ))
8182
0 commit comments