-
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
Put mod_register opts in maps with defaults #3606
Conversation
e19d3cf
to
9b98ec1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report
@@ Coverage Diff @@
## master #3606 +/- ##
===========================================
- Coverage 80.90% 59.68% -21.22%
===========================================
Files 426 426
Lines 32254 32249 -5
===========================================
- Hits 26095 19249 -6846
- Misses 6159 13000 +6841
Continue to review full report at Codecov.
|
9b98ec1
to
4a3cbbf
Compare
4a3cbbf
to
de7ead7
Compare
small_tests_24 / small_tests / 4a3cbbf small_tests_23 / small_tests / 4a3cbbf dynamic_domains_mysql_redis_24 / mysql_redis / 4a3cbbf dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 4a3cbbf dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 4a3cbbf dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 4a3cbbf ldap_mnesia_23 / ldap_mnesia / 4a3cbbf ldap_mnesia_24 / ldap_mnesia / 4a3cbbf internal_mnesia_24 / internal_mnesia / 4a3cbbf pgsql_mnesia_24 / pgsql_mnesia / 4a3cbbf mysql_redis_24 / mysql_redis / 4a3cbbf elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 4a3cbbf pgsql_mnesia_23 / pgsql_mnesia / 4a3cbbf mssql_mnesia_24 / odbc_mssql_mnesia / 4a3cbbf riak_mnesia_24 / riak_mnesia / 4a3cbbf |
small_tests_24 / small_tests / de7ead7 small_tests_23 / small_tests / de7ead7 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / de7ead7 dynamic_domains_mysql_redis_24 / mysql_redis / de7ead7 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / de7ead7 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / de7ead7 ldap_mnesia_23 / ldap_mnesia / de7ead7 ldap_mnesia_24 / ldap_mnesia / de7ead7 internal_mnesia_24 / internal_mnesia / de7ead7 pgsql_mnesia_23 / pgsql_mnesia / de7ead7 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / de7ead7 pgsql_mnesia_24 / pgsql_mnesia / de7ead7 mssql_mnesia_24 / odbc_mssql_mnesia / de7ead7 pep_SUITE:pep_tests:delayed_receive_with_sm{error,{{badmatch,[]},
[{pep_SUITE,'-delayed_receive_with_sm/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/pep_SUITE.erl"},
{line,295}]},
{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}]}]}} pep_SUITE:pep_tests:publish_and_notify_test{error,{{assertion_failed,assert_many,false,[is_roster_set],[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,108}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,{{assertion_failed,assert_many,false,[is_roster_set,is_presence],[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,111}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} pep_SUITE:pep_tests:authorize_access_model{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"alicE_authorize_access_model_1885@localhost/res1">>,
escalus_tcp,<0.29324.1>,
[{event_manager,<0.29284.1>},
{server,<<"localhost">>},
{username,<<"alicE_authorize_access_model_1885">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.29284.1>},
{server,<<"localhost">>},
{username,<<"alicE_authorize_access_model_1885">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"alicE_authorize_access_model_1885">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"alicE_authorize_access_model_1885">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"1a6de9868bdb1f95">>}]},
5000],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,480}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,471}]},
{pep_SUITE,'-authorize_access_model/1... pep_SUITE:pep_tests:h_ok_after_notify_test{error,{{assertion_failed,assert_many,false,[is_roster_set,is_presence],[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,111}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} pep_SUITE:pep_tests:send_caps_after_login_test{error,{{assertion_failed,assert_many,false,[is_roster_set,is_presence],[],[]},
[{escalus_new_assert,assert_true,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_new_assert.erl"},
{line,84}]},
{escalus_story,'-make_all_clients_friends/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,111}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,'-each_with_index/3-fun-0-',3,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,87}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_utils,distinct_pairs,2,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_utils.erl"},
{line,60}]},
{escalus_story,make_all_clients_friends,1,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,106}]}]}} mysql_redis_24 / mysql_redis / de7ead7 riak_mnesia_24 / riak_mnesia / de7ead7 |
Put opts in a map with defaults.
I tried to change the default value for the
password_strength
, as the docs suggest it should not be lower than 32. However, some random tests started failing, and after a second thought,0
- password strength checking disabled, is also an OK default, so I just added a line of explanation to the docs.