summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2014-02-17 15:31:10 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-02-18 15:51:11 +0100
commit7e9838042d5833cb2d3d7bec3a86857d5ffc526d (patch)
treea4706be95c7235e21c92071aa81858b7646122cd
parent2af96d1c0bd3b39dd9ab4ab2b35b924eed5c5d69 (diff)
downloadfreeipa.git-7e9838042d5833cb2d3d7bec3a86857d5ffc526d.tar.gz
freeipa.git-7e9838042d5833cb2d3d7bec3a86857d5ffc526d.tar.xz
freeipa.git-7e9838042d5833cb2d3d7bec3a86857d5ffc526d.zip
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>
-rw-r--r--ipatests/test_xmlrpc/test_dns_plugin.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py
index 744dc4dc..dd434c2f 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'],