pytests/kresd.conf: make sure localhost hint is present

parent 708ae1dc
......@@ -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
......
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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment