=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.5947.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@37839f4a29ed.2022-03-18_09.02.26/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-18_09.12.42/muc_http_api_suite.failed_messages.56322.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@37839f4a29ed.2022-03-18_09.02.26/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-18_09.12.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@37839f4a29ed.2022-03-18_09.02.26"
=== Started at 2022-03-18 09:12:47
*** User 2022-03-18 09:12:47.369 ***
alicE_failed_messages_1105@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-18 09:12:47.370 ***
alicE_failed_messages_1105@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='17e4342d35d378d7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:12:47.370 ***
alicE_failed_messages_1105@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-18 09:12:47.370 ***
alicE_failed_messages_1105@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xMTA1AG1hdHlncnlzYQ==</auth>
*** User 2022-03-18 09:12:47.371 ***
alicE_failed_messages_1105@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 09:12:47.371 ***
alicE_failed_messages_1105@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-18 09:12:47.371 ***
alicE_failed_messages_1105@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4231a48b98bce9b0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:12:47.372 ***
alicE_failed_messages_1105@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-18 09:12:47.372 ***
alicE_failed_messages_1105@localhost/res1 out
<iq type='set' id='1ab9651f8d98164ab19bc7c2f1a424b6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 09:12:47.372 ***
alicE_failed_messages_1105@localhost/res1 in
<iq id='1ab9651f8d98164ab19bc7c2f1a424b6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_messages_1105@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 09:12:47.372 ***
alicE_failed_messages_1105@localhost/res1 out
<iq type='set' id='8402640a09ce4095bd42f7572c938105'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 09:12:47.372 ***
alicE_failed_messages_1105@localhost/res1 in
<iq type='result' id='8402640a09ce4095bd42f7572c938105'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 09:12:47.372 ***
alicE_failed_messages_1105@localhost/res1 out
<presence/>
*** User 2022-03-18 09:12:47.374 ***
alicE_failed_messages_1105@localhost/res1 in
<presence from='alicE_failed_messages_1105@localhost/res1' to='alice_failed_messages_1105@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 09:12:47.374 ***
bOb_failed_messages_1105@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-18 09:12:47.375 ***
bOb_failed_messages_1105@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d2991b5a1e39cc75' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:12:47.375 ***
bOb_failed_messages_1105@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-18 09:12:47.375 ***
bOb_failed_messages_1105@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTEwNQBtYWtyb2xpa2E=</auth>
*** User 2022-03-18 09:12:47.376 ***
bOb_failed_messages_1105@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 09:12:47.376 ***
bOb_failed_messages_1105@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-18 09:12:47.377 ***
bOb_failed_messages_1105@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='09ce6a2576c06285' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 09:12:47.377 ***
bOb_failed_messages_1105@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-18 09:12:47.377 ***
bOb_failed_messages_1105@localhost/res1 out
<iq type='set' id='9cd150d850e6052a0fa0740ebe5c1116'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 09:12:47.377 ***
bOb_failed_messages_1105@localhost/res1 in
<iq id='9cd150d850e6052a0fa0740ebe5c1116' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_messages_1105@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 09:12:47.377 ***
bOb_failed_messages_1105@localhost/res1 out
<iq type='set' id='3865aaf2d03e09cdc0f18fb62754c2aa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 09:12:47.377 ***
bOb_failed_messages_1105@localhost/res1 in
<iq type='result' id='3865aaf2d03e09cdc0f18fb62754c2aa'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 09:12:47.377 ***
bOb_failed_messages_1105@localhost/res1 out
<presence/>
*** User 2022-03-18 09:12:47.379 ***
bOb_failed_messages_1105@localhost/res1 in
<presence from='bOb_failed_messages_1105@localhost/res1' to='bob_failed_messages_1105@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 09:12:47.381 ***
REST request:
Code: 201
Req: {<0.5976.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"115c79c5fa77a58d">>}],
<<"{\"owner\":\"alicE_failed_messages_1105@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-67.362575\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-67.362575">>},
{<<"date">>,<<"Fri, 18 Mar 2022 09:12:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-67.362575">>,222,971}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_messages_1105@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-67.362575\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 09:12:47.382 ***
REST request fails:
Code: 404
Req: {<0.5978.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e39153c4809bc78c">>}],
<<"{\"sender\":\"alicE_failed_messages_1105@localhost\",\"recipient\":\"bOb_failed_messages_1105@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 09:12:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,694}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1105@localhost\",\"recipient\":\"bOb_failed_messages_1105@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-18 09:12:47.384 ***
REST request fails:
Code: 400
Req: {<0.5984.1>,<<"/api/mucs/localhost/wonderland-67.362575/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"753fc28d9c6684f6">>}],
<<"{\"sender\":\"alicE_failed_messages_1105@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 09:12:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,602}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1105@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-67.362575/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 09:12:47.386 ***
REST request fails:
Code: 400
Req: {<0.5988.1>,<<"/api/mucs/localhost/wonderland-67.362575/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3cc0f65bf9c42a1b">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1105@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 09:12:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,609}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1105@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-67.362575/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 09:12:47.386 ***
bOb_failed_messages_1105@localhost/res1 out
</stream:stream>
*** User 2022-03-18 09:12:47.386 ***
bOb_failed_messages_1105@localhost/res1 in
</stream:stream>
*** User 2022-03-18 09:12:47.386 ***
alicE_failed_messages_1105@localhost/res1 out
</stream:stream>
*** User 2022-03-18 09:12:47.386 ***
alicE_failed_messages_1105@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-18 09:12:47
=== successfully completed test case
=== === Returned value: ok