Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Last active August 29, 2015 14:26
Show Gist options
  • Save olleolleolle/084729479a63a37c8438 to your computer and use it in GitHub Desktop.
Save olleolleolle/084729479a63a37c8438 to your computer and use it in GitHub Desktop.
func (s *DockerSuite) TestInfoApiPre121(c *check.C) {
status, body, err := sockRequest("GET", "/v1.20/info", nil)
c.Assert(err, check.IsNil)
c.Assert(status, check.Equals, http.StatusOK)
if !strings.Contains(string(body), "OperatingSystem") {
c.Errorf("couldn't find string OperatingSystem in output")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment