DockerCLI/cli/command
Sebastiaan van Stijn fd9eedce3c
Add "host-gateway" to tests for extra_hosts / --add-host
67ebcd6dcf added an exception for
the "host-gateway" magic value to the validation rules, but didn't
add thise value to any of the tests.

This patch adds the magic value to tests, to verify the validation
is skipped for this magic value.

Note that validation on the client side is "optional" and mostly
done to provide a more user-friendly error message for regular
values (IP-addresses).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f88ae74135)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-04-15 09:53:37 +02:00
..
builder Fix builder prune -a/--all flag description 2020-02-18 14:33:42 +01:00
bundlefile Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
checkpoint formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
commands Merge pull request #1602 from thaJeztah/hide_experimental_deploy 2019-02-08 13:53:12 -08:00
config File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
container Update flag description for docker rm -v 2020-01-27 15:53:37 +01:00
context cli/command/context: Using the variable on range scope `c` in function literal (scopelint) 2020-01-06 13:16:55 +01:00
engine Remove e-mail from trial flow 2019-01-08 00:35:24 +01:00
formatter cli/command/formatter: Error return value of `ContainerWrite` is not checked (errcheck) 2020-01-06 13:16:51 +01:00
idresolver File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
image Annotate flags that are not supported by Buildkit 2020-01-27 15:57:30 +01:00
inspect Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
manifest Add bash completion for `manifest` command family 2018-08-30 08:54:49 +02:00
network Refactor network parsing, add preliminary support for multiple networks 2019-04-03 16:42:57 +02:00
node File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
plugin cli/command/plugin/list_test.go:61:31: `TestList$1` - `filter` is unused (unparam) 2020-01-06 13:16:37 +01:00
registry cli/command/registry/login_test.go:66:25: unnecessary conversion (unconvert) 2020-01-06 13:16:43 +01:00
secret cli/command/secret: G101: Potential hardcoded credentials (gosec) 2020-01-06 13:16:46 +01:00
service Add "host-gateway" to tests for extra_hosts / --add-host 2020-04-15 09:53:37 +02:00
stack cli/command/stack/kubernetes: Using the variable on range scope `c` in function literal (scopelint) 2020-01-06 13:17:04 +01:00
swarm File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
system cli/command/system/info.go:116:68: prettyPrintClientInfo - result 0 (error) is always nil (unparam) 2020-01-06 13:16:38 +01:00
task File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-24 15:55:50 +02:00
trust cli/command/trust: Using the variable on range scope `keyBytes` in function literal (scopelint) 2020-01-06 13:16:56 +01:00
volume File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
cli.go Dynamically register kubernetes context store endpoint type. 2019-05-24 15:55:50 +02:00
cli_options.go Dynamically register kubernetes context store endpoint type. 2019-05-24 15:55:50 +02:00
cli_options_test.go Unit test for WithContentTrustFromEnv 2019-01-29 11:26:40 +00:00
cli_test.go cli/command: Using the variable on range scope `testcase` in function literal (scopelint) 2020-01-06 13:16:58 +01:00
context.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
defaultcontextstore.go Push check for kubernetes requirement down into the endpoint 2019-05-24 16:50:21 +02:00
defaultcontextstore_test.go Dynamically register kubernetes context store endpoint type. 2019-05-24 15:55:50 +02:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
orchestrator.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
orchestrator_test.go Introduce docker context store 2019-01-04 17:06:51 +01:00
registry.go Simplify ElectAuthServer 2019-03-28 21:08:13 +00:00
registry_test.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
streams.go Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go Merge pull request #2195 from tiborvass/19.03-fix-cp 2020-01-16 22:39:34 +01:00
utils_test.go cp: allow trailing slash in non-existant destination 2019-11-12 17:26:32 +00:00