=== Test case: sm_SUITE:server_enables_sm_before_session/1 (click for source code)

=== Config value:

    [{watchdog,<0.18015.2>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/sm_SUITE_data"},
     {preset,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.sm_SUITE.logs/run.2022-03-07_16.10.56/sm_suite.server_enables_sm_before_session.136451.html"},
     {tc_group_properties,[{name,parallel},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/sm_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.sm_SUITE.logs/run.2022-03-07_16.10.56/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => [],
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
        mod_carboncopy => [],mod_commands => [],
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => [],
        mod_muc_light => [{host,{prefix,<<"muclight.">>}},{backend,rdbms}],
        mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_smart_markers => [{backend,rdbms}],
        mod_stream_management => [],
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,ldap_binary_search_fields => [],
              ldap_pool_tag => default,
              ldap_search_fields =>
                  [{<<"User">>,<<"%u">>},
                   {<<"Full Name">>,<<"displayName">>},
                   {<<"Given Name">>,<<"givenName">>},
                   {<<"Middle Name">>,<<"initials">>},
                   {<<"Family Name">>,<<"sn">>},
                   {<<"Nickname">>,<<"%u">>},
                   {<<"Birthday">>,<<"birthDay">>},
                   {<<"Country">>,<<"c">>},
                   {<<"City">>,<<"l">>},
                   {<<"Email">>,<<"mail">>},
                   {<<"Organization Name">>,<<"o">>},
                   {<<"Organization Unit">>,<<"ou">>}],
              ldap_search_operator => 'and',
              ldap_search_reported =>
                  [{<<"Full Name">>,<<"FN">>},
                   {<<"Given Name">>,<<"FIRST">>},
                   {<<"Middle Name">>,<<"MIDDLE">>},
                   {<<"Family Name">>,<<"LAST">>},
                   {<<"Nickname">>,<<"NICK">>},
                   {<<"Birthday">>,<<"BDAY">>},
                   {<<"Country">>,<<"CTRY">>},
                   {<<"City">>,<<"LOCALITY">>},
                   {<<"Email">>,<<"EMAIL">>},
                   {<<"Organization Name">>,<<"ORGNAME">>},
                   {<<"Organization Unit">>,<<"ORGUNIT">>}],
              ldap_uids => [{<<"uid">>,<<"%u">>}],
              ldap_vcard_map =>
                  [{<<"NICKNAME">>,<<"%u">>,[]},
                   {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                   {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                   {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                   {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                   {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                   {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                   {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                   {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                   {<<"STREET">>,<<"%s">>,[<<"street">>]},
                   {<<"REGION">>,<<"%s">>,[<<"st">>]},
                   {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                   {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                   {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                   {<<"DESC">>,<<"%s">>,[<<"description">>]},
                   {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                   {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                   {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                   {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                   {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}],
              matches => 30,search => true}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>},
                             {stream_management,true}]},
                     {alice_bis,[{username,<<"alicE">>},
                                 {server,<<"localhost.bis">>},
                                 {host,<<"localhost">>},
                                 {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]},
                     {carol_s,[{username,<<"carol_s">>},
                               {server,<<"localhost">>},
                               {password,<<"jinglebells_s">>},
                               {transport,escalus_bosh},
                               {ssl,true},
                               {path,<<"/http-bind">>},
                               {port,5285}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {mike,[{username,<<"mike">>},
                            {server,<<"localhost">>},
                            {password,<<"nicniema">>}]},
                     {john,[{username,<<"john">>},
                            {server,<<"localhost">>},
                            {password,<<"cosontuma">>}]},
                     {geralt,[{username,<<"geralt">>},
                              {server,<<"localhost">>},
                              {password,<<"witcher">>},
                              {transport,escalus_ws},
                              {port,5280},
                              {wspath,<<"/ws-xmpp">>}]},
                     {geralt_s,[{username,<<"geralt_s">>},
                                {server,<<"localhost">>},
                                {password,<<"witcher_s">>},
                                {transport,escalus_ws},
                                {ssl,true},
                                {port,5285},
                                {wspath,<<"/ws-xmpp">>}]},
                     {hacker,[{username,<<"hacker">>},
                              {server,<<"localhost">>},
                              {password,<<"bringdowntheserver">>},
                              {compression,<<"zlib">>},
                              {port,5223}]},
                     {admin,[{username,<<"admin">>},
                             {server,<<"localhost">>},
                             {password,<<"bruce_almighty">>}]},
                     {secure_joe,[{username,<<"secure_joe">>},
                                  {server,<<"localhost">>},
                                  {password,<<"break_me">>},
                                  {compression,<<"zlib">>},
                                  {starttls,required}]},
                     {astrid,[{username,<<"astrid">>},
                              {server,<<"sogndal">>},
                              {host,<<"localhost">>},
                              {password,<<"doctor">>}]},
                     {alice2,[{username,<<"alice">>},
                              {server,<<"fed1">>},
                              {host,<<"localhost">>},
                              {port,5242},
                              {password,<<"makota2">>}]},
                     {bob2,[{username,<<"bob">>},
                            {server,<<109,105,99,104,97,197,130>>},
                            {host,<<"localhost">>},
                            {port,5242},
                            {password,<<"makota3">>}]},
                     {clusterguy,[{username,<<"clusterguy">>},
                                  {server,<<"localhost">>},
                                  {host,<<"localhost">>},
                                  {password,<<"distributionftw">>},
                                  {port,5232}]},
                     {clusterbuddy,[{username,<<"clusterbuddy">>},
                                    {server,<<"localhost">>},
                                    {host,<<"localhost">>},
                                    {password,<<"wasssssssup">>},
                                    {port,5232}]},
                     {eve,[{username,<<"eve">>},
                           {server,<<"localhost">>},
                           {password,<<"password">>},
                           {port,5252}]},
                     {neustradamus,[{username,<<"neustradamus">>},
                                    {server,<<"localhost">>},
                                    {host,<<"localhost">>},
                                    {password,<<"scramshaplus">>},
                                    {starttls,required},
                                    {tls_module,fast_tls}]},
                     {alice3,[{username,<<"alice">>},
                              {server,<<"example.com">>},
                              {host,<<"localhost">>},
                              {password,<<"makota2">>}]},
                     {bob3,[{username,<<"bob">>},
                            {server,<<"example.org">>},
                            {host,<<"localhost">>},
                            {password,<<"makota3">>},
                            {port,5232}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55"

=== Started at 2022-03-07 16:10:57


*** CT 2022-03-07 16:10:57.182 *** View log from node mongooseim@localhost when started mongooseim@localhost_5346.html
*** CT 2022-03-07 16:10:57.185 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_1939.html

*** User 2022-03-07 16:10:57.231 ***
alicE_server_enables_sm_before_session_2336@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:10:57.232 ***
alicE_server_enables_sm_before_session_2336@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='71acb279b57b2d3d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:10:57.232 ***
alicE_server_enables_sm_before_session_2336@localhost in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-07 16:10:57.232 ***
alicE_server_enables_sm_before_session_2336@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlcnZlcl9lbmFibGVzX3NtX2JlZm9yZV9zZXNzaW9uXzIzMzYAbWF0eWdyeXNh</auth>



*** User 2022-03-07 16:10:57.233 ***
alicE_server_enables_sm_before_session_2336@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:10:57.233 ***
alicE_server_enables_sm_before_session_2336@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-07 16:10:57.233 ***
alicE_server_enables_sm_before_session_2336@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd85bd7bd7b27641' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:10:57.233 ***
alicE_server_enables_sm_before_session_2336@localhost in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-03-07 16:10:57.233 ***
alicE_server_enables_sm_before_session_2336@localhost out
<iq type='set' id='02a9812170c1c298de13db78bf0f64b7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2022-03-07 16:10:57.234 ***
alicE_server_enables_sm_before_session_2336@localhost in
<iq id='02a9812170c1c298de13db78bf0f64b7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_server_enables_sm_before_session_2336@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2022-03-07 16:10:57.234 ***
alicE_server_enables_sm_before_session_2336@localhost/escalus-default-resource out
<enable xmlns='urn:xmpp:sm:3'/>



*** User 2022-03-07 16:10:57.234 ***
alicE_server_enables_sm_before_session_2336@localhost/escalus-default-resource in
<enabled xmlns='urn:xmpp:sm:3'/>


*** CT 2022-03-07 16:10:57.362 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_1939.html
*** CT 2022-03-07 16:10:57.363 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5346.html



=== Ended at 2022-03-07 16:10:57
=== successfully completed test case
=== === Returned value: {client,
                        <<"alicE_server_enables_sm_before_session_2336@localhost/escalus-default-resource">>,
                        escalus_tcp,<0.18247.2>,undefined,
                        [{username,
                             <<"alicE_server_enables_sm_before_session_2336">>},
                         {server,<<"localhost">>},
                         {password,<<"matygrysa">>},
                         {stream_management,true},
                         {host,<<"localhost">>},
                         {stream_id,<<"dd85bd7bd7b27641">>},
                         {resource,<<"escalus-default-resource">>}]}