=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.5726.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e940550c5ac4.2022-04-29_13.53.57/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-29_14.01.51/muc_http_api_suite.failed_messages.63490.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@e940550c5ac4.2022-04-29_13.53.57/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-29_14.01.51/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@e940550c5ac4.2022-04-29_13.53.57"
=== Started at 2022-04-29 14:01:56
*** User 2022-04-29 14:01:56.660 ***
alicE_failed_messages_1061@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-29 14:01:56.660 ***
alicE_failed_messages_1061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dc7458c9e608bc81' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-29 14:01:56.661 ***
alicE_failed_messages_1061@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-29 14:01:56.661 ***
alicE_failed_messages_1061@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xMDYxAG1hdHlncnlzYQ==</auth>
*** User 2022-04-29 14:01:56.661 ***
alicE_failed_messages_1061@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-29 14:01:56.661 ***
alicE_failed_messages_1061@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-29 14:01:56.662 ***
alicE_failed_messages_1061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82bbcb4c1b9c5c72' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-29 14:01:56.662 ***
alicE_failed_messages_1061@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-29 14:01:56.662 ***
alicE_failed_messages_1061@localhost/res1 out
<iq type='set' id='399432627079d79cd7f32ec5942a0d21'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-29 14:01:56.662 ***
alicE_failed_messages_1061@localhost/res1 in
<iq id='399432627079d79cd7f32ec5942a0d21' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_messages_1061@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-29 14:01:56.662 ***
alicE_failed_messages_1061@localhost/res1 out
<iq type='set' id='cab4ca2b2fff9f0b905245a35923d8c8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-29 14:01:56.662 ***
alicE_failed_messages_1061@localhost/res1 in
<iq type='result' id='cab4ca2b2fff9f0b905245a35923d8c8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-29 14:01:56.662 ***
alicE_failed_messages_1061@localhost/res1 out
<presence/>
*** User 2022-04-29 14:01:56.663 ***
alicE_failed_messages_1061@localhost/res1 in
<presence from='alicE_failed_messages_1061@localhost/res1' to='alice_failed_messages_1061@localhost/res1' xml:lang='en'/>
*** User 2022-04-29 14:01:56.663 ***
bOb_failed_messages_1061@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-29 14:01:56.663 ***
bOb_failed_messages_1061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0807e152afc2419' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-29 14:01:56.663 ***
bOb_failed_messages_1061@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-29 14:01:56.664 ***
bOb_failed_messages_1061@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTA2MQBtYWtyb2xpa2E=</auth>
*** User 2022-04-29 14:01:56.664 ***
bOb_failed_messages_1061@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-29 14:01:56.664 ***
bOb_failed_messages_1061@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-29 14:01:56.664 ***
bOb_failed_messages_1061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='812974171590fb2a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-29 14:01:56.664 ***
bOb_failed_messages_1061@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-29 14:01:56.664 ***
bOb_failed_messages_1061@localhost/res1 out
<iq type='set' id='c09a328c0c48a4280726338b25739239'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-29 14:01:56.664 ***
bOb_failed_messages_1061@localhost/res1 in
<iq id='c09a328c0c48a4280726338b25739239' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_messages_1061@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-29 14:01:56.665 ***
bOb_failed_messages_1061@localhost/res1 out
<iq type='set' id='60bb272e34016154536d358facf2cf64'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-29 14:01:56.665 ***
bOb_failed_messages_1061@localhost/res1 in
<iq type='result' id='60bb272e34016154536d358facf2cf64'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-29 14:01:56.665 ***
bOb_failed_messages_1061@localhost/res1 out
<presence/>
*** User 2022-04-29 14:01:56.666 ***
bOb_failed_messages_1061@localhost/res1 in
<presence from='bOb_failed_messages_1061@localhost/res1' to='bob_failed_messages_1061@localhost/res1' xml:lang='en'/>
*** User 2022-04-29 14:01:56.667 ***
REST request:
Code: 201
Req: {<0.5755.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b456979625236b55">>}],
<<"{\"owner\":\"alicE_failed_messages_1061@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-16.657992\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-16.657992">>},
{<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-16.657992">>,222,969}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_messages_1061@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-16.657992\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-29 14:01:56.669 ***
REST request fails:
Code: 404
Req: {<0.5757.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c496df02a9f6619e">>}],
<<"{\"sender\":\"alicE_failed_messages_1061@localhost\",\"recipient\":\"bOb_failed_messages_1061@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,649}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1061@localhost\",\"recipient\":\"bOb_failed_messages_1061@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-29 14:01:56.671 ***
REST request fails:
Code: 400
Req: {<0.5761.1>,<<"/api/mucs/localhost/wonderland-16.657992/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eeb8dea078a50832">>}],
<<"{\"sender\":\"alicE_failed_messages_1061@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,602}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1061@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-16.657992/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-29 14:01:56.672 ***
REST request fails:
Code: 400
Req: {<0.5765.1>,<<"/api/mucs/localhost/wonderland-16.657992/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d7c002fa2d890c4">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1061@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 29 Apr 2022 14:01:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,895}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1061@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-16.657992/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-29 14:01:56.673 ***
bOb_failed_messages_1061@localhost/res1 out
</stream:stream>
*** User 2022-04-29 14:01:56.673 ***
bOb_failed_messages_1061@localhost/res1 in
</stream:stream>
*** User 2022-04-29 14:01:56.673 ***
alicE_failed_messages_1061@localhost/res1 out
</stream:stream>
*** User 2022-04-29 14:01:56.673 ***
alicE_failed_messages_1061@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-29 14:01:56
=== successfully completed test case
=== === Returned value: ok