Skip to content
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-1022] Enhance digitalocean dns driver with ttl parameter #1252

Merged

Conversation

kiniou
Copy link
Contributor

@kiniou kiniou commented Nov 10, 2018

Enhance digitalocean dns driver with ttl parameter

Description

DigitalOcean provides a parameter to update dns records with ttl but the current driver's code actually doesn't support it.

For reference:

Status

ready for review

Checklist (tick everything that applies)

  • Code linting (required, can be done after the PR checks)
  • Documentation
  • Tests
  • ICLA (required for bigger changes)

mitch and others added 23 commits October 4, 2018 07:56
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
…ML from snapshots, added integrations test, and a fixture for unit tests
…ses a decorator to list/filter consistency groups
@codecov-io
Copy link

codecov-io commented Nov 10, 2018

Codecov Report

Merging #1252 into trunk will increase coverage by 0.24%.
The diff coverage is 83.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk    #1252      +/-   ##
==========================================
+ Coverage   85.74%   85.98%   +0.24%     
==========================================
  Files         356      359       +3     
  Lines       72369    73809    +1440     
  Branches     6537     6698     +161     
==========================================
+ Hits        62053    63466    +1413     
+ Misses       7715     7666      -49     
- Partials     2601     2677      +76
Impacted Files Coverage Δ
libcloud/compute/types.py 100% <ø> (ø) ⬆️
libcloud/compute/drivers/voxel.py 87.3% <ø> (ø) ⬆️
libcloud/container/drivers/dummy.py 0% <ø> (ø) ⬆️
libcloud/common/cloudstack.py 86.59% <ø> (ø) ⬆️
libcloud/common/digitalocean.py 94.59% <ø> (ø) ⬆️
libcloud/storage/drivers/s3.py 89.08% <ø> (ø) ⬆️
libcloud/compute/deployment.py 97.22% <ø> (ø) ⬆️
libcloud/dns/providers.py 50% <ø> (ø) ⬆️
libcloud/__init__.py 71.42% <ø> (ø) ⬆️
libcloud/common/azure_arm.py 73.01% <ø> (ø) ⬆️
... and 109 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d40806...c2399e4. Read the comment docs.

@kiniou
Copy link
Contributor Author

kiniou commented Nov 10, 2018

Hi 👋

I was not sure if the ttl parameters should go directly in methods signature or in extra arguments.

There seems to be some inconsistence between some drivers (eg. powerdns) and documentation.

Just let me know if i need to do the switch 😉.

mitch added 5 commits November 13, 2018 11:28
…ableSequence and Mapping based on python vesions in libcloud/common/nttcis;

added code blocks for dynamic class creation from xml as opposed to pick and choose properties from xml in common/nttcis; firewall rules are dynamic
Aki Ketolainen and others added 23 commits March 29, 2019 15:56
…_subscription_includes_free_tier_resources
It looks like the build fails on travis because of old setuptools.
Add a workaround for Python 3.7 build failure on Travis
 into update_test_dependencies

Try a workaround for failing py3.7 build.
…_fails_if_your_subscription_includes_free_tier_resources' of https://github.com/aki-k/libcloud into LIBCLOUD-1040_CloudSigma_provider_ex_list_subscriptions_fails_if_your_subscription_includes_free_tier_resources
…ovider_ex_list_subscriptions_fails_if_your_subscription_includes_free_tier_resources

LIBCLOUD-1040_CloudSigma_provider_ex_list_subscriptions_fails_if_your…
…rror

fix comment ProviderError dereived -> derived
@Kami
Copy link
Member

Kami commented May 26, 2019

Re ttl in the extra attribute - it looks like a lot of the existing drivers support TTL attribute for records so I think it would be time to "promote" this attribute from extra to ttl argument in create / update record methods in the next major release.

For backward compatibility reasons we should still support ttl in extra, with ``ttl` having precedence over extra attribute.

@Kami
Copy link
Member

Kami commented May 26, 2019

Sorry for the delay.

I made a small change (ec563f9) and merged changes into trunk. Thanks again for your contribution.

@Kami Kami merged commit 064ad6c into apache:trunk May 26, 2019
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.

None yet