-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
adding boto_elb config parameters to return #52774
adding boto_elb config parameters to return #52774
Conversation
@anitakrueger, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ryan-lane and @tkwilliams to be potential reviewers. |
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.
@anitakrueger Thanks for your contribution. Please include some unit or integration tests for this change.
Honestly, I don't know how :( |
@dwoz Who can help with tests on this one you think? I honestly don't how to write a whole new test function for adding returning 3 more parameters. |
@dwoz is there an update on this please? |
@anitakrueger for this particular case it looks like it's just a matter of not returning the expected data, so I think a simple test ensuring that it is would be fine. I would suggest a couple of simple unit tests that mock
There are a number of unit tests that could be a good example, if you need some help hunting them down I can point you in the right direction 👍 |
@waynew I was in the Salt meeting about testing earlier and don't understand your response. This is adding 3 lines of code that should have been there in the first place and you are asking for a whole new test function. Frankly, I still don't know how to provide it and it will stop me from contributing any further. What benefit will another test function have for this module? Yes, it will provide one more code coverage function. But will slow the test suite down. |
Hey @anitakrueger thanks for the contribution - I've added the Needs Testcase label - if you're not able to add tests, no problem! We'll work on adding tests to this as soon as we can. In the meantime if there are other community members who are willing & able to put together those tests we could get this merged faster. |
I will look into adding tests for this change sometime in the next week. |
Thank you so much @dwoz I vow, I'll definitely spend time understanding test cases and running unit tests by myself next time I touch anything saltstack based. I can't do atm though :( |
I wrote a quick test to ensure the expected keys are being returned by
|
@anitakrueger thanks so much for your patience with this. Are you up to adding Gareth's test to "tests/unit/states/test_boto_elb.py"? If not, we can create a new PR with your changes and his test then close this one - but I prefer keeping history all in one place if that works for you! |
@anitakrueger are you able to rebase this against the master branch? |
@anitakrueger are you still wanting to merge this and still working on it? can you rebase against |
@sagetherage Yes, it would be good to merge this. |
@sagetherage @waynew Not sure what happened here. I did add the test function. Why was this closed please? |
@anitakrueger please rebase this against the |
I'm not having much luck getting this rebased. I fetched the upstream and checked out master. Then checked out my branch and ran
No idea what to do honestly. |
@anitakrueger Looks like a normal rebase will try to get your changes and everything else. Doing a
Then you should be able to do If you still have any problems, please let me know! |
881d3f4
to
4691a5e
Compare
Paramters added to return for hosted_zone_name, hosted_zone_name_id and vpc_id.
4691a5e
to
52baefe
Compare
re-rebased this again, looks like pre-commit is passing now. Hopefully that should get this across the line |
Looking better - test failures look unrelated/flaky. Triggered a re-run. |
Hi! I'm your friendly PR bot!You might be wondering what I'm doing commenting here on your PR. Yes, as a matter of fact, I am... I'm just here to help us improve the documentation. I can't respond to Okay... so what do you do? I detect modules that are missing docstrings or "CLI Example" on existing docstrings! So what does that have to do with my PR? I noticed that in this PR there are some files changed that have some of these Okay, what are they? Well, my favorite, is that since you were making changes here I'm hoping that If I can, then what? Well, you can either add them to this PR or add them to another PR. Either way is fine! Well... what if I can't, or don't want to? That's also fine! We appreciate all contributions to the Salt Project. If you Whatever approach you decide to take, just drop a comment here letting us know! Detected Issues (click me)Check Known Missing Docstrings...........................................Failed - hook id: invoke - duration: 1.22s - exit code: 1 Thanks again! |
Thank you both! |
What does this PR do?
This PR adds the following parameters to return for get_elb_config. The functionality is needed to be able to determine the hosted zone id to automatically create ALIAS Route53 records for new classic ELBs.
What issues does this PR fix or reference?
None
Previous Behavior
Cannot get the HostedZoneID that a classic ELB is in even though boto returns the parameter.
New Behavior
boto.get_elb_config
returns the canonical_hosted_zone_name_id so that DNS ALIAS records can be created automatically.Tests written?
No
Commits signed with GPG?
Yes
I understand this will be merged into develop if approved. I'd be grateful if it could be rebased into 2019.2.0 as well.