=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.26465.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/muc_http_api_suite.failed_messages.141570.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40"
=== Started at 2022-05-11 09:03:37
*** User 2022-05-11 09:03:37.308 ***
alicE_failed_messages_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 09:03:37.308 ***
alicE_failed_messages_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8d3aa86ed09199eb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.309 ***
alicE_failed_messages_1901@domain.example.com/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-11 09:03:37.309 ***
alicE_failed_messages_1901@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xOTAxAG1hdHlncnlzYQ==</auth>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_messages_1901@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_messages_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_messages_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3b9394ce919ce3b6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_messages_1901@domain.example.com/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-11 09:03:37.310 ***
alicE_failed_messages_1901@domain.example.com/res1 out
<iq type='set' id='3c120226be469647b93e359a32bc7c50'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:03:37.311 ***
alicE_failed_messages_1901@domain.example.com/res1 in
<iq id='3c120226be469647b93e359a32bc7c50' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_messages_1901@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:03:37.311 ***
alicE_failed_messages_1901@domain.example.com/res1 out
<iq type='set' id='148d5520377a1c6622eb7a381918f2e1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.311 ***
alicE_failed_messages_1901@domain.example.com/res1 in
<iq type='result' id='148d5520377a1c6622eb7a381918f2e1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.311 ***
alicE_failed_messages_1901@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:03:37.312 ***
alicE_failed_messages_1901@domain.example.com/res1 in
<presence from='alicE_failed_messages_1901@domain.example.com/res1' to='alice_failed_messages_1901@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:03:37.313 ***
bOb_failed_messages_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 09:03:37.313 ***
bOb_failed_messages_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6d37f5494ecb04d7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.314 ***
bOb_failed_messages_1901@domain.example.com/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-11 09:03:37.314 ***
bOb_failed_messages_1901@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTkwMQBtYWtyb2xpa2E=</auth>
*** User 2022-05-11 09:03:37.314 ***
bOb_failed_messages_1901@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:03:37.314 ***
bOb_failed_messages_1901@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_messages_1901@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1fc96e349ff1c7bf' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_messages_1901@domain.example.com/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-11 09:03:37.315 ***
bOb_failed_messages_1901@domain.example.com/res1 out
<iq type='set' id='16394f00b11b2268e96f39862f216ddf'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_messages_1901@domain.example.com/res1 in
<iq id='16394f00b11b2268e96f39862f216ddf' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_messages_1901@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_messages_1901@domain.example.com/res1 out
<iq type='set' id='5d350bea3336b7dcbc51a47e296d102e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_messages_1901@domain.example.com/res1 in
<iq type='result' id='5d350bea3336b7dcbc51a47e296d102e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.316 ***
bOb_failed_messages_1901@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:03:37.316 ***
bOb_failed_messages_1901@domain.example.com/res1 in
<presence from='bOb_failed_messages_1901@domain.example.com/res1' to='bob_failed_messages_1901@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:03:37.320 ***
REST request:
Code: 201
Req: {<0.26494.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ef17d2e135aaa496">>}],
<<"{\"owner\":\"alicE_failed_messages_1901@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-17.303266\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-17.303266">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-17.303266">>,231,2366}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_messages_1901@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-17.303266\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.322 ***
REST request fails:
Code: 404
Req: {<0.26498.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b57fa4635b34c03">>}],
<<"{\"sender\":\"alicE_failed_messages_1901@domain.example.com\",\"recipient\":\"bOb_failed_messages_1901@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,1142}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1901@domain.example.com\",\"recipient\":\"bOb_failed_messages_1901@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.324 ***
REST request fails:
Code: 400
Req: {<0.26502.1>,
<<"/api/mucs/domain.example.com/wonderland-17.303266/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"426e715fca30674c">>}],
<<"{\"sender\":\"alicE_failed_messages_1901@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,942}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_messages_1901@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-17.303266/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.326 ***
REST request fails:
Code: 400
Req: {<0.26504.1>,
<<"/api/mucs/domain.example.com/wonderland-17.303266/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e72ffd3a415d117a">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1901@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,720}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_messages_1901@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-17.303266/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.327 ***
bOb_failed_messages_1901@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:03:37.327 ***
bOb_failed_messages_1901@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-11 09:03:37.327 ***
alicE_failed_messages_1901@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:03:37.327 ***
alicE_failed_messages_1901@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-11 09:03:37
=== successfully completed test case
=== === Returned value: ok