1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #14500 from runcom/add-diff-emtpy-arg-test

Add diff command with emtpy string testcase
This commit is contained in:
Alexander Morozov 2015-07-13 11:30:31 -06:00
commit 0f466c36b9

View file

@ -108,3 +108,10 @@ func (s *DockerSuite) TestDiffEnsureOnlyKmsgAndPtmx(c *check.C) {
}
}
}
// https://github.com/docker/docker/pull/14381#discussion_r33859347
func (s *DockerSuite) TestDiffEmptyArgClientError(c *check.C) {
out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "diff", ""))
c.Assert(err, check.NotNil)
c.Assert(strings.TrimSpace(out), check.Equals, "Container name cannot be empty")
}