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

=== Config value:

    [{watchdog,<0.7067.1>},
     {preset,"ldap_mnesia"},
     {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@6316c584aa9e.2024-04-10_12.44.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.53.26/muc_http_api_suite.invite_online_user_to_room.80002.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@6316c584aa9e.2024-04-10_12.44.10/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-10_12.53.26/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@6316c584aa9e.2024-04-10_12.44.10"

=== Started at 2024-04-10 12:53:26


*** CT 2024-04-10 12:53:26.249 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4021.html

*** User 2024-04-10 12:53:26.258 ***🔗
alicE_invite_online_user_to_room_1343@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-04-10 12:53:26.259 ***🔗
alicE_invite_online_user_to_room_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='600e59369f04a33d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:53:26.259 ***🔗
alicE_invite_online_user_to_room_1343@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-10 12:53:26.259 ***🔗
alicE_invite_online_user_to_room_1343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzEzNDMAbWF0eWdyeXNh</auth>



*** User 2024-04-10 12:53:26.260 ***🔗
alicE_invite_online_user_to_room_1343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:53:26.260 ***🔗
alicE_invite_online_user_to_room_1343@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-04-10 12:53:26.260 ***🔗
alicE_invite_online_user_to_room_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='798f257fdedec86d' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_1343@localhost'>

*** User 2024-04-10 12:53:26.260 ***🔗
alicE_invite_online_user_to_room_1343@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-04-10 12:53:26.260 ***🔗
alicE_invite_online_user_to_room_1343@localhost/res1 out
<iq type='set' id='b79aa15e9b8b3c29d3e20a9a75e0946e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:53:26.260 ***🔗
alicE_invite_online_user_to_room_1343@localhost/res1 in
<iq id='b79aa15e9b8b3c29d3e20a9a75e0946e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_invite_online_user_to_room_1343@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:53:26.261 ***🔗
alice_invite_online_user_to_room_1343@localhost/res1 out
<iq type='set' id='519caa6a742425c734ae4adbdfda0282'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:53:26.261 ***🔗
alice_invite_online_user_to_room_1343@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_1343@localhost/res1' id='519caa6a742425c734ae4adbdfda0282' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:53:26.261 ***🔗
alice_invite_online_user_to_room_1343@localhost/res1 out
<presence/>



*** User 2024-04-10 12:53:26.262 ***🔗
alice_invite_online_user_to_room_1343@localhost/res1 in
<presence from='alice_invite_online_user_to_room_1343@localhost/res1' to='alice_invite_online_user_to_room_1343@localhost/res1'/>



*** User 2024-04-10 12:53:26.262 ***🔗
bOb_invite_online_user_to_room_1343@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-04-10 12:53:26.262 ***🔗
bOb_invite_online_user_to_room_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3a29d752f241754' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:53:26.262 ***🔗
bOb_invite_online_user_to_room_1343@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>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-10 12:53:26.262 ***🔗
bOb_invite_online_user_to_room_1343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8xMzQzAG1ha3JvbGlrYQ==</auth>



*** User 2024-04-10 12:53:26.263 ***🔗
bOb_invite_online_user_to_room_1343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:53:26.264 ***🔗
bOb_invite_online_user_to_room_1343@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-04-10 12:53:26.264 ***🔗
bOb_invite_online_user_to_room_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='66875a34128ca859' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_1343@localhost'>

*** User 2024-04-10 12:53:26.264 ***🔗
bOb_invite_online_user_to_room_1343@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-04-10 12:53:26.264 ***🔗
bOb_invite_online_user_to_room_1343@localhost/res1 out
<iq type='set' id='f6b4d05dab23c953f11aa7b42e57afd7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:53:26.264 ***🔗
bOb_invite_online_user_to_room_1343@localhost/res1 in
<iq id='f6b4d05dab23c953f11aa7b42e57afd7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_invite_online_user_to_room_1343@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:53:26.264 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 out
<iq type='set' id='8a61130e1f0a0df7d958fc9d9938390e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:53:26.265 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_1343@localhost/res1' id='8a61130e1f0a0df7d958fc9d9938390e' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:53:26.265 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 out
<presence/>



*** User 2024-04-10 12:53:26.265 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 in
<presence from='bob_invite_online_user_to_room_1343@localhost/res1' to='bob_invite_online_user_to_room_1343@localhost/res1'/>



*** User 2024-04-10 12:53:26.267 ***🔗
REST request fails:
Code: 404
Req: {<0.7126.1>,<<"/api/mucs/localhost/wonderland-6.250094/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9177d5ced3f4eb7d">>}],
      <<"{\"sender\":\"alice_invite_online_user_to_room_1343@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1343@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:53:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,549}
Params: #{body =>
              <<"{\"sender\":\"alice_invite_online_user_to_room_1343@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1343@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-6.250094/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:53:26.269 ***🔗
REST request:
Code: 201
Req: {<0.7130.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a4e5a28ea74b5703">>}],
      <<"{\"owner\":\"alice_invite_online_user_to_room_1343@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-6.250094\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-6.250094">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:53:26 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"19">>}],
         <<"wonderland-6.250094">>,213,1157}
Params: #{body =>
              <<"{\"owner\":\"alice_invite_online_user_to_room_1343@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-6.250094\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:53:26.270 ***🔗
REST request:
Code: 204
Req: {<0.7136.1>,<<"/api/mucs/localhost/wonderland-6.250094/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4f4ac1d2ad483990">>}],
      <<"{\"sender\":\"alice_invite_online_user_to_room_1343@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1343@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:53:26 GMT">>}],
         <<>>,80,424}
Params: #{body =>
              <<"{\"sender\":\"alice_invite_online_user_to_room_1343@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1343@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-6.250094/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-04-10 12:53:26.270 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 in
<message from='alice_invite_online_user_to_room_1343@localhost' to='bob_invite_online_user_to_room_1343@localhost'>
	<x xmlns='jabber:x:conference' jid='wonderland-6.250094@muc.localhost' reason="I think you'll like this room!"/>
</message>



*** User 2024-04-10 12:53:26.270 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:53:26.271 ***🔗
bob_invite_online_user_to_room_1343@localhost/res1 in
</stream:stream>

*** User 2024-04-10 12:53:26.271 ***🔗
alice_invite_online_user_to_room_1343@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:53:26.271 ***🔗
alice_invite_online_user_to_room_1343@localhost/res1 in
</stream:stream>
*** CT 2024-04-10 12:53:26.273 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4021.html



=== Ended at 2024-04-10 12:53:26
=== successfully completed test case
=== === Returned value: ok