api/server/router/system: fix info versioning
Signed-off-by: Antonio Murdaca <runcom@redhat.com> Upstream-commit: 63b5a372037081175ab4ea8f3c7a7bef2195ec0b Component: engine
This commit is contained in:
@ -38,3 +38,15 @@ func (s *DockerSuite) TestInfoAPI(c *check.C) {
|
||||
c.Assert(out, checker.Contains, linePrefix)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestInfoAPIVersioned(c *check.C) {
|
||||
endpoint := "/v1.20/info"
|
||||
|
||||
status, body, err := sockRequest("GET", endpoint, nil)
|
||||
c.Assert(status, checker.Equals, http.StatusOK)
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
out := string(body)
|
||||
c.Assert(out, checker.Contains, "ExecutionDriver")
|
||||
c.Assert(out, checker.Contains, "not supported")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user