Generate VolumesCreateRequest from the swagger spec.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 5c2498fd3c41f4badb1788665886d30772537f73
Component: engine
This commit is contained in:
Daniel Nephin
2016-10-31 11:13:41 -04:00
parent fa3a1f0666
commit d19255532a
11 changed files with 57 additions and 21 deletions
@@ -26,7 +26,7 @@ func (s *DockerSuite) TestVolumesAPIList(c *check.C) {
}
func (s *DockerSuite) TestVolumesAPICreate(c *check.C) {
config := types.VolumeCreateRequest{
config := volumetypes.VolumesCreateBody{
Name: "test",
}
status, b, err := sockRequest("POST", "/volumes/create", config)
@@ -65,7 +65,7 @@ func (s *DockerSuite) TestVolumesAPIRemove(c *check.C) {
}
func (s *DockerSuite) TestVolumesAPIInspect(c *check.C) {
config := types.VolumeCreateRequest{
config := volumetypes.VolumesCreateBody{
Name: "test",
}
status, b, err := sockRequest("POST", "/volumes/create", config)