=== Test case: rest_SUITE:auth_always_passes_blank_creds/1 (click for source code)

=== Config value:

    [{watchdog,<0.14964.1>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,disabled},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fbe05ecb9552.2022-03-18_10.50.03/big_tests.tests.rest_SUITE.logs/run.2022-03-18_11.00.02/rest_suite.auth_always_passes_blank_creds.73986.html"},
     {tc_group_properties,[{name,blank_auth},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@fbe05ecb9552.2022-03-18_10.50.03/big_tests.tests.rest_SUITE.logs/run.2022-03-18_11.00.02/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => [],
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => [],mod_commands => [],
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => [],mod_muc_light_commands => [],
        mod_register =>
            [{access,register},
             {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
             {welcome_message,{[],[]}}],
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => ldap,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,
              ldap =>
                  #{base => <<"ou=Users,dc=esl,dc=com">>,
                    binary_search_fields => [],deref => never,
                    filter => <<"(objectClass=inetOrgPerson)">>,
                    pool_tag => default,
                    search_fields =>
                        [{<<"User">>,<<"%u">>},
                         {<<"Full Name">>,<<"displayName">>},
                         {<<"Given Name">>,<<"givenName">>},
                         {<<"Middle Name">>,<<"initials">>},
                         {<<"Family Name">>,<<"sn">>},
                         {<<"Nickname">>,<<"%u">>},
                         {<<"Birthday">>,<<"birthDay">>},
                         {<<"Country">>,<<"c">>},
                         {<<"City">>,<<"l">>},
                         {<<"Email">>,<<"mail">>},
                         {<<"Organization Name">>,<<"o">>},
                         {<<"Organization Unit">>,<<"ou">>}],
                    search_operator => 'and',
                    search_reported =>
                        [{<<"Full Name">>,<<"FN">>},
                         {<<"Given Name">>,<<"FIRST">>},
                         {<<"Middle Name">>,<<"MIDDLE">>},
                         {<<"Family Name">>,<<"LAST">>},
                         {<<"Nickname">>,<<"NICK">>},
                         {<<"Birthday">>,<<"BDAY">>},
                         {<<"Country">>,<<"CTRY">>},
                         {<<"City">>,<<"LOCALITY">>},
                         {<<"Email">>,<<"EMAIL">>},
                         {<<"Organization Name">>,<<"ORGNAME">>},
                         {<<"Organization Unit">>,<<"ORGUNIT">>}],
                    uids => [{<<"uid">>,<<"%u">>}],
                    vcard_map =>
                        [{<<"NICKNAME">>,<<"%u">>,[]},
                         {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                         {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                         {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                         {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                         {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                         {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                         {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                         {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                         {<<"STREET">>,<<"%s">>,[<<"street">>]},
                         {<<"REGION">>,<<"%s">>,[<<"st">>]},
                         {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                         {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                         {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                         {<<"DESC">>,<<"%s">>,[<<"description">>]},
                         {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                         {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                         {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                         {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                         {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}]},
              matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fbe05ecb9552.2022-03-18_10.50.03"

=== Started at 2022-03-18 11:00:03


*** CT 2022-03-18 11:00:03.191 *** View log from node mongooseim@localhost when started mongooseim@localhost_4731.html
*** CT 2022-03-18 11:00:03.191 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2002.html

*** User 2022-03-18 11:00:03.199 ***
REST request:
Code: 200
Req: {<0.14976.1>,<<"/api/commands">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6ba94af6c91f2e1">>},
       {<<"authorization">>,<<"Basic YWFhYTpiYmJi">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 11:00:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"5742">>}],
         <<"[{\"path\":\"/commands\",\"name\":\"list_methods\",\"method\":\"GET\",\"desc\":\"List commands\",\"category\":\"commands\",\"args\":{},\"action\":\"read\"},{\"path\":\"/contacts\",\"name\":\"add_contact\",\"method\":\"POST\",\"desc\":\"Add a contact to roster\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\"},\"action\":\"create\"},{\"path\":\"/contacts/:caller\",\"name\":\"list_contacts\",\"method\":\"GET\",\"desc\":\"Get roster\",\"category\":\"contacts\",\"args\":{\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/contacts/:caller/:jid\",\"name\":\"subscription\",\"method\":\"PUT\",\"desc\":\"Send out a subscription request\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\",\"action\":\"string\"},\"action\":\"update\"},{\"path\":\"/contacts/:caller/:jid\",\"name\":\"delete_contact\",\"method\":\"DELETE\",\"desc\":\"Remove a contact from roster\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\"},\"action\":\"delete\"},{\"path\":\"/contacts/:caller/:jid/manage\",\"name\":\"set_subscription\",\"method\":\"PUT\",\"desc\":\"Set / unset mutual subscription\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\",\"action\":\"string\"},\"action\":\"update\"},{\"path\":\"/contacts/:caller/:jids/multiple\",\"name\":\"delete_contacts\",\"method\":\"DELETE\",\"desc\":\"Remove provided contacts from roster\",\"category\":\"contacts\",\"args\":{\"jids\":\"[binary]\",\"caller\":\"string\"},\"action\":\"delete\"},{\"path\":\"/messages\",\"name\":\"send_message\",\"method\":\"POST\",\"desc\":\"Send chat message from to\",\"category\":\"messages\",\"args\":{\"to\":\"string\",\"caller\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/messages/:caller\",\"name\":\"get_last_messages_with_everybody\",\"method\":\"GET\",\"desc\":\"Get n last messages from archive, optionally before a certain date (unixtime)\",\"category\":\"messages\",\"args\":{\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/messages/:caller/:with\",\"name\":\"get_last_messages\",\"method\":\"GET\",\"desc\":\"Get n last messages to/from given contact, with limit and date\",\"category\":\"messages\",\"args\":{\"with\":\"string\",\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/muc-lights/:domain\",\"name\":\"create_identifiable_muc_light_room\",\"method\":\"PUT\",\"desc\":\"Create a MUC Light room with user-provided username part in JID\",\"category\":\"muc-lights\",\"args\":{\"subject\":\"string\",\"owner\":\"string\",\"name\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"update\"},{\"path\":\"/muc-lights/:domain\",\"name\":\"create_muc_light_room\",\"method\":\"POST\",\"desc\":\"Create a MUC Light room with unique username part in JID.\",\"category\":\"muc-lights\",\"args\":{\"subject\":\"string\",\"owner\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/:id/management\",\"name\":\"delete_room\",\"method\":\"DELETE\",\"desc\":\"Delete a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"id\":\"string\",\"domain\":\"string\"},\"action\":\"delete\"},{\"path\":\"/muc-lights/:domain/:id/messages\",\"name\":\"send_message_to_muc_light_room\",\"method\":\"POST\",\"desc\":\"Send a message to a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"id\":\"string\",\"from\":\"string\",\"domain\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/:id/participants\",\"name\":\"invite_to_room\",\"method\":\"POST\",\"desc\":\"Invite to a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"sender\":\"string\",\"recipient\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/config\",\"name\":\"change_muc_light_room_configuration\",\"method\":\"PUT\",\"desc\":\"Change configuration of MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"user\":\"string\",\"subject\":\"string\",\"name\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"update\"},{\"path\":\"/mucs/:domain\",\"name\":\"create_muc_room\",\"method\":\"POST\",\"desc\":\"Create a MUC room.\",\"category\":\"mucs\",\"args\":{\"owner\":\"string\",\"nick\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/mucs/:domain/:name/:nick\",\"name\":\"kick_user_from_room\",\"method\":\"DELETE\",\"desc\":\"Kick a user from a MUC room (on behalf of a moderator).\",\"category\":\"mucs\",\"args\":{\"nick\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"delete\"},{\"path\":\"/mucs/:domain/:name/messages\",\"name\":\"send_message_to_room\",\"method\":\"POST\",\"desc\":\"Send a message to a MUC room from a given user.\",\"category\":\"mucs\",\"args\":{\"name\":\"string\",\"from\":\"string\",\"domain\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/mucs/:domain/:name/participants\",\"name\":\"invite_to_muc_room\",\"method\":\"POST\",\"desc\":\"Send a MUC room invite from one user to another.\",\"category\":\"mucs\",\"args\":{\"sender\":\"string\",\"recipient\":\"string\",\"reason\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/sessions/:host\",\"name\":\"list_sessions\",\"method\":\"GET\",\"desc\":\"Get session list\",\"category\":\"sessions\",\"args\":{\"host\":\"string\"},\"action\":\"read\"},{\"path\":\"/sessions/:host/:user/:res\",\"name\":\"kick_user\",\"method\":\"DELETE\",\"desc\":\"Terminate user connection\",\"category\":\"sessions\",\"args\":{\"user\":\"string\",\"res\":\"string\",\"host\":\"string\"},\"action\":\"delete\"},{\"path\":\"/stanzas\",\"name\":\"send_stanza\",\"method\":\"POST\",\"desc\":\"Send an arbitrary stanza\",\"category\":\"stanzas\",\"args\":{\"stanza\":\"string\"},\"action\":\"create\"},{\"path\":\"/users\",\"name\":\"register_user\",\"method\":\"POST\",\"desc\":\"Register a user\",\"category\":\"users\",\"args\":{\"username\":\"string\",\"password\":\"string\",\"host\":\"string\"},\"action\":\"create\"},{\"path\":\"/users/:host\",\"name\":\"list_users\",\"method\":\"GET\",\"desc\":\"List registered users on this host\",\"category\":\"users\",\"args\":{\"host\":\"string\"},\"action\":\"read\"},{\"path\":\"/users/:host/:user\",\"name\":\"unregister_user\",\"method\":\"DELETE\",\"desc\":\"UnRegister a user\",\"category\":\"users\",\"args\":{\"user\":\"string\",\"host\":\"string\"},\"action\":\"delete\"},{\"path\":\"/users/:host/:user\",\"name\":\"change_password\",\"method\":\"PUT\",\"desc\":\"Change user password\",\"category\":\"users\",\"args\":{\"user\":\"string\",\"newpass\":\"string\",\"host\":\"string\"},\"action\":\"update\"}]">>,
         5868,1417}
Params: #{body => <<>>,
          creds => {<<"aaaa">>,<<"bbbb">>},
          method => <<"GET">>,path => <<"/api/commands">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-18 11:00:03.201 ***
REST request:
Code: 200
Req: {<0.14978.1>,<<"/api/commands">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e6ea8f4b6909fb8c">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 11:00:02 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"5742">>}],
         <<"[{\"path\":\"/commands\",\"name\":\"list_methods\",\"method\":\"GET\",\"desc\":\"List commands\",\"category\":\"commands\",\"args\":{},\"action\":\"read\"},{\"path\":\"/contacts\",\"name\":\"add_contact\",\"method\":\"POST\",\"desc\":\"Add a contact to roster\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\"},\"action\":\"create\"},{\"path\":\"/contacts/:caller\",\"name\":\"list_contacts\",\"method\":\"GET\",\"desc\":\"Get roster\",\"category\":\"contacts\",\"args\":{\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/contacts/:caller/:jid\",\"name\":\"subscription\",\"method\":\"PUT\",\"desc\":\"Send out a subscription request\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\",\"action\":\"string\"},\"action\":\"update\"},{\"path\":\"/contacts/:caller/:jid\",\"name\":\"delete_contact\",\"method\":\"DELETE\",\"desc\":\"Remove a contact from roster\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\"},\"action\":\"delete\"},{\"path\":\"/contacts/:caller/:jid/manage\",\"name\":\"set_subscription\",\"method\":\"PUT\",\"desc\":\"Set / unset mutual subscription\",\"category\":\"contacts\",\"args\":{\"jid\":\"string\",\"caller\":\"string\",\"action\":\"string\"},\"action\":\"update\"},{\"path\":\"/contacts/:caller/:jids/multiple\",\"name\":\"delete_contacts\",\"method\":\"DELETE\",\"desc\":\"Remove provided contacts from roster\",\"category\":\"contacts\",\"args\":{\"jids\":\"[binary]\",\"caller\":\"string\"},\"action\":\"delete\"},{\"path\":\"/messages\",\"name\":\"send_message\",\"method\":\"POST\",\"desc\":\"Send chat message from to\",\"category\":\"messages\",\"args\":{\"to\":\"string\",\"caller\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/messages/:caller\",\"name\":\"get_last_messages_with_everybody\",\"method\":\"GET\",\"desc\":\"Get n last messages from archive, optionally before a certain date (unixtime)\",\"category\":\"messages\",\"args\":{\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/messages/:caller/:with\",\"name\":\"get_last_messages\",\"method\":\"GET\",\"desc\":\"Get n last messages to/from given contact, with limit and date\",\"category\":\"messages\",\"args\":{\"with\":\"string\",\"caller\":\"string\"},\"action\":\"read\"},{\"path\":\"/muc-lights/:domain\",\"name\":\"create_identifiable_muc_light_room\",\"method\":\"PUT\",\"desc\":\"Create a MUC Light room with user-provided username part in JID\",\"category\":\"muc-lights\",\"args\":{\"subject\":\"string\",\"owner\":\"string\",\"name\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"update\"},{\"path\":\"/muc-lights/:domain\",\"name\":\"create_muc_light_room\",\"method\":\"POST\",\"desc\":\"Create a MUC Light room with unique username part in JID.\",\"category\":\"muc-lights\",\"args\":{\"subject\":\"string\",\"owner\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/:id/management\",\"name\":\"delete_room\",\"method\":\"DELETE\",\"desc\":\"Delete a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"id\":\"string\",\"domain\":\"string\"},\"action\":\"delete\"},{\"path\":\"/muc-lights/:domain/:id/messages\",\"name\":\"send_message_to_muc_light_room\",\"method\":\"POST\",\"desc\":\"Send a message to a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"id\":\"string\",\"from\":\"string\",\"domain\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/:id/participants\",\"name\":\"invite_to_room\",\"method\":\"POST\",\"desc\":\"Invite to a MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"sender\":\"string\",\"recipient\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/muc-lights/:domain/config\",\"name\":\"change_muc_light_room_configuration\",\"method\":\"PUT\",\"desc\":\"Change configuration of MUC Light room.\",\"category\":\"muc-lights\",\"args\":{\"user\":\"string\",\"subject\":\"string\",\"name\":\"string\",\"id\":\"string\",\"domain\":\"string\"},\"action\":\"update\"},{\"path\":\"/mucs/:domain\",\"name\":\"create_muc_room\",\"method\":\"POST\",\"desc\":\"Create a MUC room.\",\"category\":\"mucs\",\"args\":{\"owner\":\"string\",\"nick\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/mucs/:domain/:name/:nick\",\"name\":\"kick_user_from_room\",\"method\":\"DELETE\",\"desc\":\"Kick a user from a MUC room (on behalf of a moderator).\",\"category\":\"mucs\",\"args\":{\"nick\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"delete\"},{\"path\":\"/mucs/:domain/:name/messages\",\"name\":\"send_message_to_room\",\"method\":\"POST\",\"desc\":\"Send a message to a MUC room from a given user.\",\"category\":\"mucs\",\"args\":{\"name\":\"string\",\"from\":\"string\",\"domain\":\"string\",\"body\":\"string\"},\"action\":\"create\"},{\"path\":\"/mucs/:domain/:name/participants\",\"name\":\"invite_to_muc_room\",\"method\":\"POST\",\"desc\":\"Send a MUC room invite from one user to another.\",\"category\":\"mucs\",\"args\":{\"sender\":\"string\",\"recipient\":\"string\",\"reason\":\"string\",\"name\":\"string\",\"domain\":\"string\"},\"action\":\"create\"},{\"path\":\"/sessions/:host\",\"name\":\"list_sessions\",\"method\":\"GET\",\"desc\":\"Get session list\",\"category\":\"sessions\",\"args\":{\"host\":\"string\"},\"action\":\"read\"},{\"path\":\"/sessions/:host/:user/:res\",\"name\":\"kick_user\",\"method\":\"DELETE\",\"desc\":\"Terminate user connection\",\"category\":\"sessions\",\"args\":{\"user\":\"string\",\"res\":\"string\",\"host\":\"string\"},\"action\":\"delete\"},{\"path\":\"/stanzas\",\"name\":\"send_stanza\",\"method\":\"POST\",\"desc\":\"Send an arbitrary stanza\",\"category\":\"stanzas\",\"args\":{\"stanza\":\"string\"},\"action\":\"create\"},{\"path\":\"/users\",\"name\":\"register_user\",\"method\":\"POST\",\"desc\":\"Register a user\",\"category\":\"users\",\"args\":{\"username\":\"string\",\"password\":\"string\",\"host\":\"string\"},\"action\":\"create\"},{\"path\":\"/users/:host\",\"name\":\"list_users\",\"method\":\"GET\",\"desc\":\"List registered users on this host\",\"category\":\"users\",\"args\":{\"host\":\"string\"},\"action\":\"read\"},{\"path\":\"/users/:host/:user\",\"name\":\"unregister_user\",\"method\":\"DELETE\",\"desc\":\"UnRegister a user\",\"category\":\"users\",\"args\":{\"user\":\"string\",\"host\":\"string\"},\"action\":\"delete\"},{\"path\":\"/users/:host/:user\",\"name\":\"change_password\",\"method\":\"PUT\",\"desc\":\"Change user password\",\"category\":\"users\",\"args\":{\"user\":\"string\",\"newpass\":\"string\",\"host\":\"string\"},\"action\":\"update\"}]">>,
         5868,922}
Params: #{body => <<>>,method => <<"GET">>,path => <<"/api/commands">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2022-03-18 11:00:03.203 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2002.html
*** CT 2022-03-18 11:00:03.203 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4731.html



=== Ended at 2022-03-18 11:00:03
=== successfully completed test case
=== === Returned value: {{<<"200">>,<<"OK">>},
                     [{[{<<"path">>,<<"/commands">>},
                        {<<"name">>,<<"list_methods">>},
                        {<<"method">>,<<"GET">>},
                        {<<"desc">>,<<"List commands">>},
                        {<<"category">>,<<"commands">>},
                        {<<"args">>,{[]}},
                        {<<"action">>,<<"read">>}]},
                      {[{<<"path">>,<<"/contacts">>},
                        {<<"name">>,<<"add_contact">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Add a contact to roster">>},
                        {<<"category">>,<<"contacts">>},
                        {<<"args">>,
                         {[{<<"jid">>,<<"string">>},
                           {<<"caller">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/contacts/:caller">>},
                        {<<"name">>,<<"list_contacts">>},
                        {<<"method">>,<<"GET">>},
                        {<<"desc">>,<<"Get roster">>},
                        {<<"category">>,<<"contacts">>},
                        {<<"args">>,{[{<<"caller">>,<<"string">>}]}},
                        {<<"action">>,<<"read">>}]},
                      {[{<<"path">>,<<"/contacts/:caller/:jid">>},
                        {<<"name">>,<<"subscription">>},
                        {<<"method">>,<<"PUT">>},
                        {<<"desc">>,<<"Send out a subscription request">>},
                        {<<"category">>,<<"contacts">>},
                        {<<"args">>,
                         {[{<<"jid">>,<<"string">>},
                           {<<"caller">>,<<"string">>},
                           {<<"action">>,<<"string">>}]}},
                        {<<"action">>,<<"update">>}]},
                      {[{<<"path">>,<<"/contacts/:caller/:jid">>},
                        {<<"name">>,<<"delete_contact">>},
                        {<<"method">>,<<"DELETE">>},
                        {<<"desc">>,<<"Remove a contact from roster">>},
                        {<<"category">>,<<"contacts">>},
                        {<<"args">>,
                         {[{<<"jid">>,<<"string">>},
                           {<<"caller">>,<<"string">>}]}},
                        {<<"action">>,<<"delete">>}]},
                      {[{<<"path">>,<<"/contacts/:caller/:jid/manage">>},
                        {<<"name">>,<<"set_subscription">>},
                        {<<"method">>,<<"PUT">>},
                        {<<"desc">>,<<"Set / unset mutual subscription">>},
                        {<<"category">>,<<"contacts">>},
                        {<<"args">>,
                         {[{<<"jid">>,<<"string">>},
                           {<<"caller">>,<<"string">>},
                           {<<"action">>,<<"string">>}]}},
                        {<<"action">>,<<"update">>}]},
                      {[{<<"path">>,<<"/contacts/:caller/:jids/multiple">>},
                        {<<"name">>,<<"delete_contacts">>},
                        {<<"method">>,<<"DELETE">>},
                        {<<"desc">>,
                         <<"Remove provided contacts from roster">>},
                        {<<"category">>,<<"contacts">>},
                        {<<"args">>,
                         {[{<<"jids">>,<<"[binary]">>},
                           {<<"caller">>,<<"string">>}]}},
                        {<<"action">>,<<"delete">>}]},
                      {[{<<"path">>,<<"/messages">>},
                        {<<"name">>,<<"send_message">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Send chat message from to">>},
                        {<<"category">>,<<"messages">>},
                        {<<"args">>,
                         {[{<<"to">>,<<"string">>},
                           {<<"caller">>,<<"string">>},
                           {<<"body">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/messages/:caller">>},
                        {<<"name">>,<<"get_last_messages_with_everybody">>},
                        {<<"method">>,<<"GET">>},
                        {<<"desc">>,
                         <<"Get n last messages from archive, optionally before a certain date (unixtime)">>},
                        {<<"category">>,<<"messages">>},
                        {<<"args">>,{[{<<"caller">>,<<"string">>}]}},
                        {<<"action">>,<<"read">>}]},
                      {[{<<"path">>,<<"/messages/:caller/:with">>},
                        {<<"name">>,<<"get_last_messages">>},
                        {<<"method">>,<<"GET">>},
                        {<<"desc">>,
                         <<"Get n last messages to/from given contact, with limit and date">>},
                        {<<"category">>,<<"messages">>},
                        {<<"args">>,
                         {[{<<"with">>,<<"string">>},
                           {<<"caller">>,<<"string">>}]}},
                        {<<"action">>,<<"read">>}]},
                      {[{<<"path">>,<<"/muc-lights/:domain">>},
                        {<<"name">>,<<"create_identifiable_muc_light_room">>},
                        {<<"method">>,<<"PUT">>},
                        {<<"desc">>,
                         <<"Create a MUC Light room with user-provided username part in JID">>},
                        {<<"category">>,<<"muc-lights">>},
                        {<<"args">>,
                         {[{<<"subject">>,<<"string">>},
                           {<<"owner">>,<<"string">>},
                           {<<"name">>,<<"string">>},
                           {<<"id">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"update">>}]},
                      {[{<<"path">>,<<"/muc-lights/:domain">>},
                        {<<"name">>,<<"create_muc_light_room">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,
                         <<"Create a MUC Light room with unique username part in JID.">>},
                        {<<"category">>,<<"muc-lights">>},
                        {<<"args">>,
                         {[{<<"subject">>,<<"string">>},
                           {<<"owner">>,<<"string">>},
                           {<<"name">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/muc-lights/:domain/:id/management">>},
                        {<<"name">>,<<"delete_room">>},
                        {<<"method">>,<<"DELETE">>},
                        {<<"desc">>,<<"Delete a MUC Light room.">>},
                        {<<"category">>,<<"muc-lights">>},
                        {<<"args">>,
                         {[{<<"id">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"delete">>}]},
                      {[{<<"path">>,<<"/muc-lights/:domain/:id/messages">>},
                        {<<"name">>,<<"send_message_to_muc_light_room">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Send a message to a MUC Light room.">>},
                        {<<"category">>,<<"muc-lights">>},
                        {<<"args">>,
                         {[{<<"id">>,<<"string">>},
                           {<<"from">>,<<"string">>},
                           {<<"domain">>,<<"string">>},
                           {<<"body">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,
                         <<"/muc-lights/:domain/:id/participants">>},
                        {<<"name">>,<<"invite_to_room">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Invite to a MUC Light room.">>},
                        {<<"category">>,<<"muc-lights">>},
                        {<<"args">>,
                         {[{<<"sender">>,<<"string">>},
                           {<<"recipient">>,<<"string">>},
                           {<<"id">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/muc-lights/:domain/config">>},
                        {<<"name">>,<<"change_muc_light_room_configuration">>},
                        {<<"method">>,<<"PUT">>},
                        {<<"desc">>,
                         <<"Change configuration of MUC Light room.">>},
                        {<<"category">>,<<"muc-lights">>},
                        {<<"args">>,
                         {[{<<"user">>,<<"string">>},
                           {<<"subject">>,<<"string">>},
                           {<<"name">>,<<"string">>},
                           {<<"id">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"update">>}]},
                      {[{<<"path">>,<<"/mucs/:domain">>},
                        {<<"name">>,<<"create_muc_room">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Create a MUC room.">>},
                        {<<"category">>,<<"mucs">>},
                        {<<"args">>,
                         {[{<<"owner">>,<<"string">>},
                           {<<"nick">>,<<"string">>},
                           {<<"name">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/mucs/:domain/:name/:nick">>},
                        {<<"name">>,<<"kick_user_from_room">>},
                        {<<"method">>,<<"DELETE">>},
                        {<<"desc">>,
                         <<"Kick a user from a MUC room (on behalf of a moderator).">>},
                        {<<"category">>,<<"mucs">>},
                        {<<"args">>,
                         {[{<<"nick">>,<<"string">>},
                           {<<"name">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"delete">>}]},
                      {[{<<"path">>,<<"/mucs/:domain/:name/messages">>},
                        {<<"name">>,<<"send_message_to_room">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,
                         <<"Send a message to a MUC room from a given user.">>},
                        {<<"category">>,<<"mucs">>},
                        {<<"args">>,
                         {[{<<"name">>,<<"string">>},
                           {<<"from">>,<<"string">>},
                           {<<"domain">>,<<"string">>},
                           {<<"body">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/mucs/:domain/:name/participants">>},
                        {<<"name">>,<<"invite_to_muc_room">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,
                         <<"Send a MUC room invite from one user to another.">>},
                        {<<"category">>,<<"mucs">>},
                        {<<"args">>,
                         {[{<<"sender">>,<<"string">>},
                           {<<"recipient">>,<<"string">>},
                           {<<"reason">>,<<"string">>},
                           {<<"name">>,<<"string">>},
                           {<<"domain">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/sessions/:host">>},
                        {<<"name">>,<<"list_sessions">>},
                        {<<"method">>,<<"GET">>},
                        {<<"desc">>,<<"Get session list">>},
                        {<<"category">>,<<"sessions">>},
                        {<<"args">>,{[{<<"host">>,<<"string">>}]}},
                        {<<"action">>,<<"read">>}]},
                      {[{<<"path">>,<<"/sessions/:host/:user/:res">>},
                        {<<"name">>,<<"kick_user">>},
                        {<<"method">>,<<"DELETE">>},
                        {<<"desc">>,<<"Terminate user connection">>},
                        {<<"category">>,<<"sessions">>},
                        {<<"args">>,
                         {[{<<"user">>,<<"string">>},
                           {<<"res">>,<<"string">>},
                           {<<"host">>,<<"string">>}]}},
                        {<<"action">>,<<"delete">>}]},
                      {[{<<"path">>,<<"/stanzas">>},
                        {<<"name">>,<<"send_stanza">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Send an arbitrary stanza">>},
                        {<<"category">>,<<"stanzas">>},
                        {<<"args">>,{[{<<"stanza">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/users">>},
                        {<<"name">>,<<"register_user">>},
                        {<<"method">>,<<"POST">>},
                        {<<"desc">>,<<"Register a user">>},
                        {<<"category">>,<<"users">>},
                        {<<"args">>,
                         {[{<<"username">>,<<"string">>},
                           {<<"password">>,<<"string">>},
                           {<<"host">>,<<"string">>}]}},
                        {<<"action">>,<<"create">>}]},
                      {[{<<"path">>,<<"/users/:host">>},
                        {<<"name">>,<<"list_users">>},
                        {<<"method">>,<<"GET">>},
                        {<<"desc">>,<<"List registered users on this host">>},
                        {<<"category">>,<<"users">>},
                        {<<"args">>,{[{<<"host">>,<<"string">>}]}},
                        {<<"action">>,<<"read">>}]},
                      {[{<<"path">>,<<"/users/:host/:user">>},
                        {<<"name">>,<<"unregister_user">>},
                        {<<"method">>,<<"DELETE">>},
                        {<<"desc">>,<<"UnRegister a user">>},
                        {<<"category">>,<<"users">>},
                        {<<"args">>,
                         {[{<<"user">>,<<"string">>},
                           {<<"host">>,<<"string">>}]}},
                        {<<"action">>,<<"delete">>}]},
                      {[{<<"path">>,<<"/users/:host/:user">>},
                        {<<"name">>,<<"change_password">>},
                        {<<"method">>,<<"PUT">>},
                        {<<"desc">>,<<"Change user password">>},
                        {<<"category">>,<<"users">>},
                        {<<"args">>,
                         {[{<<"user">>,<<"string">>},
                           {<<"newpass">>,<<"string">>},
                           {<<"host">>,<<"string">>}]}},
                        {<<"action">>,<<"update">>}]}]}