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

=== Config value:

    [{watchdog,<0.10314.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
     {preset,"riak_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.muc_http_api_SUITE.logs/run.2022-06-22_08.54.42/muc_http_api_suite.invite_online_user_to_room.67970.html"},
     {tc_group_properties,[{name,positive},{repeat_until_all_ok,3},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@838f153dfbc9.2022-06-22_08.43.58/big_tests.tests.muc_http_api_SUITE.logs/run.2022-06-22_08.54.42/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@838f153dfbc9.2022-06-22_08.43.58"

=== Started at 2022-06-22 08:54:42


*** CT 2022-06-22 08:54:42.987 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4266.html
*** CT 2022-06-22 08:54:42.988 *** View log from node ejabberd2@localhost when started🔗 ejabberd2@localhost_1960.html

*** User 2022-06-22 08:54:43.000 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-06-22 08:54:43.001 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cbe61fe9d050c12' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:54:43.001 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 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-06-22 08:54:43.001 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzEzMjEAbWF0eWdyeXNh</auth>



*** User 2022-06-22 08:54:43.008 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:54:43.008 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-06-22 08:54:43.056 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a564e0d46eeaf86d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:54:43.056 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 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-06-22 08:54:43.057 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 out
<iq type='set' id='21496374e04ac96417365feffdedd05d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:54:43.057 ***🔗
alicE_invite_online_user_to_room_1321@localhost/res1 in
<iq id='21496374e04ac96417365feffdedd05d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_invite_online_user_to_room_1321@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:54:43.057 ***🔗
alice_invite_online_user_to_room_1321@localhost/res1 out
<iq type='set' id='f0fcd5af6b80b5638dc72263d2485049'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:54:43.057 ***🔗
alice_invite_online_user_to_room_1321@localhost/res1 in
<iq type='result' id='f0fcd5af6b80b5638dc72263d2485049'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:54:43.058 ***🔗
alice_invite_online_user_to_room_1321@localhost/res1 out
<presence/>



*** User 2022-06-22 08:54:43.060 ***🔗
alice_invite_online_user_to_room_1321@localhost/res1 in
<presence from='alice_invite_online_user_to_room_1321@localhost/res1' to='alice_invite_online_user_to_room_1321@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:54:43.061 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-06-22 08:54:43.061 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d44c15ba9936e3a6' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:54:43.061 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 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-06-22 08:54:43.061 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8xMzIxAG1ha3JvbGlrYQ==</auth>



*** User 2022-06-22 08:54:43.067 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-06-22 08:54:43.067 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-06-22 08:54:43.067 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01835706cc0e6994' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-06-22 08:54:43.068 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 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-06-22 08:54:43.068 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 out
<iq type='set' id='6ea152b5aad31e94b911392e75735699'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-06-22 08:54:43.068 ***🔗
bOb_invite_online_user_to_room_1321@localhost/res1 in
<iq id='6ea152b5aad31e94b911392e75735699' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_invite_online_user_to_room_1321@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-06-22 08:54:43.068 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 out
<iq type='set' id='a2949ba92b72b03e477c5350277a3b00'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:54:43.069 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 in
<iq type='result' id='a2949ba92b72b03e477c5350277a3b00'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-06-22 08:54:43.069 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 out
<presence/>



*** User 2022-06-22 08:54:43.070 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 in
<presence from='bob_invite_online_user_to_room_1321@localhost/res1' to='bob_invite_online_user_to_room_1321@localhost/res1' xml:lang='en'/>



*** User 2022-06-22 08:54:43.072 ***🔗
REST request fails:
Code: 404
Req: {<0.10385.1>,<<"/api/mucs/localhost/wonderland-82.988273/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a77087d6c8516b77">>}],
      <<"{\"sender\":\"alice_invite_online_user_to_room_1321@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1321@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:54:42 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"14">>}],
         <<"Room not found">>,145,790}
Params: #{body =>
              <<"{\"sender\":\"alice_invite_online_user_to_room_1321@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1321@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-82.988273/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:54:43.075 ***🔗
REST request:
Code: 201
Req: {<0.10389.1>,<<"/api/mucs/localhost">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ddd91e83f953cdfa">>}],
      <<"{\"owner\":\"alice_invite_online_user_to_room_1321@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-82.988273\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/localhost/wonderland-82.988273">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:54:42 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-82.988273">>,222,1977}
Params: #{body =>
              <<"{\"owner\":\"alice_invite_online_user_to_room_1321@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-82.988273\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:54:43.077 ***🔗
REST request:
Code: 204
Req: {<0.10393.1>,<<"/api/mucs/localhost/wonderland-82.988273/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c208ecfeaef41be5">>}],
      <<"{\"sender\":\"alice_invite_online_user_to_room_1321@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1321@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:54:42 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,862}
Params: #{body =>
              <<"{\"sender\":\"alice_invite_online_user_to_room_1321@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1321@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-82.988273/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:54:43.077 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 in
<message from='alice_invite_online_user_to_room_1321@localhost' to='bob_invite_online_user_to_room_1321@localhost'>
	<x xmlns='jabber:x:conference' jid='wonderland-82.988273@muc.localhost' reason="I think you'll like this room!"/>
</message>



*** User 2022-06-22 08:54:43.078 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:54:43.078 ***🔗
bob_invite_online_user_to_room_1321@localhost/res1 in
</stream:stream>

*** User 2022-06-22 08:54:43.078 ***🔗
alice_invite_online_user_to_room_1321@localhost/res1 out
</stream:stream>

*** User 2022-06-22 08:54:43.078 ***🔗
alice_invite_online_user_to_room_1321@localhost/res1 in
</stream:stream>
*** CT 2022-06-22 08:54:43.085 *** View log from node ejabberd2@localhost when finished🔗 ejabberd2@localhost_1960.html
*** CT 2022-06-22 08:54:43.157 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4267.html



=== Ended at 2022-06-22 08:54:43
=== successfully completed test case
=== === Returned value: ok