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

DNSIMPLE: Priority typo fix #604

Closed
wants to merge 1 commit into
base: trunk
from
Jump to file or symbol
Failed to load files and symbols.
+6 −6
Diff settings

Always

Just for now

Fixes typo. prio should be priority

  • Loading branch information...
phumpal committed Oct 15, 2015
commit d55559f0d323d88ee02316617fde49ec79ad7eb4
@@ -289,5 +289,5 @@ def _to_record(self, data, zone_id=None, zone=None):
'created_at': record.get('created_at'),
'updated_at': record.get('updated_at'),
'domain_id': record.get('domain_id'),
'prio': record.get('prio')}
'priority': record.get('prio')}
return Record(id, name, type, data, zone, self, extra=extra)
@@ -94,23 +94,23 @@ def test_list_records_success(self):
self.assertEqual(record1.type, RecordType.A)
self.assertEqual(record1.data, '1.2.3.4')
self.assertHasKeys(record1.extra, ['ttl', 'created_at', 'updated_at',
'domain_id', 'prio'])
'domain_id', 'priority'])
record2 = records[1]
self.assertEqual(record2.id, '2')
self.assertEqual(record2.name, 'www')
self.assertEqual(record2.type, RecordType.CNAME)
self.assertEqual(record2.data, 'example.com')
self.assertHasKeys(record2.extra, ['ttl', 'created_at', 'updated_at',
'domain_id', 'prio'])
'domain_id', 'priority'])
record3 = records[2]
self.assertEqual(record3.id, '32')
self.assertEqual(record3.name, '')
self.assertEqual(record3.type, RecordType.MX)
self.assertEqual(record3.data, 'mail.example.com')
self.assertHasKeys(record3.extra, ['ttl', 'created_at', 'updated_at',
'domain_id', 'prio'])
'domain_id', 'priority'])
def test_get_zone_success(self):
zone1 = self.driver.get_zone(zone_id='1')
@@ -133,7 +133,7 @@ def test_get_record_success(self):
self.assertEqual(record.type, RecordType.CNAME)
self.assertEqual(record.data, 'example.com')
self.assertHasKeys(record.extra, ['ttl', 'created_at', 'updated_at',
'domain_id', 'prio'])
'domain_id', 'priority'])
def test_create_zone_success(self):
DNSimpleDNSMockHttp.type = 'CREATE'
@@ -160,7 +160,7 @@ def test_create_record_success(self):
self.assertEqual(record.type, RecordType.MX)
self.assertEqual(record.data, 'mail.example.com')
self.assertHasKeys(record.extra, ['ttl', 'created_at', 'updated_at',
'domain_id', 'prio'])
'domain_id', 'priority'])
def test_update_record_success(self):
record = self.driver.get_record(zone_id='1',
ProTip! Use n and p to navigate between commits in a pull request.