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

=== Config value:

    [{watchdog,<0.32153.1>},
     {preset,"pgsql_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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.20.49/muc_http_api_suite.invite_online_user_to_room.132995.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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.20.49/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a557e8d70b1c.2023-11-17_15.09.37"

=== Started at 2023-11-17 15:20:49


*** CT 2023-11-17 15:20:49.771 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2511.html

*** User 2023-11-17 15:20:49.782 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:20:49.783 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='610df4c367349cec' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:20:49.783 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/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 2023-11-17 15:20:49.783 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI2MTEAbWF0eWdyeXNh</auth>



*** User 2023-11-17 15:20:49.785 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:20:49.785 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:20:49.786 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f6dab06b741c98ed' from='domain.example.com' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2611@domain.example.com'>

*** User 2023-11-17 15:20:49.786 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/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 2023-11-17 15:20:49.786 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 out
<iq type='set' id='7631af2ad2f1e6fd8efe96270af7149c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:20:49.786 ***🔗
alicE_invite_online_user_to_room_2611@domain.example.com/res1 in
<iq id='7631af2ad2f1e6fd8efe96270af7149c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_invite_online_user_to_room_2611@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:20:49.787 ***🔗
alice_invite_online_user_to_room_2611@domain.example.com/res1 out
<iq type='set' id='9065feef212a8f783e819ace15573cb1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:20:49.787 ***🔗
alice_invite_online_user_to_room_2611@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_invite_online_user_to_room_2611@domain.example.com/res1' id='9065feef212a8f783e819ace15573cb1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:20:49.787 ***🔗
alice_invite_online_user_to_room_2611@domain.example.com/res1 out
<presence/>



*** User 2023-11-17 15:20:49.789 ***🔗
alice_invite_online_user_to_room_2611@domain.example.com/res1 in
<presence from='alice_invite_online_user_to_room_2611@domain.example.com/res1' to='alice_invite_online_user_to_room_2611@domain.example.com/res1'/>



*** User 2023-11-17 15:20:49.789 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:20:49.790 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01f76ae382df894b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-17 15:20:49.790 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/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 2023-11-17 15:20:49.790 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yNjExAG1ha3JvbGlrYQ==</auth>



*** User 2023-11-17 15:20:49.792 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-17 15:20:49.792 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-17 15:20:49.793 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e257bfe9cd6a63e8' from='domain.example.com' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2611@domain.example.com'>

*** User 2023-11-17 15:20:49.793 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/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 2023-11-17 15:20:49.793 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 out
<iq type='set' id='04c2e63f34f4e3d2cf12b0b289d2f3fd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-17 15:20:49.793 ***🔗
bOb_invite_online_user_to_room_2611@domain.example.com/res1 in
<iq id='04c2e63f34f4e3d2cf12b0b289d2f3fd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_invite_online_user_to_room_2611@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-17 15:20:49.794 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 out
<iq type='set' id='211595198c21f59ff51e80b5d76e524a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:20:49.794 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_invite_online_user_to_room_2611@domain.example.com/res1' id='211595198c21f59ff51e80b5d76e524a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-17 15:20:49.794 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 out
<presence/>



*** User 2023-11-17 15:20:49.795 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 in
<presence from='bob_invite_online_user_to_room_2611@domain.example.com/res1' to='bob_invite_online_user_to_room_2611@domain.example.com/res1'/>



*** User 2023-11-17 15:20:49.797 ***🔗
REST request fails:
Code: 404
Req: {<0.32212.1>,
      <<"/api/mucs/domain.example.com/wonderland-49.771571/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca5b10ca949af89a">>}],
      <<"{\"sender\":\"alice_invite_online_user_to_room_2611@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2611@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:48 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"16">>}],
         <<"\"Room not found\"">>,140,784}
Params: #{body =>
              <<"{\"sender\":\"alice_invite_online_user_to_room_2611@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2611@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-49.771571/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:49.800 ***🔗
REST request:
Code: 201
Req: {<0.32215.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"445ca32ae9d0b718">>}],
      <<"{\"owner\":\"alice_invite_online_user_to_room_2611@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-49.771571\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-49.771571">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:48 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-49.771571">>,224,1482}
Params: #{body =>
              <<"{\"owner\":\"alice_invite_online_user_to_room_2611@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-49.771571\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:49.802 ***🔗
REST request:
Code: 204
Req: {<0.32220.1>,
      <<"/api/mucs/domain.example.com/wonderland-49.771571/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a039e0d2e7161b78">>}],
      <<"{\"sender\":\"alice_invite_online_user_to_room_2611@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2611@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 17 Nov 2023 15:20:48 GMT">>}],
         <<>>,80,429}
Params: #{body =>
              <<"{\"sender\":\"alice_invite_online_user_to_room_2611@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2611@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-49.771571/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-17 15:20:49.802 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 in
<message from='alice_invite_online_user_to_room_2611@domain.example.com' to='bob_invite_online_user_to_room_2611@domain.example.com'>
	<x xmlns='jabber:x:conference' jid='wonderland-49.771571@groupchats.domain.example.com' reason="I think you'll like this room!"/>
</message>



*** User 2023-11-17 15:20:49.802 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-17 15:20:49.803 ***🔗
bob_invite_online_user_to_room_2611@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-17 15:20:49.803 ***🔗
alice_invite_online_user_to_room_2611@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-17 15:20:49.803 ***🔗
alice_invite_online_user_to_room_2611@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-17 15:20:49.807 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2512.html



=== Ended at 2023-11-17 15:20:49
=== successfully completed test case
=== === Returned value: ok