• Alberto Bertogli's avatar
    test: Use minidns in the Docker tests · dd7cfaeb
    Alberto Bertogli authored
    The integration tests depend on having a DNS server that resolves
    "localhost", which is unfortunate but currently unavoidable given
    glibc's limitations ($HOSTALIASES only works on DNS-level aliases, and
    does not do lookups in /etc/hosts).
    
    Even under docker, this makes the tests depend on the DNS server, and
    whether it resolves localhost or not.
    
    In order to make the docker tests more hermetic and isolated from the
    environment, this patch introduces a docker entrypoint that, within the
    container, will launch minidns and override /etc/resolv.conf to use it.
    
    This guarantees that the tests will be able to resolve localhost, and
    also avoid accidental reliance on external DNS zones.
    dd7cfaeb
Name
Last commit
Last update
cmd Loading commit data...
docs Loading commit data...
etc Loading commit data...
internal Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
UPGRADING.md Loading commit data...
chasquid.go Loading commit data...
coverage_test.go Loading commit data...
dnsoverride.go Loading commit data...