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
[LIBCLOUD-944] Add support for private IP addresses in GCE instance creation #1107
Conversation
Coverage decreased (-0.004%) to 88.966% when pulling 27d79ea on vongazman:LIBCLOUD-944_private_ip into f1bff48 on apache:trunk. |
Thank you @vongazman for your contribution. Great first-time GitHub contribution! The changes make perfect sense! 👍 However, this pull requests lacks tests. I realize that the existing |
Codecov Report
@@ Coverage Diff @@
## trunk #1107 +/- ##
==========================================
+ Coverage 85.48% 85.48% +<.01%
==========================================
Files 348 348
Lines 66443 66456 +13
Branches 5914 5916 +2
==========================================
+ Hits 56796 56809 +13
Misses 7239 7239
Partials 2408 2408
Continue to review full report at Codecov.
|
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.
Great, thank you for adding tests! There's one issue left with DELETE. Thanks.
libcloud/test/compute/test_gce.py
Outdated
headers): | ||
if method == 'DELETE': | ||
body = self.fixtures.load( | ||
'regions_us-central1_addresses_testaddress_delete.json') |
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.
It looks like you had started to test the DELETE path but ended up not to? Either add the file or remove the reference to it.
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, I removed the reference to it.
Thanks @vongazman! ✨ I've included this in trunk. (Reworked the commits to remove the intermediate ones that would have made bisecting difficult, and signed them off as part of the standard procedure.) |
Add support for private IP addresses in GCE instance creation
Description
GCE driver doesn't currently allow private IPs to be specified when creating instances. Updated gce.py driver to allow the optional parameter internal_ip which can be used when creating GCE instances.
Status
Checklist (tick everything that applies)