=== Test case: muc_http_api_SUITE:failed_messages/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_messages.68610.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
*** User 2022-06-22 08:54:48.286 ***🔗
alicE_failed_messages_1325@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_messages_1325@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1926587a2c6e46c4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:54:48.287 ***🔗
alicE_failed_messages_1325@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_messages_1325@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xMzI1AG1hdHlncnlzYQ==</auth>
*** User 2022-06-22 08:54:48.290 ***🔗
alicE_failed_messages_1325@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:54:48.290 ***🔗
alicE_failed_messages_1325@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_messages_1325@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ffd19f8a036939ec' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:54:48.290 ***🔗
alicE_failed_messages_1325@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_messages_1325@localhost/res1 out
<iq type='set' id='a3e6bd28d16fa884809aff82f8b3cca9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:54:48.291 ***🔗
alicE_failed_messages_1325@localhost/res1 in
<iq id='a3e6bd28d16fa884809aff82f8b3cca9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_messages_1325@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:54:48.291 ***🔗
alice_failed_messages_1325@localhost/res1 out
<iq type='set' id='39085d8bdddfcfc0f1f003b11cc3d002'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:54:48.291 ***🔗
alice_failed_messages_1325@localhost/res1 in
<iq type='result' id='39085d8bdddfcfc0f1f003b11cc3d002'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:54:48.291 ***🔗
alice_failed_messages_1325@localhost/res1 out
<presence/>
*** User 2022-06-22 08:54:48.293 ***🔗
alice_failed_messages_1325@localhost/res1 in
<presence from='alice_failed_messages_1325@localhost/res1' to='alice_failed_messages_1325@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:54:48.293 ***🔗
bOb_failed_messages_1325@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_messages_1325@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='70bd777f65aba43e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:54:48.294 ***🔗
bOb_failed_messages_1325@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_messages_1325@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTMyNQBtYWtyb2xpa2E=</auth>
*** User 2022-06-22 08:54:48.296 ***🔗
bOb_failed_messages_1325@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 08:54:48.296 ***🔗
bOb_failed_messages_1325@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_messages_1325@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec311a496b18b24b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 08:54:48.296 ***🔗
bOb_failed_messages_1325@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_messages_1325@localhost/res1 out
<iq type='set' id='2d6bec9e12c9e4cd239fa9701830e55d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 08:54:48.296 ***🔗
bOb_failed_messages_1325@localhost/res1 in
<iq id='2d6bec9e12c9e4cd239fa9701830e55d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_messages_1325@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 08:54:48.296 ***🔗
bob_failed_messages_1325@localhost/res1 out
<iq type='set' id='f6263e01917a69dbf4189c9e7c3985ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:54:48.297 ***🔗
bob_failed_messages_1325@localhost/res1 in
<iq type='result' id='f6263e01917a69dbf4189c9e7c3985ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 08:54:48.297 ***🔗
bob_failed_messages_1325@localhost/res1 out
<presence/>
*** User 2022-06-22 08:54:48.298 ***🔗
bob_failed_messages_1325@localhost/res1 in
<presence from='bob_failed_messages_1325@localhost/res1' to='bob_failed_messages_1325@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 08:54:48.301 ***🔗
REST request:
Code: 201
Req: {<0.10471.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc15c25b301891cb">>}],
<<"{\"owner\":\"alice_failed_messages_1325@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-88.278628\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-88.278628">>},
{<<"date">>,<<"Wed, 22 Jun 2022 08:54:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-88.278628">>,222,2005}
Params: #{body =>
<<"{\"owner\":\"alice_failed_messages_1325@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-88.278628\"}">>,
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.10473.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ef89a6e8fbd0ad0">>}],
<<"{\"sender\":\"alice_failed_messages_1325@localhost\",\"recipient\":\"bob_failed_messages_1325@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,832}
Params: #{body =>
<<"{\"sender\":\"alice_failed_messages_1325@localhost\",\"recipient\":\"bob_failed_messages_1325@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.10479.1>,<<"/api/mucs/localhost/wonderland-88.278628/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1906520cb021480b">>}],
<<"{\"sender\":\"alice_failed_messages_1325@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,766}
Params: #{body =>
<<"{\"sender\":\"alice_failed_messages_1325@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-88.278628/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.10483.1>,<<"/api/mucs/localhost/wonderland-88.278628/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2c2684b23f886ed">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_messages_1325@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,631}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_messages_1325@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-88.278628/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 08:54:48.307 ***🔗
bob_failed_messages_1325@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:54:48.307 ***🔗
bob_failed_messages_1325@localhost/res1 in
</stream:stream>
*** User 2022-06-22 08:54:48.307 ***🔗
alice_failed_messages_1325@localhost/res1 out
</stream:stream>
*** User 2022-06-22 08:54:48.307 ***🔗
alice_failed_messages_1325@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 08:54:48
=== successfully completed test case
=== === Returned value: ok