Skip to content

TestParseWithMacAddress: check endpoint-scoped MacAddress field#4646

Merged
thaJeztah merged 2 commits intodocker:masterfrom
akerouanton:followup-macaddress
Nov 8, 2023
Merged

TestParseWithMacAddress: check endpoint-scoped MacAddress field#4646
thaJeztah merged 2 commits intodocker:masterfrom
akerouanton:followup-macaddress

Conversation

@akerouanton
Copy link
Copy Markdown
Member

@akerouanton akerouanton commented Nov 8, 2023

This is a follow-up of #4419. That PR leveraged the fact that EndpointSettings.MacAddress is already available, although not used by the CreateNetwork endpoint.

TestParseWithMacAddress was testing whether the container-wide MacAddress field is set, and we still need to test that to ensure backward compatibility. But we now also need to test whether the endpoint-specific MacAddress is set.

Next commit will need this change to test whether the endpoint-specific
MacAddress is correctly set.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This is a follow-up of docker#4419. That PR
leveraged the fact that EndpointSettings.MacAddress is already
available, although not used by the CreateNetwork endpoint.

TestParseWithMacAddress was testing whether the container-wide
MacAddress field is set, and we still need to test that to ensure
backward compatibility. But we now also need to test whether the
endpoint-specific MacAddress is set.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 8, 2023

Codecov Report

Merging #4646 (2b1f5a2) into master (00532f9) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4646   +/-   ##
=======================================
  Coverage   59.74%   59.74%           
=======================================
  Files         288      288           
  Lines       24849    24849           
=======================================
  Hits        14846    14846           
  Misses       9117     9117           
  Partials      886      886           

@thaJeztah thaJeztah added this to the 25.0.0 milestone Nov 8, 2023
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 1598586 into docker:master Nov 8, 2023
@akerouanton akerouanton deleted the followup-macaddress branch November 9, 2023 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants