From 6ca56917923fe9ac2b582ae2b7afc7d7874fb8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 1 Oct 2019 17:00:50 +0200 Subject: [PATCH] Allow configuring proxy65 port in tests --- test/ejabberd_SUITE_data/ejabberd.ldap.yml | 3 ++- test/ejabberd_SUITE_data/ejabberd.mnesia.yml | 3 ++- test/ejabberd_SUITE_data/ejabberd.mysql.yml | 3 ++- test/ejabberd_SUITE_data/ejabberd.pgsql.yml | 3 ++- test/ejabberd_SUITE_data/ejabberd.redis.yml | 3 ++- test/ejabberd_SUITE_data/ejabberd.sqlite.yml | 3 ++- test/ejabberd_SUITE_data/ejabberd.yml | 1 + test/ejabberd_SUITE_data/macros.yml | 1 + test/suite.erl | 1 + 9 files changed, 15 insertions(+), 6 deletions(-) diff --git a/test/ejabberd_SUITE_data/ejabberd.ldap.yml b/test/ejabberd_SUITE_data/ejabberd.ldap.yml index 5c481cbc6..a60d227da 100644 --- a/test/ejabberd_SUITE_data/ejabberd.ldap.yml +++ b/test/ejabberd_SUITE_data/ejabberd.ldap.yml @@ -24,7 +24,8 @@ define_macro: mod_configure: [] mod_disco: [] mod_ping: [] - mod_proxy65: [] + mod_proxy65: + port: PROXY_PORT mod_register: welcome_message: subject: "Welcome!" diff --git a/test/ejabberd_SUITE_data/ejabberd.mnesia.yml b/test/ejabberd_SUITE_data/ejabberd.mnesia.yml index bb57d0858..14bb2bff2 100644 --- a/test/ejabberd_SUITE_data/ejabberd.mnesia.yml +++ b/test/ejabberd_SUITE_data/ejabberd.mnesia.yml @@ -46,7 +46,8 @@ define_macro: mod_configure: [] mod_disco: [] mod_ping: [] - mod_proxy65: [] + mod_proxy65: + port: PROXY_PORT mod_push: include_body: false mod_push_keepalive: [] diff --git a/test/ejabberd_SUITE_data/ejabberd.mysql.yml b/test/ejabberd_SUITE_data/ejabberd.mysql.yml index eb81c6c30..411901976 100644 --- a/test/ejabberd_SUITE_data/ejabberd.mysql.yml +++ b/test/ejabberd_SUITE_data/ejabberd.mysql.yml @@ -52,7 +52,8 @@ define_macro: mod_configure: [] mod_disco: [] mod_ping: [] - mod_proxy65: [] + mod_proxy65: + port: PROXY_PORT mod_push: db_type: sql include_body: false diff --git a/test/ejabberd_SUITE_data/ejabberd.pgsql.yml b/test/ejabberd_SUITE_data/ejabberd.pgsql.yml index d7d43c9c4..c0cd0b0d6 100644 --- a/test/ejabberd_SUITE_data/ejabberd.pgsql.yml +++ b/test/ejabberd_SUITE_data/ejabberd.pgsql.yml @@ -52,7 +52,8 @@ define_macro: mod_configure: [] mod_disco: [] mod_ping: [] - mod_proxy65: [] + mod_proxy65: + port: PROXY_PORT mod_push: db_type: sql include_body: false diff --git a/test/ejabberd_SUITE_data/ejabberd.redis.yml b/test/ejabberd_SUITE_data/ejabberd.redis.yml index 5988c5b4d..7065f0ffd 100644 --- a/test/ejabberd_SUITE_data/ejabberd.redis.yml +++ b/test/ejabberd_SUITE_data/ejabberd.redis.yml @@ -47,7 +47,8 @@ define_macro: mod_configure: [] mod_disco: [] mod_ping: [] - mod_proxy65: [] + mod_proxy65: + port: PROXY_PORT mod_push: include_body: false mod_push_keepalive: [] diff --git a/test/ejabberd_SUITE_data/ejabberd.sqlite.yml b/test/ejabberd_SUITE_data/ejabberd.sqlite.yml index 9efaf216e..3e22f6a2d 100644 --- a/test/ejabberd_SUITE_data/ejabberd.sqlite.yml +++ b/test/ejabberd_SUITE_data/ejabberd.sqlite.yml @@ -46,7 +46,8 @@ define_macro: mod_configure: [] mod_disco: [] mod_ping: [] - mod_proxy65: [] + mod_proxy65: + port: PROXY_PORT mod_push: db_type: sql include_body: false diff --git a/test/ejabberd_SUITE_data/ejabberd.yml b/test/ejabberd_SUITE_data/ejabberd.yml index 2bf090d5c..cea93fe90 100644 --- a/test/ejabberd_SUITE_data/ejabberd.yml +++ b/test/ejabberd_SUITE_data/ejabberd.yml @@ -101,6 +101,7 @@ modules: mod_disco: [] mod_ping: [] mod_proxy65: + port: PROXY_PORT vcard: VCARD mod_muc: vcard: VCARD diff --git a/test/ejabberd_SUITE_data/macros.yml b/test/ejabberd_SUITE_data/macros.yml index 047d363eb..fdd467584 100644 --- a/test/ejabberd_SUITE_data/macros.yml +++ b/test/ejabberd_SUITE_data/macros.yml @@ -5,6 +5,7 @@ define_macro: S2S_PORT: @@s2s_port@@ WEB_PORT: @@web_port@@ COMPONENT_PORT: @@component_port@@ + PROXY_PORT: @@proxy_port@@ PASSWORD: >- @@password@@ LOGLEVEL: @@loglevel@@ diff --git a/test/suite.erl b/test/suite.erl index 7c565eacc..a82f06efb 100644 --- a/test/suite.erl +++ b/test/suite.erl @@ -62,6 +62,7 @@ init_config(Config) -> {s2s_port, 5269}, {component_port, 5270}, {web_port, 5280}, + {proxy_port, 7777}, {password, Password}, {mysql_server, <<"localhost">>}, {mysql_port, 3306},