=== Test case: inbox_SUITE:rest_api_bin_flush_user_errors/1 (click for source code)

=== Config value:

    [{watchdog,<0.35691.0>},
     {inbox_opts,#{iqdisc => no_queue,backend => rdbms_async,
                   async_writer => #{pool_size => 1},
                   max_result_limit => infinity,
                   delete_domain_limit => infinity,
                   groupchat => [muclight],
                   boxes => [<<"inbox">>,<<"archive">>,<<"bin">>,<<"other">>],
                   bin_ttl => 30,bin_clean_after => 3600000,
                   reset_markers => [<<"displayed">>],
                   aff_changes => true,remove_on_kicked => true}},
     {preset,"odbc_mssql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/inbox_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.inbox_SUITE.logs/run.2024-04-10_11.54.08/inbox_suite.rest_api_bin_flush_user_errors.html"},
     {tc_group_properties,[{name,bin}]},
     {tc_group_path,[[{name,async_pools}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/inbox_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.inbox_SUITE.logs/run.2024-04-10_11.54.08/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f9de24452ab3.2024-04-10_11.46.55"

=== Started at 2024-04-10 11:54:14


*** CT 2024-04-10 11:54:14.071 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2064.html

*** User 2024-04-10 11:54:14.075 ***🔗
REST request fails:
Code: 400
Req: {<0.35758.0>,
      <<"/api/inbox/localhost/alicE_rest_api_bin_flush_user_errors_1462/x/bin">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6125d3259007e92">>}],
      <<>>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 11:54:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"24">>}],
         <<"\"Invalid number of days\"">>,150,529}
Params: #{path =>
              <<"/api/inbox/localhost/alicE_rest_api_bin_flush_user_errors_1462/x/bin">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-10 11:54:14.076 ***🔗
REST request fails:
Code: 400
Req: {<0.35760.0>,<<"/api/inbox/localhost/@/0/bin">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6b1bde1195aac03">>}],
      <<>>}
Result: {{<<"400">>,<<"Bad Request">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 11:54:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"13">>}],
         <<"\"Invalid JID\"">>,139,465}
Params: #{path => <<"/api/inbox/localhost/@/0/bin">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-10 11:54:14.077 ***🔗
REST request fails:
Code: 404
Req: {<0.35762.0>,
      <<"/api/inbox/baddomain/alicE_rest_api_bin_flush_user_errors_1462/0/bin">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7b23be1156c91c1f">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 11:54:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"18">>}],
         <<"\"Domain not found\"">>,142,454}
Params: #{path =>
              <<"/api/inbox/baddomain/alicE_rest_api_bin_flush_user_errors_1462/0/bin">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}


*** User 2024-04-10 11:54:14.079 ***🔗
REST request fails:
Code: 404
Req: {<0.35764.0>,<<"/api/inbox/localhost/baduser/0/bin">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"54e6ca8d0c586547">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 11:54:13 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"39">>}],
         <<"\"User baduser@localhost does not exist\"">>,163,780}
Params: #{path => <<"/api/inbox/localhost/baduser/0/bin">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"DELETE">>,role => admin,
          return_headers => true}

*** CT 2024-04-10 11:54:14.080 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2064.html



=== Ended at 2024-04-10 11:54:14
=== successfully completed test case
=== === Returned value: {{<<"404">>,<<"Not Found">>},
                     <<"User baduser@localhost does not exist">>}


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