Repository navigation
Fix DNS driver API inconsistencies #2066
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
Closed
Closed
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
b3144a4
Drop Zerigo DNS support
058ba11
Deprecate DNSimple DNS driver
3e18f9c
Deprecate RcodeZero DNS driver
312cfb7
test: Add optional request history to MockHttp
d33c6c2
dns: buddyns: Add API request checking
48424a3
dns: cloudflare: Add API request checking
78072a1
dns: digitalocean: Add API request checking
3cde093
dns: dnspod: Add API request checking
6c11347
dns: durabledns: Add API request checking
2fc6656
dns: gandi: Add API request checking
ff48923
dns: godaddy: Add API request checking
73652f7
dns: google: Add API request checking
4f093b7
dns: liquidweb: Implement test_create_record_success()
db1c3d1
dns: liquidweb: Add API request checking
702e6a6
dns: luadns: Add API request checking
5effe36
dns: nsone: Fix test_get_record_success()
d09b1f1
dns: nsone: Fix test_list_records_success()
c7ffa92
dns: Add hostname helpers to Zone class
71efb13
dns: Add {to,from}_default_id() to DNSDriver class
2c220f6
dns: nsone: Use locally-relevant zone and record IDs
0f15ae6
dns: onapp: Add API request checking
b82e0c3
dns: pointdns: Add API request checking
e8c2463
dns: rackspace: Add API request checking
f6c53da
dns: route53: Fix test_update_record() record type
2b95888
dns: route53: Add API request checking
1728b9f
dns: worldwidedns: Fix create_zone() reseller suppport
5ac1214
dns: worldwidedns: Add API request checking
9256f30
dns: worldwidedns: Fix update_zone() reseller support
108b37b
dns: worldwidedns: Leverage "slot" ID from Record.id
02b1fe7
dns: zonomi: Add API request checking
0bab07d
dns: zonomi: Drop redundant api_key in list_zones()
5240380
dns: nsone: Add test_get_zone_success()
1649242
dns: nsone: Add API request checking
77c91a3
dns: linode: Add API request checking
19ff080
dns: vultr: Add API request checking
2caf64e
dns: powerdns: Add API request checking
e48e8b5
dns: nfsn: Add API request checking
6cda20d
dns: gandi_live: Add API request checking
875b214
dns: zonomi: Switch to default local ID format
4baa0fc
dns: pointdns: Make records agree with zone
1e6bb53
dns: luadns: Make records agree with zone
a9ea6f5
dns: Add common code for domain/host naming
10079ae
dns: google: Leverage {to,from}_default_id()
95dd1a6
dns: google: Drop FQDN from inputs
6ae2022
dns: gandi: Leverage {to,from}_default_id()
7807178
dns: route53: Leverage common code
b37b97a
dns: gandi_live: Leverage {to,from}_default_id()
34d96fa
dns: rackspace: Leverage common host naming code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 current implementation uses re.match() to parse record IDs. Since re.match() only requires a match at the beginning of the string, malformed IDs can be partially accepted.
For example, "A:" matches the "A" prefix because the optional name group cannot match an empty string. As a result, the trailing colon is silently ignored instead of rejecting the invalid ID.
Would it make sense to use re.fullmatch() instead, so the entire record ID must match the expected format?
A regression test for malformed IDs such as "A:" would also be useful.