From fb0b90a92ecc24740a7ee935e51cae9d7f261ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chrz=C4=85szcz?= Date: Tue, 14 Sep 2021 08:57:32 +0200 Subject: [PATCH] Configure mim for cluster tests with dynamic domains --- big_tests/dynamic_domains.config | 14 ++++++++++++++ rel/mim2.vars-toml.config | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/big_tests/dynamic_domains.config b/big_tests/dynamic_domains.config index eeb537a4e4..e469596581 100644 --- a/big_tests/dynamic_domains.config +++ b/big_tests/dynamic_domains.config @@ -30,12 +30,20 @@ {mim2, [{node, ejabberd2@localhost}, {domain, <<"domain.example.com">>}, {host_type, <<"test type">>}, + {dynamic_domains, [{<<"test type">>, [<<"domain.example.com">>]}]}, {vars, "mim2"}, {cluster, mim}, + {c2s_port, 5232}, {c2s_tls_port, 5233}, {metrics_rest_port, 5289}, {gd_endpoint_port, 6666}, {service_port, 8899}]}, + {mim3, [{node, mongooseim3@localhost}, + {domain, <<"domain.example.com">>}, + {host_type, <<"test type">>}, + {vars, "mim3"}, + {c2s_tls_port, 5263}, + {cluster, mim}]}, %% used to test s2s features {fed, [{node, fed1@localhost}, {domain, <<"fed1">>}, @@ -101,6 +109,12 @@ {username, <<"admin">>}, {server, <<"localhost">>}, {password, <<"bruce_almighty">>}]}, + {clusterguy, [ + {username, <<"clusterguy">>}, + {server, <<"domain.example.com">>}, + {host, <<"localhost">>}, + {password, <<"distributionftw">>}, + {port, 5232}]}, {alice3, [ %% used in dynamic_domains_SUITE {username, <<"alice">>}, {server, <<"example.com">>}, diff --git a/rel/mim2.vars-toml.config b/rel/mim2.vars-toml.config index 34967a1f64..cbe5a4d447 100644 --- a/rel/mim2.vars-toml.config +++ b/rel/mim2.vars-toml.config @@ -11,6 +11,7 @@ {service_port, 8899}. {hosts, "\"localhost\", \"anonymous.localhost\", \"localhost.bis\""}. +{host_types, "\"test type\", \"dummy auth\""}. {default_server_domain, "\"localhost\""}. {s2s_addr, "[[s2s.address]] host = \"localhost2\" @@ -52,7 +53,6 @@ {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. -{host_types, "\"dummy auth\""}. {host_config, "[[host_config]] host_type = \"dummy auth\"