=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.29656.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-04_11.24.57/muc_http_api_suite.failed_invites.100739.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@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-04_11.24.57/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@43f5552376e6.2022-03-04_11.16.18"
=== Started at 2022-03-04 11:25:02
*** User 2022-03-04 11:25:02.842 ***
alicE_failed_invites_1659@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-03-04 11:25:02.843 ***
alicE_failed_invites_1659@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30f6a5f6a0c00e0c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:02.843 ***
alicE_failed_invites_1659@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-03-04 11:25:02.843 ***
alicE_failed_invites_1659@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE2NTkAbWF0eWdyeXNh</auth>
*** User 2022-03-04 11:25:02.844 ***
alicE_failed_invites_1659@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:02.844 ***
alicE_failed_invites_1659@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-03-04 11:25:02.844 ***
alicE_failed_invites_1659@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2dce7f1602c9a8f7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:02.845 ***
alicE_failed_invites_1659@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-03-04 11:25:02.845 ***
alicE_failed_invites_1659@localhost/res1 out
<iq type='set' id='5044f891b6a402f4d25455809d03f30d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:02.845 ***
alicE_failed_invites_1659@localhost/res1 in
<iq id='5044f891b6a402f4d25455809d03f30d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_1659@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:02.845 ***
alicE_failed_invites_1659@localhost/res1 out
<iq type='set' id='ad19f69b297e0d1175bf2336186e275d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:02.845 ***
alicE_failed_invites_1659@localhost/res1 in
<iq type='result' id='ad19f69b297e0d1175bf2336186e275d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:02.845 ***
alicE_failed_invites_1659@localhost/res1 out
<presence/>
*** User 2022-03-04 11:25:02.846 ***
alicE_failed_invites_1659@localhost/res1 in
<presence from='alicE_failed_invites_1659@localhost/res1' to='alice_failed_invites_1659@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:02.847 ***
bOb_failed_invites_1659@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-03-04 11:25:02.847 ***
bOb_failed_invites_1659@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d2d825f2efdad4b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:02.848 ***
bOb_failed_invites_1659@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-03-04 11:25:02.848 ***
bOb_failed_invites_1659@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xNjU5AG1ha3JvbGlrYQ==</auth>
*** User 2022-03-04 11:25:02.848 ***
bOb_failed_invites_1659@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:02.848 ***
bOb_failed_invites_1659@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-03-04 11:25:02.849 ***
bOb_failed_invites_1659@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56a5735b3d8249b5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:02.849 ***
bOb_failed_invites_1659@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-03-04 11:25:02.849 ***
bOb_failed_invites_1659@localhost/res1 out
<iq type='set' id='874c67dbf72ba0798cdf9531d5953d83'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:02.849 ***
bOb_failed_invites_1659@localhost/res1 in
<iq id='874c67dbf72ba0798cdf9531d5953d83' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_1659@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:02.849 ***
bOb_failed_invites_1659@localhost/res1 out
<iq type='set' id='7264148e07903a666d9945c30521b030'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:02.849 ***
bOb_failed_invites_1659@localhost/res1 in
<iq type='result' id='7264148e07903a666d9945c30521b030'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:02.850 ***
bOb_failed_invites_1659@localhost/res1 out
<presence/>
*** User 2022-03-04 11:25:02.850 ***
bOb_failed_invites_1659@localhost/res1 in
<presence from='bOb_failed_invites_1659@localhost/res1' to='bob_failed_invites_1659@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:02.853 ***
REST request:
Code: 201
Req: {<0.29683.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c8df043fe40c74e1">>}],
<<"{\"owner\":\"alicE_failed_invites_1659@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-2.836521\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-2.836521">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-2.836521">>,220,1772}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_1659@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-2.836521\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:02.855 ***
REST request fails:
Code: 404
Req: {<0.29689.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"227a395612004da8">>}],
<<"{\"sender\":\"alicE_failed_invites_1659@localhost\",\"recipient\":\"bOb_failed_invites_1659@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,836}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1659@localhost\",\"recipient\":\"bOb_failed_invites_1659@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-03-04 11:25:02.857 ***
REST request fails:
Code: 400
Req: {<0.29693.1>,<<"/api/mucs/localhost/wonderland-2.836521/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e00ed49e15be4e4">>}],
<<"{\"sender\":\"alicE_failed_invites_1659@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1040}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1659@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-2.836521/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:02.859 ***
REST request fails:
Code: 400
Req: {<0.29697.1>,<<"/api/mucs/localhost/wonderland-2.836521/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c99fdbb349f848c1">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1659@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:02 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,872}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1659@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-2.836521/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:02.859 ***
bOb_failed_invites_1659@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:25:02.859 ***
bOb_failed_invites_1659@localhost/res1 in
</stream:stream>
*** User 2022-03-04 11:25:02.859 ***
alicE_failed_invites_1659@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:25:02.860 ***
alicE_failed_invites_1659@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:02
=== successfully completed test case
=== === Returned value: ok