-
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
Fix anonymous login #3706
Fix anonymous login #3706
Conversation
small_tests_24 / small_tests / a1489df small_tests_25 / small_tests / a1489df dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / a1489df anonymous_SUITE:anonymous:connection_is_registered_with_login{error,{{badarity,{#Fun<anonymous_SUITE.1.88077589>,[]}},
[{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}]}]}} ldap_mnesia_24 / ldap_mnesia / a1489df dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / a1489df anonymous_SUITE:anonymous:connection_is_registered_with_login{error,{{badarity,{#Fun<anonymous_SUITE.1.19843977>,[]}},
[{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{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_mysql_redis_25 / mysql_redis / a1489df anonymous_SUITE:anonymous:connection_is_registered_with_login{error,{{badarity,{#Fun<anonymous_SUITE.1.19843977>,[]}},
[{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{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 / a1489df anonymous_SUITE:anonymous:connection_is_registered_with_login{error,{{badarity,{#Fun<anonymous_SUITE.1.19843977>,[]}},
[{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{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}]}]}} ldap_mnesia_25 / ldap_mnesia / a1489df internal_mnesia_25 / internal_mnesia / a1489df pgsql_mnesia_24 / pgsql_mnesia / a1489df graphql_roster_SUITE:admin_roster:admin_invite_accept_and_cancel_subscription{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,
<<"bob_admin_invite_accept_and_cancel_subscription_874@localhost/res1">>,
escalus_tcp,<0.22523.0>,
[{event_manager,<0.22521.0>},
{server,<<"localhost">>},
{username,
<<"bOb_admin_invite_accept_and_cancel_subscription_874">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.22521.0>},
{server,<<"localhost">>},
{username,
<<"bOb_admin_invite_accept_and_cancel_subscription_874">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,
<<"bob_admin_invite_accept_and_cancel_subscription_874">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,
<<"bOb_admin_invite_accept_and_cancel_subscription_874">>},
{server,<<"localhost">>},
{password,<<"makrolika">>},
{stream_id,<<"6796df7dd95af488">>}]},
1],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,136}]},
{graphql_roster_SUITE,
admin_invite_accept_and_cancel_subscription_story,3,
[{file,
"/home/circleci/project/big_tests/tests/graphql_roster... elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / a1489df pgsql_mnesia_25 / pgsql_mnesia / a1489df pep_SUITE:pep_tests:unsubscribe_after_presence_unsubscription{error,
{{badmatch,
[{xmlel,<<"message">>,
[{<<"from">>,
<<"alice_unsubscribe_after_presence_unsubscription_2249@localhost">>},
{<<"to">>,
<<"bob_unsubscribe_after_presence_unsubscription_2249@localhost/res1">>},
{<<"type">>,<<"headline">>}],
[{xmlel,<<"event">>,
[{<<"xmlns">>,
<<"http://jabber.org/protocol/pubsub#event">>}],
[{xmlel,<<"items">>,
[{<<"node">>,<<"4Hkh5aG3OyMsaAkWMFsp+Q==">>}],
[{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}]}]}} mysql_redis_25 / mysql_redis / a1489df riak_mnesia_24 / riak_mnesia / a1489df mssql_mnesia_25 / odbc_mssql_mnesia / a1489df 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,4383}]},
{muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4124}]},
{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,4120}]},
{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}]}]}} 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,4383}]},
{muc_SUITE,'-hibernated_room_can_be_queried_for_archive/1-fun-0-',3,
[{file,"/home/circleci/project/big_tests/tests/muc_SUITE.erl"},
{line,4124}]},
{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,4120}]},
{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 Report
@@ Coverage Diff @@
## master #3706 +/- ##
==========================================
+ Coverage 82.10% 82.17% +0.06%
==========================================
Files 513 513
Lines 33644 33644
==========================================
+ Hits 27624 27646 +22
+ Misses 6020 5998 -22
Continue to review full report at Codecov.
|
This was previously untested (and buggy).
It was failing with function_clause. The new test confirmed that.
Previously onyl the users with the SASL ANONYMOUS method were registered, which was wrong. The new test revealed this bug.
a1489df
to
3aba261
Compare
small_tests_24 / small_tests / 3aba261 small_tests_25 / small_tests / 3aba261 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 3aba261 ldap_mnesia_24 / ldap_mnesia / 3aba261 dynamic_domains_mysql_redis_25 / mysql_redis / 3aba261 ldap_mnesia_25 / ldap_mnesia / 3aba261 internal_mnesia_25 / internal_mnesia / 3aba261 pgsql_mnesia_24 / pgsql_mnesia / 3aba261 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 3aba261 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 3aba261 mysql_redis_25 / mysql_redis / 3aba261 pgsql_mnesia_25 / pgsql_mnesia / 3aba261 riak_mnesia_24 / riak_mnesia / 3aba261 mssql_mnesia_25 / odbc_mssql_mnesia / 3aba261 |
This PR addresses issue #3703.
After covering the functionality with tests, another bug showed up.
The PR fixes both - see individual commits for details.