mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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:
parent
2af96d1c0b
commit
7e9838042d
@ -738,7 +738,7 @@ class test_dns(Declarative):
|
|||||||
|
|
||||||
dict(
|
dict(
|
||||||
desc='Add LOC record to zone %r using dnsrecord_add' % (zone1),
|
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={
|
expected={
|
||||||
'value': u'@',
|
'value': u'@',
|
||||||
'summary': None,
|
'summary': None,
|
||||||
@ -748,7 +748,7 @@ class test_dns(Declarative):
|
|||||||
'idnsname': [u'@'],
|
'idnsname': [u'@'],
|
||||||
'mxrecord': [u"0 %s" % zone1_ns],
|
'mxrecord': [u"0 %s" % zone1_ns],
|
||||||
'nsrecord': [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'],
|
'idnszoneactive': [u'TRUE'],
|
||||||
'nsrecord': [zone1_ns],
|
'nsrecord': [zone1_ns],
|
||||||
'mxrecord': [u'0 ns1.dnszone.test.'],
|
'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],
|
'idnssoamname': [zone1_ns],
|
||||||
'idnssoarname': [zone1_rname],
|
'idnssoarname': [zone1_rname],
|
||||||
'idnssoaserial': [fuzzy_digits],
|
'idnssoaserial': [fuzzy_digits],
|
||||||
@ -1226,7 +1226,7 @@ class test_dns(Declarative):
|
|||||||
'idnszoneactive': [u'TRUE'],
|
'idnszoneactive': [u'TRUE'],
|
||||||
'nsrecord': [zone1_ns],
|
'nsrecord': [zone1_ns],
|
||||||
'mxrecord': [u'0 ns1.dnszone.test.'],
|
'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],
|
'idnssoamname': [zone1_ns],
|
||||||
'idnssoarname': [zone1_rname],
|
'idnssoarname': [zone1_rname],
|
||||||
'idnssoaserial': [fuzzy_digits],
|
'idnssoaserial': [fuzzy_digits],
|
||||||
@ -1252,7 +1252,7 @@ class test_dns(Declarative):
|
|||||||
'idnszoneactive': [u'TRUE'],
|
'idnszoneactive': [u'TRUE'],
|
||||||
'nsrecord': [zone1_ns],
|
'nsrecord': [zone1_ns],
|
||||||
'mxrecord': [u'0 ns1.dnszone.test.'],
|
'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],
|
'idnssoamname': [zone1_ns],
|
||||||
'idnssoarname': [zone1_rname],
|
'idnssoarname': [zone1_rname],
|
||||||
'idnssoaserial': [u'4294967295'],
|
'idnssoaserial': [u'4294967295'],
|
||||||
|
Loading…
Reference in New Issue
Block a user