=== Test case: graphql_sse_SUITE:admin_invalid_method/1 (click for source code)

=== Config value:

    [{protocol,http},
     {schema_endpoint,admin},
     {listener_opts,#{module => mongoose_graphql_handler,
                      path => "/api/graphql",host => "localhost",
                      password => <<"secret">>,username => <<"admin">>,
                      schema_endpoint => admin,sse_idle_timeout => 3600000}},
     {watchdog,<0.13988.0>},
     {preset,"internal_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_sse_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@b67e57153976.2024-03-21_07.46.15/big_tests.tests.graphql_sse_SUITE.logs/run.2024-03-21_07.48.18/graphql_sse_suite.admin_invalid_method.30850.html"},
     {tc_group_properties,[{name,admin},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_sse_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@b67e57153976.2024-03-21_07.46.15/big_tests.tests.graphql_sse_SUITE.logs/run.2024-03-21_07.48.18/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@b67e57153976.2024-03-21_07.46.15"

=== Started at 2024-03-21 07:48:18


*** CT 2024-03-21 07:48:18.859 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1519.html

*** User 2024-03-21 07:48:18.861 ***🔗
REST request fails:
Code: 405
Req: {<0.14045.0>,<<"/api/graphql/sse">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e04da2f9907c5f4a">>}],
      <<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>}
Result: {{<<"405">>,<<"Method Not Allowed">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:48:18 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,132,371}
Params: #{port => 5551,path => <<"/api/graphql/sse">>,
          server => #{node => mongooseim@localhost},
          role => {graphql,admin},
          method => <<"POST">>,creds => undefined,
          body =>
              <<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>,
          return_maps => true,return_headers => true}

*** CT 2024-03-21 07:48:18.862 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1519.html



=== Ended at 2024-03-21 07:48:18
=== successfully completed test case
=== === Returned value: ok