Skip to content

Commit fd3903c

Browse files
authored
Allow overriding the resolver for the reverse and ldap2 suites (#87)
1 parent 009a58d commit fd3903c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ NAME = mailserver2/mailserver:testing
33
# Maximum time in seconds to wait for a service to become ready
44
WAIT_TIMEOUT = 300
55

6+
# Optional resolver for the suites that run with DISABLE_DNS_RESOLVER=true
7+
# (reverse and ldap2).
8+
# This is here because one of the maintainers has a DNS resolution issue
9+
# and this allows them to work around it. It is inert when not enabled.
10+
# To enable, run tests like this:
11+
#
12+
# make reverse TEST_DNS=9.9.9.9
13+
#
14+
TEST_DNS ?=
15+
DNS_FLAG = $(if $(TEST_DNS),--dns $(TEST_DNS),)
16+
617
all: build-no-cache default reverse ldap ldap2 sieve ecdsa traefik_acmev1 traefik_acmev2 clean
718
no-build: default reverse ldap ldap2 sieve ecdsa traefik_acmev1 traefik_acmev2 clean
819
default: init_default fixtures_default run_default stop_default
@@ -167,6 +178,7 @@ init_ldap2: init_openldap init_redis
167178
docker run \
168179
-d \
169180
--name mailserver_ldap2 \
181+
$(DNS_FLAG) \
170182
--link openldap \
171183
--link redis:redis \
172184
-e DBDRIVER=ldap \
@@ -268,6 +280,7 @@ init_reverse: init_redis init_postgres
268280
docker run \
269281
-d \
270282
--name mailserver_reverse \
283+
$(DNS_FLAG) \
271284
--link postgres:postgres \
272285
--link redis:redis \
273286
-e FQDN=mail.domain.tld \

0 commit comments

Comments
 (0)