=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.29685.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"mysql_redis"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-07_16.06.34/muc_http_api_suite.failed_messages.107651.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@fac56f14d8cf.2022-03-07_15.57.55/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-07_16.06.34/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@fac56f14d8cf.2022-03-07_15.57.55"
=== Started at 2022-03-07 16:06:39
*** User 2022-03-07 16:06:39.417 ***
alicE_failed_messages_1859@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-07 16:06:39.417 ***
alicE_failed_messages_1859@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ae8ebd32af7c4ae' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:06:39.417 ***
alicE_failed_messages_1859@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-07 16:06:39.417 ***
alicE_failed_messages_1859@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xODU5AG1hdHlncnlzYQ==</auth>
*** User 2022-03-07 16:06:39.418 ***
alicE_failed_messages_1859@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-07 16:06:39.418 ***
alicE_failed_messages_1859@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-07 16:06:39.418 ***
alicE_failed_messages_1859@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d95814e7f0ee0d15' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:06:39.418 ***
alicE_failed_messages_1859@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-07 16:06:39.418 ***
alicE_failed_messages_1859@localhost/res1 out
<iq type='set' id='2ad45d8c0f584560b1f4664f89668f0c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-07 16:06:39.419 ***
alicE_failed_messages_1859@localhost/res1 in
<iq id='2ad45d8c0f584560b1f4664f89668f0c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_messages_1859@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-07 16:06:39.419 ***
alicE_failed_messages_1859@localhost/res1 out
<iq type='set' id='a4333e8a59c31058e1ead241bf4a099a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:06:39.419 ***
alicE_failed_messages_1859@localhost/res1 in
<iq type='result' id='a4333e8a59c31058e1ead241bf4a099a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:06:39.419 ***
alicE_failed_messages_1859@localhost/res1 out
<presence/>
*** User 2022-03-07 16:06:39.421 ***
alicE_failed_messages_1859@localhost/res1 in
<presence from='alicE_failed_messages_1859@localhost/res1' to='alice_failed_messages_1859@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:06:39.422 ***
bOb_failed_messages_1859@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-07 16:06:39.422 ***
bOb_failed_messages_1859@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d62f4e6b0ec094a4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:06:39.422 ***
bOb_failed_messages_1859@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-07 16:06:39.422 ***
bOb_failed_messages_1859@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTg1OQBtYWtyb2xpa2E=</auth>
*** User 2022-03-07 16:06:39.423 ***
bOb_failed_messages_1859@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-07 16:06:39.423 ***
bOb_failed_messages_1859@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-07 16:06:39.423 ***
bOb_failed_messages_1859@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90273278a84c96fc' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-07 16:06:39.423 ***
bOb_failed_messages_1859@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-07 16:06:39.423 ***
bOb_failed_messages_1859@localhost/res1 out
<iq type='set' id='30ff1d18d6cfb14b4e2e0980df1d2c96'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-07 16:06:39.423 ***
bOb_failed_messages_1859@localhost/res1 in
<iq id='30ff1d18d6cfb14b4e2e0980df1d2c96' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_messages_1859@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-07 16:06:39.424 ***
bOb_failed_messages_1859@localhost/res1 out
<iq type='set' id='2238bc5f071a868851a47fea6bbcf91d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:06:39.424 ***
bOb_failed_messages_1859@localhost/res1 in
<iq type='result' id='2238bc5f071a868851a47fea6bbcf91d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-07 16:06:39.424 ***
bOb_failed_messages_1859@localhost/res1 out
<presence/>
*** User 2022-03-07 16:06:39.426 ***
bOb_failed_messages_1859@localhost/res1 in
<presence from='bOb_failed_messages_1859@localhost/res1' to='bob_failed_messages_1859@localhost/res1' xml:lang='en'/>
*** User 2022-03-07 16:06:39.430 ***
REST request:
Code: 201
Req: {<0.29712.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a1b4777d986fb799">>}],
<<"{\"owner\":\"alicE_failed_messages_1859@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-99.412409\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-99.412409">>},
{<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-99.412409">>,222,2598}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_messages_1859@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-99.412409\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-07 16:06:39.431 ***
REST request fails:
Code: 404
Req: {<0.29718.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a12aa09f2cdbc7bd">>}],
<<"{\"sender\":\"alicE_failed_messages_1859@localhost\",\"recipient\":\"bOb_failed_messages_1859@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,733}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1859@localhost\",\"recipient\":\"bOb_failed_messages_1859@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-07 16:06:39.433 ***
REST request fails:
Code: 400
Req: {<0.29720.1>,<<"/api/mucs/localhost/wonderland-99.412409/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1dffb558a6a61f40">>}],
<<"{\"sender\":\"alicE_failed_messages_1859@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,676}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1859@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-99.412409/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-07 16:06:39.434 ***
REST request fails:
Code: 400
Req: {<0.29724.1>,<<"/api/mucs/localhost/wonderland-99.412409/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d4b796709643880d">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1859@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 07 Mar 2022 16:06:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,629}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1859@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-99.412409/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-07 16:06:39.434 ***
bOb_failed_messages_1859@localhost/res1 out
</stream:stream>
*** User 2022-03-07 16:06:39.435 ***
bOb_failed_messages_1859@localhost/res1 in
</stream:stream>
*** User 2022-03-07 16:06:39.435 ***
alicE_failed_messages_1859@localhost/res1 out
</stream:stream>
*** User 2022-03-07 16:06:39.435 ***
alicE_failed_messages_1859@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-07 16:06:39
=== successfully completed test case
=== === Returned value: ok