=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.12207.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"elasticsearch_and_cassandra_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1d2c55569403.2022-05-25_09.03.50/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.49/muc_http_api_suite.failed_messages.67458.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@1d2c55569403.2022-05-25_09.03.50/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.49/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@1d2c55569403.2022-05-25_09.03.50"
=== Started at 2022-05-25 09:12:55
*** User 2022-05-25 09:12:55.190 ***
alicE_failed_messages_1229@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-25 09:12:55.190 ***
alicE_failed_messages_1229@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='016fea79ca0b7b8e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.190 ***
alicE_failed_messages_1229@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-25 09:12:55.191 ***
alicE_failed_messages_1229@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xMjI5AG1hdHlncnlzYQ==</auth>
*** User 2022-05-25 09:12:55.191 ***
alicE_failed_messages_1229@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:55.191 ***
alicE_failed_messages_1229@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-25 09:12:55.191 ***
alicE_failed_messages_1229@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef844e09d3909753' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.191 ***
alicE_failed_messages_1229@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-25 09:12:55.192 ***
alicE_failed_messages_1229@localhost/res1 out
<iq type='set' id='99feb8e9a03104d75a24f08b9a3c2572'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alicE_failed_messages_1229@localhost/res1 in
<iq id='99feb8e9a03104d75a24f08b9a3c2572' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_messages_1229@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alice_failed_messages_1229@localhost/res1 out
<iq type='set' id='2d5af284644afdcb6fcd46e6b08d73c2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alice_failed_messages_1229@localhost/res1 in
<iq type='result' id='2d5af284644afdcb6fcd46e6b08d73c2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alice_failed_messages_1229@localhost/res1 out
<presence/>
*** User 2022-05-25 09:12:55.193 ***
alice_failed_messages_1229@localhost/res1 in
<presence from='alice_failed_messages_1229@localhost/res1' to='alice_failed_messages_1229@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:55.194 ***
bOb_failed_messages_1229@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-25 09:12:55.194 ***
bOb_failed_messages_1229@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a4e18988f6270893' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.194 ***
bOb_failed_messages_1229@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-25 09:12:55.194 ***
bOb_failed_messages_1229@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTIyOQBtYWtyb2xpa2E=</auth>
*** User 2022-05-25 09:12:55.195 ***
bOb_failed_messages_1229@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:55.195 ***
bOb_failed_messages_1229@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-25 09:12:55.195 ***
bOb_failed_messages_1229@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81be08bc236c6b7e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.195 ***
bOb_failed_messages_1229@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-25 09:12:55.195 ***
bOb_failed_messages_1229@localhost/res1 out
<iq type='set' id='7d6de60ef80e006b7eb5ed9bcdf2fb2f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bOb_failed_messages_1229@localhost/res1 in
<iq id='7d6de60ef80e006b7eb5ed9bcdf2fb2f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_messages_1229@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bob_failed_messages_1229@localhost/res1 out
<iq type='set' id='f6295bf9b2661427d4b648bfcfc9e3f3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bob_failed_messages_1229@localhost/res1 in
<iq type='result' id='f6295bf9b2661427d4b648bfcfc9e3f3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bob_failed_messages_1229@localhost/res1 out
<presence/>
*** User 2022-05-25 09:12:55.197 ***
bob_failed_messages_1229@localhost/res1 in
<presence from='bob_failed_messages_1229@localhost/res1' to='bob_failed_messages_1229@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:55.199 ***
REST request:
Code: 201
Req: {<0.12234.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1cc508c2764ea975">>}],
<<"{\"owner\":\"alice_failed_messages_1229@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-75.187468\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-75.187468">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-75.187468">>,222,1316}
Params: #{body =>
<<"{\"owner\":\"alice_failed_messages_1229@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-75.187468\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:55.201 ***
REST request fails:
Code: 404
Req: {<0.12240.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ec866eb7dae0998">>}],
<<"{\"sender\":\"alice_failed_messages_1229@localhost\",\"recipient\":\"bob_failed_messages_1229@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,846}
Params: #{body =>
<<"{\"sender\":\"alice_failed_messages_1229@localhost\",\"recipient\":\"bob_failed_messages_1229@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-25 09:12:55.204 ***
REST request fails:
Code: 400
Req: {<0.12244.1>,<<"/api/mucs/localhost/wonderland-75.187468/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"38f8767e63becfb2">>}],
<<"{\"sender\":\"alice_failed_messages_1229@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1317}
Params: #{body =>
<<"{\"sender\":\"alice_failed_messages_1229@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-75.187468/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:55.206 ***
REST request fails:
Code: 400
Req: {<0.12248.1>,<<"/api/mucs/localhost/wonderland-75.187468/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a3de732684f3d93a">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_messages_1229@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,906}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_messages_1229@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-75.187468/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:55.206 ***
bob_failed_messages_1229@localhost/res1 out
</stream:stream>
*** User 2022-05-25 09:12:55.206 ***
bob_failed_messages_1229@localhost/res1 in
</stream:stream>
*** User 2022-05-25 09:12:55.206 ***
alice_failed_messages_1229@localhost/res1 out
</stream:stream>
*** User 2022-05-25 09:12:55.206 ***
alice_failed_messages_1229@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 09:12:55
=== successfully completed test case
=== === Returned value: ok