=== 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.15804.0>},
     {preset,"odbc_mssql_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@941180682e43.2024-04-22_14.49.42/big_tests.tests.graphql_sse_SUITE.logs/run.2024-04-22_14.52.31/graphql_sse_suite.admin_invalid_method.32259.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@941180682e43.2024-04-22_14.49.42/big_tests.tests.graphql_sse_SUITE.logs/run.2024-04-22_14.52.31/log_private/"}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@941180682e43.2024-04-22_14.49.42"

=== Started at 2024-04-22 14:52:31


*** CT 2024-04-22 14:52:31.237 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1513.html

*** User 2024-04-22 14:52:31.243 ***🔗
REST request fails:
Code: 405
Req: {<0.15861.0>,<<"/api/graphql/sse">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f465f6a4fcdee6d0">>}],
      <<"{\"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">>,<<"Mon, 22 Apr 2024 14:52:30 GMT">>},
          {<<"content-type">>,<<"text/html">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,132,378}
Params: #{port => 5551,path => <<"/api/graphql/sse">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>,
          role => {graphql,admin},
          method => <<"POST">>,return_maps => true,creds => undefined,
          return_headers => true}

*** CT 2024-04-22 14:52:31.244 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1513.html



=== Ended at 2024-04-22 14:52:31
=== successfully completed test case
=== === Returned value: ok