=== Test case: muc_http_api_SUITE:failed_messages/1 (click for source code)
=== Config value:
[{watchdog,<0.26701.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.13/muc_http_api_suite.failed_messages.44037.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.13/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@f0b09cc3aef4.2022-05-25_09.03.38"
=== Started at 2022-05-25 09:12:19
*** User 2022-05-25 09:12:19.293 ***
alicE_failed_messages_1936@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-25 09:12:19.293 ***
alicE_failed_messages_1936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9de4d47824f4479' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.294 ***
alicE_failed_messages_1936@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-25 09:12:19.294 ***
alicE_failed_messages_1936@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9tZXNzYWdlc18xOTM2AG1hdHlncnlzYQ==</auth>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_messages_1936@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_messages_1936@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-25 09:12:19.295 ***
alicE_failed_messages_1936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd3b2391208156d2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_messages_1936@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-25 09:12:19.295 ***
alicE_failed_messages_1936@domain.example.com/res1 out
<iq type='set' id='427924bd17e3acbbf2f40b57ec4346b3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_messages_1936@domain.example.com/res1 in
<iq id='427924bd17e3acbbf2f40b57ec4346b3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_messages_1936@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:19.296 ***
alice_failed_messages_1936@domain.example.com/res1 out
<iq type='set' id='46ad075dbeb1ceb47243e6c16852e1d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.296 ***
alice_failed_messages_1936@domain.example.com/res1 in
<iq type='result' id='46ad075dbeb1ceb47243e6c16852e1d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.296 ***
alice_failed_messages_1936@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:12:19.297 ***
alice_failed_messages_1936@domain.example.com/res1 in
<presence from='alice_failed_messages_1936@domain.example.com/res1' to='alice_failed_messages_1936@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:19.298 ***
bOb_failed_messages_1936@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-25 09:12:19.298 ***
bOb_failed_messages_1936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de31d6d840ca8c0c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.298 ***
bOb_failed_messages_1936@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-25 09:12:19.298 ***
bOb_failed_messages_1936@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfbWVzc2FnZXNfMTkzNgBtYWtyb2xpa2E=</auth>
*** User 2022-05-25 09:12:19.299 ***
bOb_failed_messages_1936@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:19.299 ***
bOb_failed_messages_1936@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-25 09:12:19.299 ***
bOb_failed_messages_1936@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1dcbbc0d05a492c8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.300 ***
bOb_failed_messages_1936@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-25 09:12:19.300 ***
bOb_failed_messages_1936@domain.example.com/res1 out
<iq type='set' id='b9d618dc0962ce8315823e4d72ea45b8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:19.300 ***
bOb_failed_messages_1936@domain.example.com/res1 in
<iq id='b9d618dc0962ce8315823e4d72ea45b8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_messages_1936@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:19.300 ***
bob_failed_messages_1936@domain.example.com/res1 out
<iq type='set' id='34721f383f4553dda774a9331d40e9cc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.300 ***
bob_failed_messages_1936@domain.example.com/res1 in
<iq type='result' id='34721f383f4553dda774a9331d40e9cc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.300 ***
bob_failed_messages_1936@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:12:19.301 ***
bob_failed_messages_1936@domain.example.com/res1 in
<presence from='bob_failed_messages_1936@domain.example.com/res1' to='bob_failed_messages_1936@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:19.305 ***
REST request:
Code: 201
Req: {<0.26728.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c6892a375596fe36">>}],
<<"{\"owner\":\"alice_failed_messages_1936@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-39.271867\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-39.271867">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-39.271867">>,231,2171}
Params: #{body =>
<<"{\"owner\":\"alice_failed_messages_1936@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-39.271867\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.306 ***
REST request fails:
Code: 404
Req: {<0.26732.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f03cbd6b96936fd1">>}],
<<"{\"sender\":\"alice_failed_messages_1936@domain.example.com\",\"recipient\":\"bob_failed_messages_1936@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,629}
Params: #{body =>
<<"{\"sender\":\"alice_failed_messages_1936@domain.example.com\",\"recipient\":\"bob_failed_messages_1936@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-25 09:12:19.308 ***
REST request fails:
Code: 400
Req: {<0.26736.1>,
<<"/api/mucs/domain.example.com/wonderland-39.271867/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8f07ac5d226602ba">>}],
<<"{\"sender\":\"alice_failed_messages_1936@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,679}
Params: #{body =>
<<"{\"sender\":\"alice_failed_messages_1936@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-39.271867/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.310 ***
REST request fails:
Code: 400
Req: {<0.26740.1>,
<<"/api/mucs/domain.example.com/wonderland-39.271867/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a62e809d41b5bc9">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_messages_1936@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,666}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_messages_1936@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-39.271867/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.311 ***
bob_failed_messages_1936@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:12:19.311 ***
bob_failed_messages_1936@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-25 09:12:19.311 ***
alice_failed_messages_1936@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:12:19.311 ***
alice_failed_messages_1936@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-25 09:12:19
=== successfully completed test case
=== === Returned value: ok