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

=== Config value:

    [{protocol,http},
     {schema_endpoint,admin},
     {listener_opts,#{host => "localhost",module => mongoose_graphql_handler,
                      password => <<"secret">>,path => "/api/graphql",
                      schema_endpoint => admin,sse_idle_timeout => 3600000,
                      username => <<"admin">>}},
     {watchdog,<0.15616.0>},
     {preset,"pgsql_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@cf03cc25b0e7.2024-03-12_11.07.06/big_tests.tests.graphql_sse_SUITE.logs/run.2024-03-12_11.09.45/graphql_sse_suite.admin_invalid_method.27651.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@cf03cc25b0e7.2024-03-12_11.07.06/big_tests.tests.graphql_sse_SUITE.logs/run.2024-03-12_11.09.45/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@cf03cc25b0e7.2024-03-12_11.07.06"

=== Started at 2024-03-12 11:09:45


*** CT 2024-03-12 11:09:45.489 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1508.html

*** User 2024-03-12 11:09:45.492 ***🔗
REST request fails:
Code: 405
Req: {<0.15673.0>,<<"/api/graphql/sse">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f3b7413b27dd7a50">>}],
      <<"{\"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">>,<<"Tue, 12 Mar 2024 11:09:44 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,132,424}
Params: #{body =>
              <<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>,
          creds => undefined,method => <<"POST">>,
          path => <<"/api/graphql/sse">>,port => 5551,return_headers => true,
          return_maps => true,
          role => {graphql,admin},
          server => #{node => mongooseim@localhost}}

*** CT 2024-03-12 11:09:45.505 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1508.html



=== Ended at 2024-03-12 11:09:45
=== successfully completed test case
=== === Returned value: ok