=== Test case: commands_backend_SUITE:post_wrong_arg_name/1 (click for source code)

=== Config value:

    [{watchdog,<0.1696.2>},
     {tc_logfile,"/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-03-18_09.02.28/lib.mongooseim.logs/run.2022-03-18_09.02.28/commands_backend_suite.post_wrong_arg_name.html"},
     {tc_group_properties,[{name,post_advanced_backend},sequence]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/_build/test/lib/mongooseim/test/commands_backend_SUITE_data/"},
     {priv_dir,"/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-03-18_09.02.28/lib.mongooseim.logs/run.2022-03-18_09.02.28/log_private/"}]

=== Current directory is "/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-03-18_09.02.28"

=== Started at 2022-03-18 09:03:09


*** User 2022-03-18 09:03:09.853 ***
<<"/api/weather">>, "POST", [{arg11,10},{arg2,2}]

*** System report during commands_backend_SUITE:post_wrong_arg_name/1 in post_advanced_backend 2022-03-18 09:03:10.896 ***
=ERROR REPORT==== 18-Mar-2022::09:03:10.896766 ===
    error_type: type_error
    reason: Invalid number of arguments: should be 2, got 1
    req: #{bindings => #{},body_length => 21,cert => undefined,
           charset => undefined,has_body => true,
           headers =>
               #{<<"accept">> => <<"application/json">>,
                 <<"content-length">> => <<"21">>,
                 <<"content-type">> => <<"application/json">>,
                 <<"host">> => <<"localhost:5288">>},
           host => <<"localhost">>,host_info => undefined,
           media_type => {<<"application">>,<<"json">>,[]},
           method => <<"POST">>,path => <<"/api/weather">>,
           path_info => undefined,
           peer => {{127,0,0,1},39281},
           pid => <0.1898.2>,port => 5288,qs => <<>>,
           ref => 'ejabberd_cowboy_127.0.0.1_5288',
           resp_headers =>
               #{<<"content-type">> =>
                     [<<"application">>,<<"/">>,<<"json">>,<<>>]},
           scheme => <<"http">>,
           sock => {{127,0,0,1},5288},
           streamid => 1,version => 'HTTP/1.1'}
    what: rest_common_error




=== Ended at 2022-03-18 09:03:11
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result