=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.6957.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-05_07.54.09/muc_http_api_suite.failed_messages.66306.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-05_07.54.09/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@22b4515d438b.2022-04-05_07.43.19"
=== Started at 2022-04-05 07:54:15
*** User 2022-04-05 07:54:15.515 ***
alicE_failed_messages_1170@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-04-05 07:54:15.515 ***
alicE_failed_messages_1170@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='83349e26bf1c8845' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:15.515 ***
alicE_failed_messages_1170@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-04-05 07:54:15.515 ***
alicE_failed_messages_1170@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xMTcwAG1hdHlncnlzYQ==</auth>
*** User 2022-04-05 07:54:15.518 ***
alicE_failed_messages_1170@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:54:15.518 ***
alicE_failed_messages_1170@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-04-05 07:54:15.518 ***
alicE_failed_messages_1170@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94280acbd4b11fc7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:15.518 ***
alicE_failed_messages_1170@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-04-05 07:54:15.518 ***
alicE_failed_messages_1170@localhost/res1 out
<iq type='set' id='21cf75ee3cea65e1c586462c5b1f0278'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:54:15.519 ***
alicE_failed_messages_1170@localhost/res1 in
<iq id='21cf75ee3cea65e1c586462c5b1f0278' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_messages_1170@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:54:15.519 ***
alicE_failed_messages_1170@localhost/res1 out
<iq type='set' id='4b3a4374dd3eddaf5343e1d21e5fcc44'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:15.520 ***
alicE_failed_messages_1170@localhost/res1 in
<iq type='result' id='4b3a4374dd3eddaf5343e1d21e5fcc44'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:15.520 ***
alicE_failed_messages_1170@localhost/res1 out
<presence/>
*** User 2022-04-05 07:54:15.524 ***
alicE_failed_messages_1170@localhost/res1 in
<presence from='alicE_failed_messages_1170@localhost/res1' to='alice_failed_messages_1170@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:54:15.526 ***
bOb_failed_messages_1170@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-04-05 07:54:15.559 ***
bOb_failed_messages_1170@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5c1839a862f8d6d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:15.559 ***
bOb_failed_messages_1170@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-04-05 07:54:15.560 ***
bOb_failed_messages_1170@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTE3MABtYWtyb2xpa2E=</auth>
*** User 2022-04-05 07:54:15.564 ***
bOb_failed_messages_1170@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:54:15.564 ***
bOb_failed_messages_1170@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-04-05 07:54:15.565 ***
bOb_failed_messages_1170@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d2b05526cf23d744' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:54:15.565 ***
bOb_failed_messages_1170@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-04-05 07:54:15.565 ***
bOb_failed_messages_1170@localhost/res1 out
<iq type='set' id='cf49f853009c7b5b47210ed74382a773'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:54:15.566 ***
bOb_failed_messages_1170@localhost/res1 in
<iq id='cf49f853009c7b5b47210ed74382a773' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_messages_1170@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:54:15.566 ***
bOb_failed_messages_1170@localhost/res1 out
<iq type='set' id='22628643faae90414617b625c656f722'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:15.567 ***
bOb_failed_messages_1170@localhost/res1 in
<iq type='result' id='22628643faae90414617b625c656f722'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:54:15.567 ***
bOb_failed_messages_1170@localhost/res1 out
<presence/>
*** User 2022-04-05 07:54:15.570 ***
bOb_failed_messages_1170@localhost/res1 in
<presence from='bOb_failed_messages_1170@localhost/res1' to='bob_failed_messages_1170@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:54:15.574 ***
REST request:
Code: 201
Req: {<0.6984.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b44322e386cd5ffe">>}],
<<"{\"owner\":\"alicE_failed_messages_1170@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-55.499510\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-55.499510">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:54:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-55.499510">>,222,1554}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_messages_1170@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-55.499510\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:54:15.578 ***
REST request fails:
Code: 404
Req: {<0.6988.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"466a075314010710">>}],
<<"{\"sender\":\"alicE_failed_messages_1170@localhost\",\"recipient\":\"bOb_failed_messages_1170@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:54:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,1256}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1170@localhost\",\"recipient\":\"bOb_failed_messages_1170@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-04-05 07:54:15.584 ***
REST request fails:
Code: 400
Req: {<0.6990.1>,<<"/api/mucs/localhost/wonderland-55.499510/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c06ce086e03be334">>}],
<<"{\"sender\":\"alicE_failed_messages_1170@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:54:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1185}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1170@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-55.499510/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:54:15.588 ***
REST request fails:
Code: 400
Req: {<0.6995.1>,<<"/api/mucs/localhost/wonderland-55.499510/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2a4fdcda0797ae55">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1170@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:54:14 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,2497}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1170@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-55.499510/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:54:15.589 ***
bOb_failed_messages_1170@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:54:15.589 ***
bOb_failed_messages_1170@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:54:15.589 ***
alicE_failed_messages_1170@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:54:15.590 ***
alicE_failed_messages_1170@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-05 07:54:15
=== successfully completed test case
=== === Returned value: ok