-
-
Notifications
You must be signed in to change notification settings - Fork 168
Addition of function to calculate rally point instance in AWS Auto Scaling Groups #33
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
Addition of function to calculate rally point instance in AWS Auto Scaling Groups #33
Conversation
…with running under Python 2.
… allows you to calculate a single 'rally point' instance that is part of an auto-scaling group, useful for executing bootstrapping commands once per ASG.
I believe I should split out the unit tests here for the private vs public DNS name usage, but wanted to get this up in the meantime for a review other than that. |
… set, and split out public vs private hostname call scenarios to be consistent with other tests.
I split the unit tests out and also refactored the new tests such that the setup code for each set isn't duplicated. The latter isn't the same way other things are done, so if you'd like me to back that out and just have the code in each test let me know. Thanks! |
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.
Thanks for the PR!
…ncoding environment variables, which resolves some issues when running tests, as well as removing some un-necessary 'sudo' calls.
…l basic dependencies' section of the test Dockerfiles per comments from maintainer.
…oint' function to ensure that the function fails when the ASG does not contain the requisite number of instances after the given retry / wait period has elapsed.
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.
Very close now. Just a couple final questions.
…ments / details around the use of the locale environment variables.
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.
Code changes LGTM, thanks! I'll kick off tests now.
Tests passed! Merging now. |
Fixes #32 as well as updating the Dockerfiles used for testing to use Python 3 (I could not get them to run using the older Python version).