mirror of
https://github.com/docker/cli.git
synced 2026-09-26 09:20:58 -04:00
runconfig: opts: parse: lowercase errors
also fix wrong function comment Signed-off-by: Antonio Murdaca <runcom@redhat.com> Upstream-commit: d266142230bd041c8299eef329cf79a17f8f7478 Component: engine
This commit is contained in:
@@ -2312,13 +2312,10 @@ func (s *DockerSuite) TestRunAllowPortRangeThroughExpose(c *check.C) {
|
||||
}
|
||||
}
|
||||
|
||||
// test docker run expose a invalid port
|
||||
func (s *DockerSuite) TestRunExposePort(c *check.C) {
|
||||
out, _, err := dockerCmdWithError("run", "--expose", "80000", "busybox")
|
||||
//expose a invalid port should with a error out
|
||||
if err == nil || !strings.Contains(out, "Invalid range format for --expose") {
|
||||
c.Fatalf("run --expose a invalid port should with error out")
|
||||
}
|
||||
c.Assert(err, checker.NotNil, check.Commentf("--expose with an invalid port should error out"))
|
||||
c.Assert(out, checker.Contains, "invalid range format for --expose")
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestRunUnknownCommand(c *check.C) {
|
||||
|
||||
Reference in New Issue
Block a user