From 8e05c7200e3a2d05188dc3b899e42f8084b1bd07 Mon Sep 17 00:00:00 2001 From: Gustaw Lippa Date: Thu, 27 May 2021 14:34:24 +0200 Subject: [PATCH] Remove check_carboncopy CT hook This hook is a leftover from when mod_carboncopy was using its own mnesia table. See commit e0b1d9d8746e2de3ef137a21772f4bacf20d85f3 when it was removed for details. It is safe to remove this hook, as other hooks like `check_sessions` or `check_registered_users` together with using escalus fresh stories should already ensure that no user configuration leaks between the test groups. --- big_tests/src/ct_mongoose_hook.erl | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/big_tests/src/ct_mongoose_hook.erl b/big_tests/src/ct_mongoose_hook.erl index 7190b9ff38..7982b8ea7a 100644 --- a/big_tests/src/ct_mongoose_hook.erl +++ b/big_tests/src/ct_mongoose_hook.erl @@ -141,8 +141,7 @@ do_check_server_purity(_Suite) -> fun check_privacy/0, fun check_private/0, fun check_vcard/0, - fun check_roster/0, - fun check_carboncopy/0], + fun check_roster/0], lists:flatmap(fun(F) -> F() end, Funs). check_sessions() -> @@ -187,15 +186,6 @@ check_vcard() -> check_roster() -> generic_via_mongoose_helper(total_roster_items). -check_carboncopy() -> - D = ct:get_config({hosts, mim, domain}), - case rpc(mim(), gen_mod, is_loaded, [D, mod_carboncopy]) of - true -> - do_check_carboncopy(); - _ -> - [] - end. - generic_via_mongoose_helper(Function) -> case mongoose_helper:Function() of 0 -> []; @@ -203,12 +193,6 @@ generic_via_mongoose_helper(Function) -> N -> [{Function, N}] end. -do_check_carboncopy() -> - case rpc(mim(), ets, tab2list, [carboncopy]) of - [] -> []; - L -> [{remaining_carbon_copy_settings, L}] - end. - mim_domains() -> [ct:get_config({hosts, mim, domain}), ct:get_config({hosts, mim, secondary_domain})].