-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing deprecated test configs from tests #1088
Conversation
@@ -611,15 +611,15 @@ remove_roster(Config, UserSpec) -> | |||
end. | |||
|
|||
set_versioning(Versioning, VersionStore, Config) -> | |||
Host = escalus_ct:get_config(ejabberd_domain), | |||
Host = ct:get_config({hosts, mim, domain}), | |||
RosterVersioning = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, versioning, false]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Line 615 is too long: RosterVersioning = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, versioning, false]),.
@@ -310,4 +311,3 @@ assert_counter_inc(_Name, Inc, Counter1, Counter2) when Counter1 + Inc =:= Count | |||
|
|||
get_diffs(L1,L2) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 312
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -212,7 +212,7 @@ request_search_fields(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 216
@@ -611,15 +611,15 @@ remove_roster(Config, UserSpec) -> | |||
end. | |||
|
|||
set_versioning(Versioning, VersionStore, Config) -> | |||
Host = escalus_ct:get_config(ejabberd_domain), | |||
Host = ct:get_config({hosts, mim, domain}), | |||
RosterVersioning = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, versioning, false]), | |||
RosterVersionOnDb = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, store_current_id, false]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Line 616 is too long: RosterVersionOnDb = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, store_current_id, false]),.
@@ -500,7 +500,7 @@ search_in_service_discovery(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
ServJID = escalus_ct:get_config(ejabberd_domain), | |||
ServJID = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"directory.",ServJID/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 504
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -143,7 +143,7 @@ user_doesnt_exist(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
BadJID = <<"nonexistent@",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 147
@@ -131,7 +131,9 @@ init_per_group(vcard, Config) -> | |||
end; | |||
|
|||
init_per_group(roster_advanced, Config) -> | |||
case escalus_ejabberd:rpc(gen_mod,get_module_opt,[ct:get_config(ejabberd_domain), mod_roster, backend, mnesia]) of | |||
case escalus_ejabberd:rpc(gen_mod,get_module_opt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 134
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -122,7 +122,7 @@ end_per_suite(Config) -> | |||
|
|||
init_per_group(vcard, Config) -> | |||
case escalus_ejabberd:rpc(gen_mod,get_module_opt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 124
@@ -250,7 +250,7 @@ search_some(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 254
@@ -611,15 +611,15 @@ remove_roster(Config, UserSpec) -> | |||
end. | |||
|
|||
set_versioning(Versioning, VersionStore, Config) -> | |||
Host = escalus_ct:get_config(ejabberd_domain), | |||
Host = ct:get_config({hosts, mim, domain}), | |||
RosterVersioning = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, versioning, false]), | |||
RosterVersionOnDb = escalus_ejabberd:rpc(gen_mod, get_module_opt, [Host, mod_roster, store_current_id, false]), | |||
escalus_ejabberd:rpc(gen_mod, set_module_opt, [Host, mod_roster, versioning, Versioning]), | |||
escalus_ejabberd:rpc(gen_mod, set_module_opt, [Host, mod_roster, store_current_id, VersionStore]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Line 618 is too long: escalus_ejabberd:rpc(gen_mod, set_module_opt, [Host, mod_roster, store_current_id, VersionStore]),.
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -250,7 +250,7 @@ search_some(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, | |||
Fields = [{get_field_name(fn), get_FN(Config)}], | |||
timer:sleep(timer:seconds(1)), %% this is required by Riak 2.0 Search to be sure the vcard is indexed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Line 256 is too long: timer:sleep(timer:seconds(1)), %% this is required by Riak 2.0 Search to be sure the vcard is indexed.
@@ -419,7 +419,9 @@ search_result_item_tuples(Stanza) -> | |||
_ItemTups = item_tuples(ReportedFieldTups, XChildren). | |||
|
|||
is_vcard_ldap()-> | |||
ldap==escalus_ejabberd:rpc(gen_mod,get_module_opt,[ct:get_config(ejabberd_domain), mod_vcard, backend, mnesia]). | |||
ldap==escalus_ejabberd:rpc(gen_mod,get_module_opt, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 422
@@ -462,7 +462,7 @@ search_open_limited(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Server = escalus_ct:get_config(ejabberd_domain), | |||
Server = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"directory.",Server/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 466
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -154,7 +156,7 @@ stop_roster_module(_)-> | |||
ok. | |||
|
|||
get_auth_method() -> | |||
XMPPDomain = ct:get_config(ejabberd_domain), | |||
XMPPDomain = ct:get_config({hosts, mim, domain}), | |||
escalus_ejabberd:rpc(ejabberd_config, get_local_option,[{auth_method, XMPPDomain}]). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 160
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
@@ -1085,5 +1085,3 @@ vcard_result_mapping(_) -> undefined. | |||
get_utf8_city() -> | |||
%% This is the UTF-8 of Москва | |||
<<208,156,208,190,209,129,208,186,208,178,208,176>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 1087
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
@@ -269,7 +269,7 @@ search_wildcard(Config) -> | |||
escalus:story( | |||
Config, [{bob, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 273
@@ -235,7 +235,7 @@ search_empty(Config) -> | |||
escalus:story( | |||
Config, [{alice, 1}], | |||
fun(Client) -> | |||
Domain = escalus_config:get_ct(ejabberd_domain), | |||
Domain = ct:get_config({hosts, mim, domain}), | |||
DirJID = <<"vjud.",Domain/binary>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Missing space right "," on line 239
2963afc
to
77e0760
Compare
{ejabberd_reloaded_domain, <<"sogndal">>}. | ||
{ejabberd_metrics_rest_port, 5288}. | ||
{ejabberd2_metrics_rest_port, 5289}. | ||
%% the main XMPP domain served by the tested ejabberd/MongooseIM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the comment as it is no longer relevant
Removing deprecated test configs from tests