Merge pull request #14626 from kunalkushwaha/add-network-cli-help
"docker network" missing from docker --help Upstream-commit: a796ac53185c2827017843fec21e02aba88f6ace Component: engine
This commit is contained in:
@@ -202,9 +202,10 @@ func (s *DockerSuite) TestHelpTextVerify(c *check.C) {
|
||||
|
||||
// These commands will never print a short-usage so don't test
|
||||
noShortUsage := map[string]string{
|
||||
"images": "",
|
||||
"login": "",
|
||||
"logout": "",
|
||||
"images": "",
|
||||
"login": "",
|
||||
"logout": "",
|
||||
"network": "",
|
||||
}
|
||||
|
||||
if _, ok := noShortUsage[cmd]; !ok {
|
||||
@@ -257,11 +258,14 @@ func (s *DockerSuite) TestHelpTextVerify(c *check.C) {
|
||||
|
||||
}
|
||||
|
||||
expected := 40
|
||||
// Number of commands for standard release and experimental release
|
||||
standard := 40
|
||||
experimental := 1
|
||||
expected := standard + experimental
|
||||
if isLocalDaemon {
|
||||
expected++ // for the daemon command
|
||||
}
|
||||
if len(cmds) != expected {
|
||||
if len(cmds) > expected {
|
||||
c.Fatalf("Wrong # of cmds(%d), it should be: %d\nThe list:\n%q",
|
||||
len(cmds), expected, cmds)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user