=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.74402.0>},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.07/muc_http_api_suite.invite_online_user_to_room.156035.html"},
     {tc_group_properties,[{name,positive},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_http_api_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.07/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f2e0a288de76.2024-03-21_07.46.09"

=== Started at 2024-03-21 07:59:07


*** CT 2024-03-21 07:59:07.956 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5445.html

*** User 2024-03-21 07:59:07.968 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.969 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1aa0244b06b91463' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:59:07.969 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.969 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI4MDcAbWF0eWdyeXNh</auth>



*** User 2024-03-21 07:59:07.970 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:59:07.970 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.970 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0dbf45221b126cc4' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2807@localhost'>

*** User 2024-03-21 07:59:07.970 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.970 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 out
<iq type='set' id='b845f9aaf970a285693e6c4920fa9ed4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.970 ***🔗
alicE_invite_online_user_to_room_2807@localhost/res1 in
<iq id='b845f9aaf970a285693e6c4920fa9ed4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_invite_online_user_to_room_2807@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.971 ***🔗
alice_invite_online_user_to_room_2807@localhost/res1 out
<iq type='set' id='1930e9b563ad250cf1c20fcc5f67af97'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.971 ***🔗
alice_invite_online_user_to_room_2807@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_2807@localhost/res1' id='1930e9b563ad250cf1c20fcc5f67af97' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.971 ***🔗
alice_invite_online_user_to_room_2807@localhost/res1 out
<presence/>



*** User 2024-03-21 07:59:07.972 ***🔗
alice_invite_online_user_to_room_2807@localhost/res1 in
<presence from='alice_invite_online_user_to_room_2807@localhost/res1' to='alice_invite_online_user_to_room_2807@localhost/res1'/>



*** User 2024-03-21 07:59:07.973 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.973 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='38d4593ba199d996' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:59:07.973 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.973 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yODA3AG1ha3JvbGlrYQ==</auth>



*** User 2024-03-21 07:59:07.974 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:59:07.974 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.974 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f7e7f30bb9b66673' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2807@localhost'>

*** User 2024-03-21 07:59:07.975 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.975 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 out
<iq type='set' id='d132e070b7edc1178a3a84f77994fe52'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.975 ***🔗
bOb_invite_online_user_to_room_2807@localhost/res1 in
<iq id='d132e070b7edc1178a3a84f77994fe52' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_invite_online_user_to_room_2807@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.975 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 out
<iq type='set' id='133d4ab43bacd02a82dd84bbce219844'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.976 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_2807@localhost/res1' id='133d4ab43bacd02a82dd84bbce219844' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.976 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 out
<presence/>



*** User 2024-03-21 07:59:07.977 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 in
<presence from='bob_invite_online_user_to_room_2807@localhost/res1' to='bob_invite_online_user_to_room_2807@localhost/res1'/>



*** User 2024-03-21 07:59:07.979 ***🔗
REST request fails:
Code: 404
Req: {<0.74459.0>,<<"/api/mucs/localhost/wonderland-47.957040/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e6fe1b52ba59f1e0">>}],
      <<"{\"recipient\":\"bob_invite_online_user_to_room_2807@localhost\",\"sender\":\"alice_invite_online_user_to_room_2807@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:07 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,575}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.957040/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bob_invite_online_user_to_room_2807@localhost\",\"sender\":\"alice_invite_online_user_to_room_2807@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:07.983 ***🔗
REST request:
Code: 201
Req: {<0.74462.0>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4a4eb3cb4e9c6fb1">>}],
      <<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2807@localhost\",\"name\":\"wonderland-47.957040\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-47.957040">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:07 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-47.957040">>,215,2913}
Params: #{path => <<"/api/mucs/localhost">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2807@localhost\",\"name\":\"wonderland-47.957040\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:07.985 ***🔗
REST request:
Code: 204
Req: {<0.74466.0>,<<"/api/mucs/localhost/wonderland-47.957040/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e80001cb111ff716">>}],
      <<"{\"recipient\":\"bob_invite_online_user_to_room_2807@localhost\",\"sender\":\"alice_invite_online_user_to_room_2807@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:07 GMT">>}],
         <<>>,80,602}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.957040/participants">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"recipient\":\"bob_invite_online_user_to_room_2807@localhost\",\"sender\":\"alice_invite_online_user_to_room_2807@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:07.985 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 in
<message from='alice_invite_online_user_to_room_2807@localhost' to='bob_invite_online_user_to_room_2807@localhost'>
	<x xmlns='jabber:x:conference' jid='wonderland-47.957040@muc.localhost' reason="I think you'll like this room!"/>
</message>



*** User 2024-03-21 07:59:07.985 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:59:07.985 ***🔗
bob_invite_online_user_to_room_2807@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:59:07.985 ***🔗
alice_invite_online_user_to_room_2807@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:59:07.986 ***🔗
alice_invite_online_user_to_room_2807@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:59:07.989 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5446.html



=== Ended at 2024-03-21 07:59:08
=== successfully completed test case
=== === Returned value: ok