=== 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",
                      username => <<"admin">>,password => <<"secret">>,
                      sse_idle_timeout => 3600000,schema_endpoint => admin}},
     {watchdog,<0.15123.0>},
     {preset,"mysql_redis"},
     {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@18ee0445589c.2024-02-29_09.59.53/big_tests.tests.graphql_sse_SUITE.logs/run.2024-02-29_10.02.15/graphql_sse_suite.admin_invalid_method.25602.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@18ee0445589c.2024-02-29_09.59.53/big_tests.tests.graphql_sse_SUITE.logs/run.2024-02-29_10.02.15/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@18ee0445589c.2024-02-29_09.59.53"

=== Started at 2024-02-29 10:02:16


*** CT 2024-02-29 10:02:16.064 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1350.html

*** User 2024-02-29 10:02:16.067 ***🔗
REST request fails:
Code: 405
Req: {<0.15180.0>,<<"/api/graphql/sse">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"60b4a5be5b22dc74">>}],
      <<"{\"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, 29 Feb 2024 10:02:15 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,132,433}
Params: #{port => 5551,path => <<"/api/graphql/sse">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          role => {graphql,admin},
          body =>
              <<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>,
          return_maps => true,creds => undefined,return_headers => true}

*** CT 2024-02-29 10:02:16.069 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1350.html



=== Ended at 2024-02-29 10:02:16
=== successfully completed test case
=== === Returned value: ok