Modify DNS tests with LOC records to workaround bug in python-dns.

Older versions of dnspython have problems with implicit values for
size and h/v precision so our tests use explicit value.
See https://github.com/rthalley/dnspython/issues/47

This change is necessary because we want to test if data visible
over DNS protocol matches data visible over LDAP.

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Petr Spacek 2014-02-17 15:31:10 +01:00 committed by Petr Viktorin
parent 2af96d1c0b
commit 7e9838042d

View File

@ -738,7 +738,7 @@ class test_dns(Declarative):
dict(
desc='Add LOC record to zone %r using dnsrecord_add' % (zone1),
command=('dnsrecord_add', [zone1, u'@'], {'locrecord': u"49 11 42.4 N 16 36 29.6 E 227.64" }),
command=('dnsrecord_add', [zone1, u'@'], {'locrecord': u"49 11 42.4 N 16 36 29.6 E 227.64m 10m 10.0m 0.1"}),
expected={
'value': u'@',
'summary': None,
@ -748,7 +748,7 @@ class test_dns(Declarative):
'idnsname': [u'@'],
'mxrecord': [u"0 %s" % zone1_ns],
'nsrecord': [zone1_ns],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64"],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64 10.00 10.00 0.10"],
},
},
),
@ -1193,7 +1193,7 @@ class test_dns(Declarative):
'idnszoneactive': [u'TRUE'],
'nsrecord': [zone1_ns],
'mxrecord': [u'0 ns1.dnszone.test.'],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64"],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64 10.00 10.00 0.10"],
'idnssoamname': [zone1_ns],
'idnssoarname': [zone1_rname],
'idnssoaserial': [fuzzy_digits],
@ -1226,7 +1226,7 @@ class test_dns(Declarative):
'idnszoneactive': [u'TRUE'],
'nsrecord': [zone1_ns],
'mxrecord': [u'0 ns1.dnszone.test.'],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64"],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64 10.00 10.00 0.10"],
'idnssoamname': [zone1_ns],
'idnssoarname': [zone1_rname],
'idnssoaserial': [fuzzy_digits],
@ -1252,7 +1252,7 @@ class test_dns(Declarative):
'idnszoneactive': [u'TRUE'],
'nsrecord': [zone1_ns],
'mxrecord': [u'0 ns1.dnszone.test.'],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64"],
'locrecord': [u"49 11 42.400 N 16 36 29.600 E 227.64 10.00 10.00 0.10"],
'idnssoamname': [zone1_ns],
'idnssoarname': [zone1_rname],
'idnssoaserial': [u'4294967295'],