mirror of
https://github.com/moby/moby.git
synced 2025-07-29 07:21:35 +03:00
Generate ContainerWait response from the swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
@ -957,9 +957,9 @@ func (s *DockerSuite) TestContainerAPIWait(c *check.C) {
|
||||
c.Assert(status, checker.Equals, http.StatusOK)
|
||||
c.Assert(waitInspect(name, "{{ .State.Running }}", "false", 60*time.Second), checker.IsNil)
|
||||
|
||||
var waitres types.ContainerWaitResponse
|
||||
var waitres containertypes.ContainerWaitOKBody
|
||||
c.Assert(json.Unmarshal(body, &waitres), checker.IsNil)
|
||||
c.Assert(waitres.StatusCode, checker.Equals, 0)
|
||||
c.Assert(waitres.StatusCode, checker.Equals, int64(0))
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestContainerAPICopyNotExistsAnyMore(c *check.C) {
|
||||
|
Reference in New Issue
Block a user