-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixed some issues with expose, port mapping, and environment variables #476
Conversation
- Port mapping now works for reserved ports as well as dynamic ports - Environment variables were being set twice in two different ways; now they are only set once - Comprehensive tests for exposed ports, forwarded ports, and environment variables - Cleaned up / DRYed up a lot of test code
containerPortInt := port.Value | ||
|
||
// If the user has mapped a port using port_map we'll change it here | ||
if len(driverConfig.PortMap) == 1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it makes sense to do > 0, and choose the first block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first block is always 0. If we're worried about multiple port_map entries we should normalize this instead.
The test appears to be failing on docker client detection. I'm not sure how this is related to this change, though. |
Fixed some issues with expose, port mapping, and environment variables
Fixes #507 |
* modify `TestRaft_RemoveFollower` to check removed node state * add test to verify that a removed node is not able to vote * do not transition to `Candidate` state if not part of stable configuration * add some comments to the tests * do not return if not transitioning state * add wait loop to test * remove test related to removed node voting * check `inConfig` instead of `hasVote` * updating warn log message to be more accurate
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
[]map[string]int
tomap[string]int