=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.8480.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@8dd706b7fd53.2022-05-18_09.59.49/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-18_10.10.17/muc_http_api_suite.failed_invites.62594.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@8dd706b7fd53.2022-05-18_09.59.49/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-18_10.10.17/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@8dd706b7fd53.2022-05-18_09.59.49"
=== Started at 2022-05-18 10:10:22
*** User 2022-05-18 10:10:22.472 ***
alicE_failed_invites_1187@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-05-18 10:10:22.473 ***
alicE_failed_invites_1187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10cf1ad57cd124b2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:10:22.473 ***
alicE_failed_invites_1187@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-05-18 10:10:22.473 ***
alicE_failed_invites_1187@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzExODcAbWF0eWdyeXNh</auth>
*** User 2022-05-18 10:10:22.474 ***
alicE_failed_invites_1187@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:10:22.474 ***
alicE_failed_invites_1187@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-05-18 10:10:22.475 ***
alicE_failed_invites_1187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='846cc019c65a7986' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:10:22.475 ***
alicE_failed_invites_1187@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-05-18 10:10:22.475 ***
alicE_failed_invites_1187@localhost/res1 out
<iq type='set' id='a6c0042e0f854d155681dba9d847c0d8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:10:22.475 ***
alicE_failed_invites_1187@localhost/res1 in
<iq id='a6c0042e0f854d155681dba9d847c0d8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_invites_1187@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:10:22.475 ***
alice_failed_invites_1187@localhost/res1 out
<iq type='set' id='0faf2cdac3b96658161b0f34d98adaf2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:10:22.475 ***
alice_failed_invites_1187@localhost/res1 in
<iq type='result' id='0faf2cdac3b96658161b0f34d98adaf2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:10:22.475 ***
alice_failed_invites_1187@localhost/res1 out
<presence/>
*** User 2022-05-18 10:10:22.477 ***
alice_failed_invites_1187@localhost/res1 in
<presence from='alice_failed_invites_1187@localhost/res1' to='alice_failed_invites_1187@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:10:22.477 ***
bOb_failed_invites_1187@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-05-18 10:10:22.478 ***
bOb_failed_invites_1187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a2d76b35712811ec' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:10:22.478 ***
bOb_failed_invites_1187@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-05-18 10:10:22.478 ***
bOb_failed_invites_1187@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xMTg3AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-18 10:10:22.479 ***
bOb_failed_invites_1187@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:10:22.479 ***
bOb_failed_invites_1187@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-05-18 10:10:22.479 ***
bOb_failed_invites_1187@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a5cdf7e5dfae3283' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:10:22.479 ***
bOb_failed_invites_1187@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-05-18 10:10:22.479 ***
bOb_failed_invites_1187@localhost/res1 out
<iq type='set' id='dbef3d3314b3d81cd89b9298e58e404b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:10:22.480 ***
bOb_failed_invites_1187@localhost/res1 in
<iq id='dbef3d3314b3d81cd89b9298e58e404b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_invites_1187@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:10:22.480 ***
bob_failed_invites_1187@localhost/res1 out
<iq type='set' id='cdaf4209ee95c66256723ef91c1b37ba'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:10:22.480 ***
bob_failed_invites_1187@localhost/res1 in
<iq type='result' id='cdaf4209ee95c66256723ef91c1b37ba'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:10:22.480 ***
bob_failed_invites_1187@localhost/res1 out
<presence/>
*** User 2022-05-18 10:10:22.482 ***
bob_failed_invites_1187@localhost/res1 in
<presence from='bob_failed_invites_1187@localhost/res1' to='bob_failed_invites_1187@localhost/res1' xml:lang='en'/>
*** User 2022-05-18 10:10:22.485 ***
REST request:
Code: 201
Req: {<0.8509.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1d8200ac2d8c8ca5">>}],
<<"{\"owner\":\"alice_failed_invites_1187@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-22.466914\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-22.466914">>},
{<<"date">>,<<"Wed, 18 May 2022 10:10:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-22.466914">>,222,2015}
Params: #{body =>
<<"{\"owner\":\"alice_failed_invites_1187@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-22.466914\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:10:22.486 ***
REST request fails:
Code: 404
Req: {<0.8511.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ddb0d1e4b6a625f">>}],
<<"{\"sender\":\"alice_failed_invites_1187@localhost\",\"recipient\":\"bob_failed_invites_1187@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:10:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,568}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1187@localhost\",\"recipient\":\"bob_failed_invites_1187@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-05-18 10:10:22.488 ***
REST request fails:
Code: 400
Req: {<0.8515.1>,<<"/api/mucs/localhost/wonderland-22.466914/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"da38ade2a201b113">>}],
<<"{\"sender\":\"alice_failed_invites_1187@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:10:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,601}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1187@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-22.466914/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:10:22.489 ***
REST request fails:
Code: 400
Req: {<0.8521.1>,<<"/api/mucs/localhost/wonderland-22.466914/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a64441f0c3418e81">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1187@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:10:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,638}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1187@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-22.466914/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:10:22.489 ***
bob_failed_invites_1187@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:10:22.489 ***
bob_failed_invites_1187@localhost/res1 in
</stream:stream>
*** User 2022-05-18 10:10:22.490 ***
alice_failed_invites_1187@localhost/res1 out
</stream:stream>
*** User 2022-05-18 10:10:22.490 ***
alice_failed_invites_1187@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-18 10:10:22
=== successfully completed test case
=== === Returned value: ok