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

=== Config value:

    [{watchdog,<0.10442.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.failed_invites.68482.html"},
     {tc_group_properties,[{name,negative},{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:48


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

*** User 2022-06-22 08:54:48.286 ***🔗
alicE_failed_invites_1324@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:48.286 ***🔗
alicE_failed_invites_1324@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='812bcde1866dc5d6' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-06-22 08:54:48.290 ***🔗
alicE_failed_invites_1324@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:48.290 ***🔗
alicE_failed_invites_1324@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b09df747d91fb06' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-06-22 08:54:48.291 ***🔗
alicE_failed_invites_1324@localhost/res1 in
<iq id='e4b3c5540c76ac2e27fa74beaa31ba4b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_failed_invites_1324@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



*** User 2022-06-22 08:54:48.294 ***🔗
bOb_failed_invites_1324@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:48.294 ***🔗
bOb_failed_invites_1324@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ed5b432f1c04789' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2022-06-22 08:54:48.296 ***🔗
bOb_failed_invites_1324@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:48.296 ***🔗
bOb_failed_invites_1324@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8aafcc61bb717a7' from='localhost' version='1.0' xml:lang='en'>

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



*** User 2022-06-22 08:54:48.296 ***🔗
bOb_failed_invites_1324@localhost/res1 in
<iq id='28ea98115dcefa1ed8430538b90ed6eb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_failed_invites_1324@localhost/res1</jid>
	</bind>
</iq>



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



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



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



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



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


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


*** User 2022-06-22 08:54:48.305 ***🔗
REST request fails:
Code: 400
Req: {<0.10477.1>,<<"/api/mucs/localhost/wonderland-88.276912/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"36ecaa6b059dbd86">>}],
      <<"{\"sender\":\"alice_failed_invites_1324@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:54:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"Invalid jid: <<\"@badjid\">>">>,159,768}
Params: #{body =>
              <<"{\"sender\":\"alice_failed_invites_1324@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-88.276912/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-06-22 08:54:48.306 ***🔗
REST request fails:
Code: 400
Req: {<0.10481.1>,<<"/api/mucs/localhost/wonderland-88.276912/participants">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8dee34c0b4c6046a">>}],
      <<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1324@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 22 Jun 2022 08:54:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"Invalid jid: <<\"@badjid\">>">>,159,575}
Params: #{body =>
              <<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1324@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
          method => <<"POST">>,
          path => <<"/api/mucs/localhost/wonderland-88.276912/participants">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


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

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

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

*** User 2022-06-22 08:54:48.307 ***🔗
alice_failed_invites_1324@localhost/res1 in
</stream:stream>
*** CT 2022-06-22 08:54:48.359 *** View log from node ejabberd2@localhost when finished🔗 ejabberd2@localhost_1960.html
*** CT 2022-06-22 08:54:48.360 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4268.html



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