=== Test case: graphql_sse_SUITE:user_invalid_method/1 (click for source code)
=== Config value:
[{schema_endpoint,user},
{watchdog,<0.16035.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.graphql_sse_SUITE.logs/run.2024-04-25_12.04.07/graphql_sse_suite.user_invalid_method.28803.html"},
{tc_group_properties,[{name,user},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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.graphql_sse_SUITE.logs/run.2024-04-25_12.04.07/log_private/"}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@26557528e1a5.2024-04-25_12.01.25"
=== Started at 2024-04-25 12:04:08
*** User 2024-04-25 12:04:08.353 ***🔗
alicE_user_invalid_method_782@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 12:04:08.354 ***🔗
alicE_user_invalid_method_782@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6be8b6e0e34b940' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:04:08.354 ***🔗
alicE_user_invalid_method_782@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-25 12:04:08.354 ***🔗
alicE_user_invalid_method_782@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfaW52YWxpZF9tZXRob2RfNzgyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 12:04:08.355 ***🔗
alicE_user_invalid_method_782@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:04:08.355 ***🔗
alicE_user_invalid_method_782@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 12:04:08.356 ***🔗
alicE_user_invalid_method_782@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e50d98ee2cac99a' from='localhost' version='1.0' xml:lang='en' to='alice_user_invalid_method_782@localhost'>
*** User 2024-04-25 12:04:08.356 ***🔗
alicE_user_invalid_method_782@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-25 12:04:08.356 ***🔗
alicE_user_invalid_method_782@localhost/res1 out
<iq type='set' id='3316398105564eb1913b9c4d3e2e7a84'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:04:08.356 ***🔗
alicE_user_invalid_method_782@localhost/res1 in
<iq id='3316398105564eb1913b9c4d3e2e7a84' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_invalid_method_782@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:04:08.357 ***🔗
alice_user_invalid_method_782@localhost/res1 out
<iq type='set' id='b83fb2570bc80bea93d82cb819972baf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:04:08.358 ***🔗
alice_user_invalid_method_782@localhost/res1 in
<iq from='localhost' to='alice_user_invalid_method_782@localhost/res1' id='b83fb2570bc80bea93d82cb819972baf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:04:08.358 ***🔗
alice_user_invalid_method_782@localhost/res1 out
<presence/>
*** User 2024-04-25 12:04:08.359 ***🔗
alice_user_invalid_method_782@localhost/res1 in
<presence from='alice_user_invalid_method_782@localhost/res1' to='alice_user_invalid_method_782@localhost/res1'/>
*** User 2024-04-25 12:04:08.361 ***🔗
REST request fails:
Code: 405
Req: {<0.16111.0>,<<"/api/graphql/sse">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"77c7f6979fb9dd17">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9pbnZhbGlkX21ldGhvZF83ODJAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"query\":\"subscription { stanza { subscribeForMessages { sender stanza stanza_id timestamp } } }\"}">>}
Result: {{<<"405">>,<<"Method Not Allowed">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:04:07 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"0">>}],
<<>>,132,330}
Params: #{port => 5561,path => <<"/api/graphql/sse">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
role => {graphql,user},
creds =>
{<<"alice_user_invalid_method_782@localhost">>,<<"matygrysa">>},
return_maps => true,
body =>
<<"{\"query\":\"subscription { stanza { subscribeForMessages { sender stanza stanza_id timestamp } } }\"}">>,
return_headers => true}
*** User 2024-04-25 12:04:08.361 ***🔗
alice_user_invalid_method_782@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:04:08.361 ***🔗
alice_user_invalid_method_782@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 12:04:08
=== successfully completed test case
=== === Returned value: ok