DockerCLI/cli/compose
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
..
convert cli/compose/convert: driverObjectConfig - result 1 (error) is always nil (unparam) 2020-01-06 13:16:45 +01:00
interpolation cli: remove unnecessary newlines (whitespace) 2020-01-06 13:16:57 +01:00
loader Add "host-gateway" to tests for extra_hosts / --add-host 2020-04-15 09:53:37 +02:00
schema cli: remove unnecessary newlines (whitespace) 2020-01-06 13:16:57 +01:00
template cli/compose/template: Using the variable on range scope `tc` in function literal (scopelint) 2020-01-06 13:17:00 +01:00
types cli/compose/types/types.go:106:2: structtag: struct field tag `yaml:",inline", json:"-"` not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces (govet) 2020-01-06 13:16:32 +01:00