moby/integration
Rob Murray a580544d82 Don't create endpoint config for MAC addr config migration
In a container-create API request, HostConfig.NetworkMode (the identity
of the "main" network) may be a name, id or short-id.

The configuration for that network, including preferred IP address etc,
may be keyed on network name or id - it need not match the NetworkMode.

So, when migrating the old container-wide MAC address to the new
per-endpoint field - it is not safe to create a new EndpointSettings
entry unless there is no possibility that it will duplicate settings
intended for the same network (because one of the duplicates will be
discarded later, dropping the settings it contains).

This change introduces a new API restriction, if the deprecated container
wide field is used in the new API, and EndpointsConfig is provided for
any network, the NetworkMode and key under which the EndpointsConfig is
store must be the same - no mixing of ids and names.

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-02-29 17:02:19 +00:00
..
build integration/build: improve some asserts, and add asserts for unhandled errs 2024-01-21 13:45:06 +01:00
capabilities api/types: move ContainerLogsOptions to api/types/container 2023-10-12 11:30:12 +02:00
config Don't run tests twice 2023-09-19 11:37:55 +02:00
container api: remove handling of HostConfig on POST /containers/{id}/start (api < v1.24) 2024-02-06 18:44:44 +01:00
daemon api/types: move image options to api/types/image 2024-01-24 00:10:33 +01:00
distribution bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image integration/save: Add tests checking OCI archive output 2024-02-05 11:17:58 +01:00
internal Merge pull request #47062 from robmry/35954-default_ipv6_enabled 2024-01-29 16:31:35 +01:00
network Simplify macvlan/ipvlan integration test structure 2024-02-14 14:09:45 +00:00
networking Don't create endpoint config for MAC addr config migration 2024-02-29 17:02:19 +00:00
plugin tests: add plugin install test w/ digest 2024-02-01 23:00:38 +00:00
secret Wire up tests to support otel tracing 2023-09-07 18:38:22 +00:00
service libnet: remove Endpoint.anonymous 2023-12-20 19:04:37 +01:00
session integration(-cli): remove skips for old daemon versions (<20.10) 2023-12-05 01:03:50 +01:00
system api: update test to reflect reality on Windows 2024-02-06 18:44:43 +01:00
testdata/https Update test certificates 2021-05-18 09:43:21 +02:00
volume volumes: Implement subpath mount 2024-01-19 17:32:10 +01:00
doc.go Add canonical import comment 2018-02-05 16:51:57 -05:00