-
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
Get rid of mongoose_commands #3759
Get rid of mongoose_commands #3759
Conversation
small_tests_24 / small_tests / dbd74b5 small_tests_25 / small_tests / dbd74b5 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / dbd74b5 ldap_mnesia_24 / ldap_mnesia / dbd74b5 dynamic_domains_mysql_redis_25 / mysql_redis / dbd74b5 ldap_mnesia_25 / ldap_mnesia / dbd74b5 internal_mnesia_25 / internal_mnesia / dbd74b5 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / dbd74b5 pgsql_mnesia_24 / pgsql_mnesia / dbd74b5 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / dbd74b5 pgsql_mnesia_25 / pgsql_mnesia / dbd74b5 mysql_redis_25 / mysql_redis / dbd74b5 riak_mnesia_24 / riak_mnesia / dbd74b5 mssql_mnesia_25 / odbc_mssql_mnesia / dbd74b5 muc_http_api_SUITE:negative:kick_user_errors{error,{{timeout,ok,[{times,50,not_yet}]},
[{mongoose_helper,do_wait_until,2,
[{file,"/home/circleci/project/big_tests/tests/mongoose_helper.erl"},
{line,371}]},
{muc_http_api_SUITE,kick_user_errors,1,
[{file,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE.erl"},
{line,325}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_2346@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_2346@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"xqtZrDaYgZVDJgamXC9PyQ==">>}],
[{xmlel,<<"item">>,
[{<<"id">>,<<"salmon">>}],
[{xmlel,<<"entry">>,
[{<<"xmlns">>,
<<"http://www.w3.org/2005/Atom">>}],
[]}]}]}]},
{xmlel,<<"headers">>,
[{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
[]}]}]},
[{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
{line,384}]},
{escalus_story,story,4,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} |
Codecov ReportBase: 80.93% // Head: 82.69% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## feature/unified-rest-api #3759 +/- ##
============================================================
+ Coverage 80.93% 82.69% +1.75%
============================================================
Files 537 531 -6
Lines 34342 33769 -573
============================================================
+ Hits 27796 27925 +129
+ Misses 6546 5844 -702
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
dbd74b5
to
c8c8355
Compare
small_tests_24 / small_tests / c8c8355 small_tests_25 / small_tests / c8c8355 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / c8c8355 ldap_mnesia_24 / ldap_mnesia / c8c8355 dynamic_domains_mysql_redis_25 / mysql_redis / c8c8355 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / c8c8355 ldap_mnesia_25 / ldap_mnesia / c8c8355 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / c8c8355 internal_mnesia_25 / internal_mnesia / c8c8355 pgsql_mnesia_24 / pgsql_mnesia / c8c8355 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / c8c8355 pgsql_mnesia_25 / pgsql_mnesia / c8c8355 mssql_mnesia_25 / odbc_mssql_mnesia / c8c8355 riak_mnesia_24 / riak_mnesia / c8c8355 mysql_redis_25 / mysql_redis / c8c8355 |
c8c8355
to
038fd1f
Compare
small_tests_24 / small_tests / 038fd1f small_tests_25 / small_tests / 038fd1f dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 038fd1f service_domain_db_SUITE:db:db_keeps_syncing_after_cluster_join{error,{test_case_failed,{[<<"example1.com">>],
[<<"example1.com">>,<<"example2.com">>]}}} service_domain_db_SUITE:db:rest_with_auth:rest_delete_domain_cleans_data_from_mam{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bob_rest_delete_domain_cleans_data_from_mam_2427@example.org/res1">>,
escalus_tcp,<0.17074.2>,
[{event_manager,<0.17068.2>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2427">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.17068.2>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2427">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2427">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{port,5232},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2427">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{password,<<"makota3">>},
{port,5232},
{stream_id,<<"ea96b6ad9ff6534a">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{service_domain_db_SUITE,
'-rest_delete_domain_cleans_data_from_mam/1-fun-0-',5,
[{file,
... service_domain_db_SUITE:db:rest_without_auth:rest_delete_domain_cleans_data_from_mam{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bob_rest_delete_domain_cleans_data_from_mam_2428@example.org/res1">>,
escalus_tcp,<0.17673.2>,
[{event_manager,<0.17667.2>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2428">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.17667.2>},
{server,<<"example.org">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2428">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2428">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{port,5232},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bob_rest_delete_domain_cleans_data_from_mam_2428">>},
{server,<<"example.org">>},
{host,<<"localhost">>},
{password,<<"makota3">>},
{port,5232},
{stream_id,<<"813dd09187d9b95e">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{service_domain_db_SUITE,
'-rest_delete_domain_cleans_data_from_mam/1-fun-0-',5,
[{file,
... ldap_mnesia_24 / ldap_mnesia / 038fd1f dynamic_domains_mysql_redis_25 / mysql_redis / 038fd1f mam_SUITE:rdbms_async_cache_chat_markers:end_per_group{error,
{{badrpc,
{'EXIT',
{{start_child_failed,
{error,
{{shutdown,
{failed_to_start_child,'pm_mam_async_pool_test type',
{shutdown,
{failed_to_start_child,
'wpool_pool-pm_mam_async_pool_test type-process-sup',
{shutdown,
{failed_to_start_child,
'wpool_pool-pm_mam_async_pool_test type-2',
{already_started,<9143.9222.1>}}}}}}},
{child,undefined,'pm_mam_sup_async_pool_test type',
{mongoose_async_pools,start_link,
[<<"test type">>,pm_mam,
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,
flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
flush_extra =>
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,flush_interval => 2000,pool_size => 16},
flush_interval => 2000,pool_size => 16,pool_type => batch}]},
transient,false,infinity,supervisor,
[mongoose_async_pools]}}},
#{id => 'pm_mam_sup_async_pool_test type',restart => transient,
start =>
{mongoose_async_pools,start_link,
[<<"test type">>,pm_mam,
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,
flush_callback => fun mod_mam_rdbms_arch_async:flush/2,
flush_extra =>
#{batch_name => insert_mam_messages30,batch_size => 30,
enabled => true,flush_interval => 2000,pool_size => 16},
flush_interval => 2000,pool_size => 16,pool_type => batch}]},
type =>... dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 038fd1f ldap_mnesia_25 / ldap_mnesia / 038fd1f dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 038fd1f internal_mnesia_25 / internal_mnesia / 038fd1f pgsql_mnesia_24 / pgsql_mnesia / 038fd1f pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_2348@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_2348@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"Aa/RvjHWtdE8BHfyZfwdxg==">>}],
[{xmlel,<<"item">>,
[{<<"id">>,<<"salmon">>}],
[{xmlel,<<"entry">>,
[{<<"xmlns">>,
<<"http://www.w3.org/2005/Atom">>}],
[]}]}]}]},
{xmlel,<<"headers">>,
[{<<"xmlns">>,<<"http://jabber.org/protocol/shim">>}],
[]}]}]},
[{pep_SUITE,'-unsubscribe_after_presence_unsubscription/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
{line,384}]},
{escalus_story,story,4,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} pgsql_mnesia_25 / pgsql_mnesia / 038fd1f elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 038fd1f mysql_redis_25 / mysql_redis / 038fd1f riak_mnesia_24 / riak_mnesia / 038fd1f mssql_mnesia_25 / odbc_mssql_mnesia / 038fd1f muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive{error,{{assertion_failed,assert,is_groupchat_message,
[<<"Restorable message">>],
undefined,"undefined"},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{muc_SUITE,wait_for_mam_result,3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4394}]},
{muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4130}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4126}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} |
038fd1f
to
fff1672
Compare
small_tests_24 / small_tests / fff1672 small_tests_25 / small_tests / fff1672 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / fff1672 ldap_mnesia_24 / ldap_mnesia / fff1672 dynamic_domains_mysql_redis_25 / mysql_redis / fff1672 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / fff1672 ldap_mnesia_25 / ldap_mnesia / fff1672 pgsql_mnesia_24 / pgsql_mnesia / fff1672 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / fff1672 internal_mnesia_25 / internal_mnesia / fff1672 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / fff1672 pgsql_mnesia_25 / pgsql_mnesia / fff1672 mysql_redis_25 / mysql_redis / fff1672 mssql_mnesia_25 / odbc_mssql_mnesia / fff1672 riak_mnesia_24 / riak_mnesia / fff1672 |
fff1672
to
999cb68
Compare
small_tests_24 / small_tests / 999cb68 small_tests_25 / small_tests / 999cb68 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 999cb68 ldap_mnesia_24 / ldap_mnesia / 999cb68 ldap_mnesia_25 / ldap_mnesia / 999cb68 dynamic_domains_mysql_redis_25 / mysql_redis / 999cb68 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 999cb68 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 999cb68 muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive{error,{{assertion_failed,assert,is_groupchat_message,
[<<"Restorable message">>],
undefined,"undefined"},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{muc_SUITE,wait_for_mam_result,3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4394}]},
{muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4130}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4126}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} internal_mnesia_25 / internal_mnesia / 999cb68 pgsql_mnesia_24 / pgsql_mnesia / 999cb68 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 999cb68 pgsql_mnesia_25 / pgsql_mnesia / 999cb68 mysql_redis_25 / mysql_redis / 999cb68 mssql_mnesia_25 / odbc_mssql_mnesia / 999cb68 riak_mnesia_24 / riak_mnesia / 999cb68 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 999cb68 inbox_extensions_SUITE:async_pools:one_to_one:mute_muted_entry_gets_unmuted{error,
{{assert,
[{module,inbox_extensions_SUITE},
{line,798},
{expression,"escalus_pred : is_message ( Message )"},
{expected,true},
{value,false}]},
[{inbox_extensions_SUITE,check_message_with_properties,4,
[{file,
"/home/circleci/project/big_tests/tests/inbox_extensions_SUITE.erl"},
{line,798}]},
{inbox_extensions_SUITE,set_inbox_properties,4,
[{file,
"/home/circleci/project/big_tests/tests/inbox_extensions_SUITE.erl"},
{line,792}]},
{inbox_extensions_SUITE,'-mute_muted_entry_gets_unmuted/1-fun-2-',2,
[{file,
"/home/circleci/project/big_tests/tests/inbox_extensions_SUITE.erl"},
{line,568}]},
{escalus_story,story,4,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 999cb68 |
Also: remove mod_*commands from small tests, because this functionality is being removed.
This functionality is being removed.
This functionality is now provided by mongoose_admin_api
- Remove unused helpers from mongoose_api_common - Move error handling to mongoose_admin_api, which is specific to the Admin API. - Rework error loggiong, the log level is quite verbose (warning/error), but still lower than before (always error). Anyway, it applies only to the Admin API.
'reload_dispatch' is kept as a shell utility
999cb68
to
27e0486
Compare
small_tests_24 / small_tests / 27e0486 small_tests_25 / small_tests / 27e0486 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 27e0486 ldap_mnesia_24 / ldap_mnesia / 27e0486 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 27e0486 dynamic_domains_mysql_redis_25 / mysql_redis / 27e0486 ldap_mnesia_25 / ldap_mnesia / 27e0486 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 27e0486 muc_SUITE:hibernation:hibernated_room_can_be_queried_for_archive{error,{{assertion_failed,assert,is_groupchat_message,
[<<"Restorable message">>],
undefined,"undefined"},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{muc_SUITE,wait_for_mam_result,3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4394}]},
{muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4130}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{muc_SUITE,hibernated_room_can_be_queried_for_archive,1,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4126}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} pgsql_mnesia_24 / pgsql_mnesia / 27e0486 internal_mnesia_25 / internal_mnesia / 27e0486 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 27e0486 pgsql_mnesia_25 / pgsql_mnesia / 27e0486 mysql_redis_25 / mysql_redis / 27e0486 mssql_mnesia_25 / odbc_mssql_mnesia / 27e0486 riak_mnesia_24 / riak_mnesia / 27e0486 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 27e0486 |
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.
ok
The new
mongoose_admin_api
module covers the functionality thatmongoose_api_admin
,mongoose_commands
,mod_commands
,mod_muc_commands
andmod_muc_light_commands
used to provide. This means that all the unused code can be now removed, resulting in a significant code reduction.Also: log level for HTTP errors for the Admin REST API was reduced. Now it is:
error
for internal server errors.warning
for other errors.TO DO after this PR:
mongoose_api
andmongoose_domain_handler
to usemongoose_admin_api
.