=== Test case: rest_SUITE:types_are_checked_separately_for_args_and_return/1 (click for source code)
=== Config value:
[{watchdog,<0.27106.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.types_are_checked_separately_for_args_and_return.150402.html"},
{tc_group_properties,[{name,admin},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:25:01
*** User 2022-03-04 11:25:01.281 ***
alicE@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-03-04 11:25:01.281 ***
alicE@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c243e8a57a0d99ea' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.281 ***
alicE@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-03-04 11:25:01.281 ***
alicE@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFAG1hdHlncnlzYQ==</auth>
*** User 2022-03-04 11:25:01.282 ***
alicE@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:01.282 ***
alicE@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-03-04 11:25:01.283 ***
alicE@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50fa9dbe74c6a92a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.283 ***
alicE@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-03-04 11:25:01.283 ***
alicE@domain.example.com/res1 out
<iq type='set' id='0ca899685ddfb477272f0ed1e074f58c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:01.283 ***
alicE@domain.example.com/res1 in
<iq id='0ca899685ddfb477272f0ed1e074f58c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:01.283 ***
alicE@domain.example.com/res1 out
<iq type='set' id='654de1f3bc4f1452485ba084beb68a0b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.283 ***
alicE@domain.example.com/res1 in
<iq type='result' id='654de1f3bc4f1452485ba084beb68a0b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.284 ***
alicE@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:01.285 ***
alicE@domain.example.com/res1 in
<presence from='alicE@domain.example.com/res1' to='alice@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:01.287 ***
REST request fails:
Code: 400
Req: {<0.27314.1>,<<"/api/test_arg">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2457a84ef439d32">>}],
<<"{\"arg\":1}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"16">>}],
<<"{error,bad_type}">>,149,818}
Params: #{body => <<"{\"arg\":1}">>,method => <<"POST">>,
path => <<"/api/test_arg">>,return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.289 ***
REST request fails:
Code: 500
Req: {<0.27322.1>,<<"/api/test_return">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e3921b7cc0ea20b">>}],
<<"{\"arg\":true}">>}
Result: {{<<"500">>,<<"Internal Server Error">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"31">>}],
<<"For msg expected binary, got ok">>,174,833}
Params: #{body => <<"{\"arg\":true}">>,method => <<"POST">>,
path => <<"/api/test_return">>,return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.289 ***
alicE@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:01.289 ***
alicE@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:01
=== successfully completed test case
=== === Returned value: ok