moby--moby/integration
Sebastiaan van Stijn f845b98ca6
integration: update getExternalAddress to prefer IPv4
Rootlesskit doesn't currently handle IPv6 addresses, causing TestNetworkLoopbackNat
and TestNetworkNat to fail;

    Error starting userland proxy:
    error while calling PortManager.AddPort(): listen tcp: address :::8080: too many colons in address

This patch:

- Updates `getExternalAddress()` to pick IPv4 address if both IPv6 and IPv4 are found
- Update TestNetworkNat to net.JoinHostPort(), so that square brackets are used for
  IPv6 addresses (e.g. `[::]:8080`)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-03-22 11:51:07 +01:00
..
build TestBuildUserNamespaceValidateCapabilitiesAreV2: verify build completed 2021-02-15 16:08:40 +01:00
config integration/config: add check for removing non-existing config 2020-04-14 18:31:38 +02:00
container integration: update getExternalAddress to prefer IPv4 2021-03-22 11:51:07 +01:00
distribution bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image Windows: Enable more integration tests 2020-09-20 22:09:27 +03:00
internal Replace service "Capabilities" w/ add/drop API 2020-07-27 10:09:42 -07:00
network Update TestDaemonRestartWithLiveRestore: fix docker0 subnet missmatch 2021-02-05 18:55:21 +01:00
plugin Add shim config for custom runtimes for plugins 2021-01-14 19:28:28 +00:00
secret integration/secret: add check for empty list not producing an error 2020-04-14 18:31:36 +02:00
service Replace service "Capabilities" w/ add/drop API 2020-07-27 10:09:42 -07:00
session bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
system test-integration: support more rootless tests 2020-03-16 17:37:38 +09:00
testdata/https integration/plugin/authz: port tests from integration-cli 2017-10-02 14:20:59 +01:00
volume Windows: Enable more integration tests 2020-09-20 22:09:27 +03:00
doc.go Add canonical import comment 2018-02-05 16:51:57 -05:00