8000 Add test for non local mac address. by jessfraz · Pull Request #9779 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add test for non local mac address. #9779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2014

Conversation

jessfraz
Copy link
Contributor

This test will pass after docker-archive/libcontainer#310 is merged.
Closes #9771.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle jess@docker.com (github: jfrazelle)

@jessfraz jessfraz force-pushed the 9771-non-local-mac-address-test branch 3 times, most recently from 79ce7cf to 6bae875 Compare December 24, 2014 00:24
@jessfraz
Copy link
Contributor Author

rebased with changes to libcontainer

cmd := exec.Command(dockerBinary, "run", "--mac-address", "00:16:3E:08:00:50", "busybox", "ifconfig")
if out, _, err := runCommandWithOutput(cmd); err != nil {
t.Fatal(out, err)
}
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this actually test that the output contains the MAC specified?

Copy link
Contributor

Choose a reason for hiding this comment

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

It should indeed 8000 .

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
@jessfraz jessfraz force-pushed the 9771-non-local-mac-address-test branch from 6bae875 to 98d5720 Compare December 26, 2014 18:22
@jessfraz
Copy link
Contributor Author

Updated!

@tianon
Copy link
Member
tianon commented Dec 26, 2014

lol that output sure will be heinous in the error case, but it'll have all the important info 👍

@LK4D4
Copy link
Contributor
LK4D4 commented Dec 26, 2014

LGTM

@jessfraz
Copy link
Contributor Author

Lol ya ALL THE INFO \o/

On Friday, December 26, 2014, Tianon Gravi notifications@github.com wrote:

lol that output sure will be heinous in the error case, but it'll have all
the important info [image: 👍]


Reply to this email directly or view it on GitHub
#9779 (comment).

jessfraz pushed a commit that referenced this pull request Dec 27, 2014
@jessfraz jessfraz merged commit b49d3dd into moby:master Dec 27, 2014
@jessfraz jessfraz deleted the 9771-non-local-mac-address-test branch December 30, 2014 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--mac-address doesn't accept a non-local MAC address
3 participants
0