зеркало из https://github.com/microsoft/docker.git
Add diff command with emtpy string testcase
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
Родитель
37771c122b
Коммит
9d84d4c2cc
|
@ -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")
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче