=== 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">>,
schema_endpoint => admin}},
{watchdog,<0.15567.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.graphql_sse_SUITE.logs/run.2023-11-23_14.16.37/graphql_sse_suite.admin_invalid_method.20995.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@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.graphql_sse_SUITE.logs/run.2023-11-23_14.16.37/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58"
=== Started at 2023-11-23 14:16:37
*** User 2023-11-23 14:16:37.532 ***🔗
REST request fails:
Code: 405
Req: {<0.15624.0>,<<"/api/graphql/sse">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e6b9f98d358ff3ae">>}],
<<"{\"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, 23 Nov 2023 14:16:37 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"0">>}],
<<>>,132,399}
Params: #{port => 5551,path => <<"/api/graphql/sse">>,
server => #{node => mongooseim@localhost},
role => {graphql,admin},
body =>
<<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>,
method => <<"POST">>,creds => undefined,return_maps => true,
return_headers => true}
=== Ended at 2023-11-23 14:16:37
=== successfully completed test case
=== === Returned value: ok