From 7e9838042d5833cb2d3d7bec3a86857d5ffc526d Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Mon, 17 Feb 2014 15:31:10 +0100 Subject: [PATCH] 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 --- ipatests/test_xmlrpc/test_dns_plugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py index 744dc4dc1..dd434c2f5 100644 --- a/ipatests/test_xmlrpc/test_dns_plugin.py +++ b/ipatests/test_xmlrpc/test_dns_plugin.py @@ -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'],