DockerCLI/cli/command/service
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
..
progress Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
testdata formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
client_test.go File is not `goimports`-ed (goimports) 2020-01-06 13:16:43 +01:00
cmd.go Error out on orchestrator command that don't support k8s yet 2017-12-26 11:46:59 +01:00
create.go add support for config credentialspecs to compose 2019-04-12 11:17:34 -05:00
create_test.go Add CredentialSpec tests 2019-04-12 11:17:34 -05:00
formatter.go Add systctl support for services 2019-03-19 13:33:32 +01:00
formatter_test.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
generic_resource_opts.go Added support for generic resource update 2017-11-28 18:03:10 +01:00
generic_resource_opts_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
helpers.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
inspect.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
inspect_test.go [#117] remove blank line and fix order 2019-03-18 21:37:22 -04:00
list.go Add support for maximum replicas per node without stack 2019-02-22 09:53:21 +02:00
list_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
logs.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
opts.go Switch to google/shlex 2019-04-13 17:51:15 +02:00
opts_test.go unchecked errors 2020-01-06 13:16:34 +01:00
parse.go Add CredentialSpec tests 2019-04-12 11:17:34 -05:00
ps.go Migrate to non-deprecated functions of `api/types/filters` 2018-07-27 15:37:43 +02:00
ps_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
remove.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
rollback.go Update code for upstream cobra 2017-10-25 14:49:26 -04:00
rollback_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
scale.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
trust.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
update.go Add CredentialSpec tests 2019-04-12 11:17:34 -05:00
update_test.go Add "host-gateway" to tests for extra_hosts / --add-host 2020-04-15 09:53:37 +02:00