-
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
SASL EXTERNAL E2E tests #2085
SASL EXTERNAL E2E tests #2085
Conversation
5642.1 / Erlang 19.3 / small_tests / de99d87 5642.2 / Erlang 19.3 / internal_mnesia / de99d87 5642.3 / Erlang 19.3 / mysql_redis / de99d87 sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_request_name_empty{error,{{badmatch,{done,1,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5642/mysql_redis.19.3/big/ct_run.test%40travis-job-da7f34e1-375b-4a8e-9ee1-833b6ab413ef.2018-09-25_14.29.56/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_14.45.46/log_private/bobsinging.log"}},
[{sasl_external_SUITE,generate_user,3,
[{file,"sasl_external_SUITE.erl"},{line,109}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_request_name_empty,1,
[{file,"sasl_external_SUITE.erl"},{line,60}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1045}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,977}]}]}} |
Codecov Report
@@ Coverage Diff @@
## master #2085 +/- ##
=========================================
+ Coverage 75% 75.2% +0.19%
=========================================
Files 321 321
Lines 28697 28701 +4
=========================================
+ Hits 21525 21584 +59
+ Misses 7172 7117 -55
Continue to review full report at Codecov.
|
5645.1 / Erlang 19.3 / small_tests / 0e358d8 5645.5 / Erlang 19.3 / ldap_mnesia / 0e358d8 sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{closed,
[{escalus_tcp,upgrade_to_tls,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_requested_correct_user,
1,
[{file,"sasl_external_SUITE.erl"},{line,55}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:fast_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{closed,
[{escalus_tcp,upgrade_to_tls,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_no_xmpp_addrs_request_name_empty,
1,
[{file,"sasl_external_SUITE.erl"},{line,67}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:fast_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,{{badmatch,{done,1,
<<"Generating a 2048 bit RSA private key\n................................+++\n....+++\nwriting new private key to 'https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/ldap_mnesia.19.3/big/ct_run.test%40travis-job-bbde8b5a-a92c-4d14-89dd-a0818430f6a6.2018-09-25_18.11.16/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.26.17/log_private/john_key.pem'\n-----\nunable to find 'distinguished_name' in config\nproblems making Certificate Request\n47146271530336:error:0E06D06C:configuration file routines:NCONF_get_string:no value:conf_lib.c:335:group=req name=distinguished_name\n">>}},
[{sasl_external_SUITE,generate_user,3,
[{file,"sasl_external_SUITE.erl"},{line,103}]},
{sasl_external_SUITE,cert_with_cn_no_xmpp_addrs_request_name_empty,1,
[{file,"sasl_external_SUITE.erl"},{line,66}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1045}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,977}]}]}} sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{closed,
[{escalus_tcp,upgrade_to_tls,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_requested_correct_user,
1,
[{file,"sasl_external_SUITE.erl"},{line,55}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:fast_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{closed,
[{escalus_tcp,upgrade_to_tls,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_no_xmpp_addrs_request_name_empty,
1,
[{file,"sasl_external_SUITE.erl"},{line,67}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{closed,
[{escalus_tcp,upgrade_to_tls,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_requested_correct_user,
1,
[{file,"sasl_external_SUITE.erl"},{line,55}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:just_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,{{tls_alert,"bad certificate"},
[{escalus_tcp,upgrade_to_tls,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_requested_correct_user,
1,
[{file,"sasl_external_SUITE.erl"},{line,55}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:just_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,{{tls_alert,"bad certificate"},
[{escalus_tcp,upgrade_to_tls,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_no_xmpp_addrs_request_name_empty,1,
[{file,"sasl_external_SUITE.erl"},{line,67}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:just_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,{{tls_alert,"bad certificate"},
[{escalus_tcp,upgrade_to_tls,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_requested_correct_user,
1,
[{file,"sasl_external_SUITE.erl"},{line,55}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:just_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,{{tls_alert,"bad certificate"},
[{escalus_tcp,upgrade_to_tls,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_no_xmpp_addrs_request_name_empty,1,
[{file,"sasl_external_SUITE.erl"},{line,67}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:just_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,{{tls_alert,"bad certificate"},
[{escalus_tcp,upgrade_to_tls,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_xmpp_addrs_requested_correct_user,
1,
[{file,"sasl_external_SUITE.erl"},{line,55}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} sasl_external_SUITE:just_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,{{tls_alert,"bad certificate"},
[{escalus_tcp,upgrade_to_tls,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,147}]},
{escalus_session,starttls,1,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,69}]},
{escalus_session,maybe_use_ssl,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_session.erl"},
{line,181}]},
{escalus_connection,connection_step,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,134}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{escalus_connection,start,2,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,118}]},
{sasl_external_SUITE,cert_with_cn_no_xmpp_addrs_request_name_empty,1,
[{file,"sasl_external_SUITE.erl"},{line,67}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]}]}} 5645.3 / Erlang 19.3 / mysql_redis / 0e358d8 5645.2 / Erlang 19.3 / internal_mnesia / 0e358d8 sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5399.2>,
undefined,
[{requested_name,<<"alice@localhost">>},
{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"3E90436DC8F09E8D">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"YWxpY2VAbG9jYWxob3N0">>},
{xmlel,<<"failure">>,
... sasl_external_SUITE:fast_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5401.2>,
undefined,
[{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"9B7C218411ACBB4A">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"=">>},
{xmlel,<<"failure">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-s... sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5467.2>,
undefined,
[{requested_name,<<"alice@localhost">>},
{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"B76496FFC79B5999">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"YWxpY2VAbG9jYWxob3N0">>},
{xmlel,<<"failure">>,
... sasl_external_SUITE:fast_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5477.2>,
undefined,
[{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"95654C72AE9A34E8">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"=">>},
{xmlel,<<"failure">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-s... sasl_external_SUITE:fast_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5542.2>,
undefined,
[{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"357DE3277DA88D33">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"=">>},
{xmlel,<<"failure">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-s... sasl_external_SUITE:fast_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5557.2>,
undefined,
[{requested_name,<<"alice@localhost">>},
{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"DB2BB3FB840D5839">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"YWxpY2VAbG9jYWxob3N0">>},
{xmlel,<<"failure">>,
... sasl_external_SUITE:just_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5624.2>,
undefined,
[{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"FA1598F707C33E24">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"=">>},
{xmlel,<<"failure">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-s... sasl_external_SUITE:just_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5632.2>,
undefined,
[{requested_name,<<"alice@localhost">>},
{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"45D49CA74DAAF045">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"YWxpY2VAbG9jYWxob3N0">>},
{xmlel,<<"failure">>,
... sasl_external_SUITE:just_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5692.2>,
undefined,
[{requested_name,<<"alice@localhost">>},
{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"3175CF04103EDEF4">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"YWxpY2VAbG9jYWxob3N0">>},
{xmlel,<<"failure">>,
... sasl_external_SUITE:just_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5707.2>,
undefined,
[{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"FC7D90AA19B7AE44">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"=">>},
{xmlel,<<"failure">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-s... sasl_external_SUITE:just_tls:cert_with_cn_xmpp_addrs_requested_correct_user{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5774.2>,
undefined,
[{requested_name,<<"alice@localhost">>},
{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"663415234C875603">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"YWxpY2VAbG9jYWxob3N0">>},
{xmlel,<<"failure">>,
... sasl_external_SUITE:just_tls:cert_with_cn_no_xmpp_addrs_request_name_empty{error,
{{badmatch,
{error,
{connection_step_failed,
{{escalus_session,authenticate},
{client,<<"john@localhost/">>,escalus_tcp,<0.5781.2>,
undefined,
[{username,<<"john">>},
{server,<<"localhost">>},
{password,<<"break_me">>},
{resource,<<>>},
{auth,{escalus_auth,auth_sasl_external}},
{ssl_opts,
[{certfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_cert.pem"},
{keyfile,
"https://mongooseim-ct-results.s3-eu-west-1.amazonaws.com/PR/2085/5645/internal_mnesia.19.3/big/ct_run.test%40travis-job-ce4b6d0a-c329-4dec-ae7d-e38cafd0aaa6.2018-09-25_18.11.50/big_tests.tests.sasl_external_SUITE.logs/run.2018-09-25_18.27.53/log_private/john_key.pem"}]},
{starttls,required},
{host,<<"localhost">>},
{stream_id,<<"5B5AB0C5A0168018">>}]},
[{compression,false},
{starttls,false},
{stream_management,true},
{advanced_message_processing,false},
{client_state_indication,false},
{sasl_mechanisms,[]},
{caps,undefined}]},
{auth_failed,
{xmlcdata,<<"=">>},
{xmlel,<<"failure">>,
[{<<"xmlns">>,
<<"urn:ietf:params:xml:ns:xmpp-s... 5645.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 0e358d8 5645.4 / Erlang 19.3 / odbc_mssql_mnesia / 0e358d8 5645.8 / Erlang 20.0 / pgsql_mnesia / 0e358d8 5645.9 / Erlang 21.0 / riak_mnesia / 0e358d8 |
when run in parallel there were some random erros with certs
5648.1 / Erlang 19.3 / small_tests / cf98141 5648.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / cf98141 5648.3 / Erlang 19.3 / mysql_redis / cf98141 5648.2 / Erlang 19.3 / internal_mnesia / cf98141 5648.4 / Erlang 19.3 / odbc_mssql_mnesia / cf98141 5648.5 / Erlang 19.3 / ldap_mnesia / cf98141 5648.8 / Erlang 20.0 / pgsql_mnesia / cf98141 5648.9 / Erlang 21.0 / riak_mnesia / cf98141 |
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.
Looks good. Only minor comments.
string:join(Entries, "\n"). | ||
|
||
make_xmpp_addr_entry(Addr, I) -> | ||
"otherName." ++ integer_to_list(I) ++ " = 1.3.6.1.5.5.7.8.5;UTF8:" ++ Addr. |
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.
It may be useful for future maintainers to tell in a comment where this magic string comes from.
UserCert = filename:join(?config(priv_dir, C), User ++ "_cert.pem"), | ||
SignCmd = filename:join(?config(data_dir, C), "sign_cert.sh"), | ||
Cmd2 = [SignCmd, "--req", UserCsr, "--out", UserCert], | ||
LogFile = filename:join(?config(priv_dir, C), User ++ "singing.log"), |
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.
I'm siiiingin' in the raaaaain... :D
5664.1 / Erlang 19.3 / small_tests / 87611a5 5664.2 / Erlang 19.3 / internal_mnesia / 87611a5 5664.3 / Erlang 19.3 / mysql_redis / 87611a5 5664.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 87611a5 5664.4 / Erlang 19.3 / odbc_mssql_mnesia / 87611a5 5664.5 / Erlang 19.3 / ldap_mnesia / 87611a5 5664.8 / Erlang 20.0 / pgsql_mnesia / 87611a5 5664.9 / Erlang 21.0 / riak_mnesia / 87611a5 |
This PR adds SASL EXTERNAL end-to-end tests
Proposed changes include:
cyrsasl_external
to handle a connection without a certfast_tls
andjust_tls
More info regarding certs generation for client auth can be found in: