|
@@ -1,13 +1,10 @@
|
|
package main
|
|
package main
|
|
|
|
|
|
import (
|
|
import (
|
|
- "encoding/json"
|
|
|
|
"net/http"
|
|
"net/http"
|
|
|
|
|
|
"fmt"
|
|
"fmt"
|
|
|
|
|
|
- "github.com/docker/docker/api/types"
|
|
|
|
-
|
|
|
|
"github.com/docker/docker/client"
|
|
"github.com/docker/docker/client"
|
|
"github.com/docker/docker/integration-cli/checker"
|
|
"github.com/docker/docker/integration-cli/checker"
|
|
"github.com/docker/docker/integration-cli/request"
|
|
"github.com/docker/docker/integration-cli/request"
|
|
@@ -48,25 +45,6 @@ func (s *DockerSuite) TestInfoAPI(c *check.C) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-// TestInfoAPIRuncCommit tests that dockerd is able to obtain RunC version
|
|
|
|
-// information, and that the version matches the expected version
|
|
|
|
-func (s *DockerSuite) TestInfoAPIRuncCommit(c *check.C) {
|
|
|
|
- testRequires(c, DaemonIsLinux) // Windows does not have RunC version information
|
|
|
|
-
|
|
|
|
- res, body, err := request.Get("/v1.30/info")
|
|
|
|
- c.Assert(res.StatusCode, checker.Equals, http.StatusOK)
|
|
|
|
- c.Assert(err, checker.IsNil)
|
|
|
|
-
|
|
|
|
- b, err := request.ReadBody(body)
|
|
|
|
- c.Assert(err, checker.IsNil)
|
|
|
|
-
|
|
|
|
- var i types.Info
|
|
|
|
-
|
|
|
|
- c.Assert(json.Unmarshal(b, &i), checker.IsNil)
|
|
|
|
- c.Assert(i.RuncCommit.ID, checker.Not(checker.Equals), "N/A")
|
|
|
|
- c.Assert(i.RuncCommit.ID, checker.Equals, i.RuncCommit.Expected)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
func (s *DockerSuite) TestInfoAPIVersioned(c *check.C) {
|
|
func (s *DockerSuite) TestInfoAPIVersioned(c *check.C) {
|
|
testRequires(c, DaemonIsLinux) // Windows only supports 1.25 or later
|
|
testRequires(c, DaemonIsLinux) // Windows only supports 1.25 or later
|
|
|
|
|