]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
pytests/kresd.conf: make sure localhost hint is present
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 15 Jan 2019 17:43:06 +0000 (18:43 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 23 Jan 2019 13:58:47 +0000 (14:58 +0100)
tests/pytests/kresd.py
tests/pytests/templates/kresd.conf.j2

index 43891ad4048160b910cc0a6440f547eb9300496e..607809e158f39984ac8a9c7d8eebb014662116c2 100644 (file)
@@ -161,7 +161,7 @@ class Kresd(ContextDecorator):
                     continue
             finally:
                 sock.close()
-        raise RuntimeError("Kresd didn't start in time")
+        raise RuntimeError("Kresd didn't start in time {}".format(dest))
 
     def socket_dest(self, family, tls=False):
         port = self.tls_port if tls else self.port
index de52e7b0ebb2af3e5d12387ed903dbc903ceb8f2..141f4389a66d47372a81b9601288a5abb146ca52 100644 (file)
@@ -1,6 +1,6 @@
 modules = {
-    'policy',
-    'hints > iterate',
+    'hints > policy',
+    'policy > iterate',
 }
 
 verbose({{ 'true' if kresd.verbose else 'false' }})
@@ -22,6 +22,7 @@ net.ipv6=true
 net.tls("{{ kresd.tls_cert_path }}", "{{ kresd.tls_key_path }}")
 {% endif %}
 
+hints['localhost.'] = '127.0.0.1'
 {% for name, ip in kresd.hints.items() %}
 hints['{{ name }}'] = '{{ ip }}'
 {% endfor %}