moby--moby/opts
Sebastiaan van Stijn 346a438da8
opts: TestParseLink(): add test-case for legacy format
The ParseLink() function has special handling for legacy formats;

> This is kept because we can actually get a HostConfig with links
> from an already created container and the format is not `foo:bar`
> but `/foo:/c1/bar`

This patch adds a test-case for this format. While updating, also switching
to use gotest.tools assertions.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-11-01 11:05:19 +01:00
..
address_pools.go Fix libnetwork imports 2021-06-01 21:51:23 +00:00
address_pools_test.go opts: fix empty-lines (revive) 2022-09-28 01:58:51 +02:00
env.go opts: simplify ValidateEnv to use os.LookupEnv 2020-08-14 16:58:30 +02:00
env_test.go opts: simplify ValidateEnv to use os.LookupEnv 2020-08-14 16:58:30 +02:00
hosts.go opts: ParseTCPAddr(): extract parsing logic, consistent errors 2022-05-01 19:53:40 +02:00
hosts_test.go linting: host:port in url should be constructed with net.JoinHostPort 2022-09-04 15:36:53 +02:00
hosts_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
hosts_windows.go opts: unify host-options, and use consts 2020-10-31 16:44:21 +01:00
opts.go
opts_test.go opts: TestParseLink(): add test-case for legacy format 2022-11-01 11:05:19 +01:00
runtime.go
ulimit.go
ulimit_test.go