=== 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.15587.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@f4c4c3a5d63b.2024-04-26_12.39.34/big_tests.tests.graphql_sse_SUITE.logs/run.2024-04-26_12.41.52/graphql_sse_suite.admin_invalid_method.36482.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@f4c4c3a5d63b.2024-04-26_12.39.34/big_tests.tests.graphql_sse_SUITE.logs/run.2024-04-26_12.41.52/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f4c4c3a5d63b.2024-04-26_12.39.34"
=== Started at 2024-04-26 12:41:52
*** User 2024-04-26 12:41:52.287 ***🔗
REST request fails:
Code: 405
Req: {<0.15644.0>,<<"/api/graphql/sse">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"99d755981722a048">>}],
<<"{\"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">>,<<"Fri, 26 Apr 2024 12:41:52 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"0">>}],
<<>>,132,515}
Params: #{port => 5551,path => <<"/api/graphql/sse">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,return_maps => true,
body =>
<<"{\"variables\":{\"caller\":\"alice@localhost\"},\"query\":\"subscription ($caller: JID!) { stanza { subscribeForMessages(caller: $caller) { sender stanza stanza_id timestamp } } }\"}">>,
role => {graphql,admin},
creds => undefined,return_headers => true}
=== Ended at 2024-04-26 12:41:52
=== successfully completed test case
=== === Returned value: ok