=== Test case: graphql_session_SUITE:domain_admin_list_sessions/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@localhost">>,<<"0a2916b63528579e">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.28370.0>}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"odbc_mssql_mnesia"}, {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_session_SUITE_data"}, {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ffe67ba8737e.2024-04-25_12.01.32/big_tests.tests.graphql_session_SUITE.logs/run.2024-04-25_12.06.36/graphql_session_suite.domain_admin_list_sessions.html"}, {tc_group_properties,[{name,domain_admin_session}]}, {tc_group_path,[]}, {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_session_SUITE_data/"}, {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@ffe67ba8737e.2024-04-25_12.01.32/big_tests.tests.graphql_session_SUITE.logs/run.2024-04-25_12.06.36/log_private/"}, {{saved_modules,mongooseim@localhost,<<"localhost">>}, #{mod_vcard => #{matches => 30, host => {prefix,<<"vjud.">>}, search => true,iqdisc => parallel,backend => rdbms}, mod_roster => #{iqdisc => one_queue,backend => rdbms,versioning => false, store_current_id => false}, mod_register => #{access => register,iqdisc => one_queue, registration_watchers => [],password_strength => 0, ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]}, mod_sic => #{iqdisc => one_queue}, mod_amp => #{}, mod_disco => #{iqdisc => one_queue,server_info => [],extra_domains => [], users_can_see_hidden_services => false}, mod_presence => #{}, mod_stream_management => #{buffer => true,ack => true,backend => mnesia, stale_h => #{enabled => false,repeat_after => 1800,geriatric => 3600}, buffer_max => 100,ack_freq => 1,resume_timeout => 600}, mod_adhoc => #{iqdisc => one_queue,report_commands_node => false}, mod_bosh => #{backend => mnesia,inactivity => 30,max_pause => 120, max_wait => infinity,server_acks => false}, mod_cache_users => #{strategy => fifo,number_of_segments => 5,time_to_live => 2}, mod_carboncopy => #{iqdisc => no_queue}}}, {escalus_users,[{alice,[{username,<<"alicE">>}, {server,<<"localhost">>}, {password,<<"matygrysa">>}]}, {alice_bis,[{username,<<"alicE">>}, {server,<<"localhost.bis">>}, {host,<<"localhost">>}, {password,<<"matygrysa">>}]}, {bob,[{username,<<"bOb">>}, {server,<<"localhost">>}, {password,<<"makrolika">>}]}]}] === Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ffe67ba8737e.2024-04-25_12.01.32" === Started at 2024-04-25 12:06:47
*** User 2024-04-25 12:06:47.830 ***🔗 alicE_domain_admin_list_sessions_1249@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:06:47.830 ***🔗 alicE_domain_admin_list_sessions_1249@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88636a74d9b1720e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:06:47.830 ***🔗 alicE_domain_admin_list_sessions_1249@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:06:47.830 ***🔗 alicE_domain_admin_list_sessions_1249@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9saXN0X3Nlc3Npb25zXzEyNDkAbWF0eWdyeXNh</auth>
*** User 2024-04-25 12:06:47.831 ***🔗 alicE_domain_admin_list_sessions_1249@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:06:47.831 ***🔗 alicE_domain_admin_list_sessions_1249@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:06:47.831 ***🔗 alicE_domain_admin_list_sessions_1249@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='926c854790c35d60' from='localhost' version='1.0' xml:lang='en' to='alice_domain_admin_list_sessions_1249@localhost'>
*** User 2024-04-25 12:06:47.831 ***🔗 alicE_domain_admin_list_sessions_1249@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:06:47.831 ***🔗 alicE_domain_admin_list_sessions_1249@localhost/res1 out <iq type='set' id='c6260b6842e8197c73e5d94f24ba50e4'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-25 12:06:47.832 ***🔗 alicE_domain_admin_list_sessions_1249@localhost/res1 in <iq id='c6260b6842e8197c73e5d94f24ba50e4' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_list_sessions_1249@localhost/res1</jid> </bind> </iq>
*** User 2024-04-25 12:06:47.832 ***🔗 alice_domain_admin_list_sessions_1249@localhost/res1 out <iq type='set' id='b1b0f1a8ad0acc10207cc94db185df34'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-25 12:06:47.832 ***🔗 alice_domain_admin_list_sessions_1249@localhost/res1 in <iq from='localhost' to='alice_domain_admin_list_sessions_1249@localhost/res1' id='b1b0f1a8ad0acc10207cc94db185df34' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-25 12:06:47.832 ***🔗 alice_domain_admin_list_sessions_1249@localhost/res1 out <presence/>
*** User 2024-04-25 12:06:47.833 ***🔗 alice_domain_admin_list_sessions_1249@localhost/res1 in <presence from='alice_domain_admin_list_sessions_1249@localhost/res1' to='alice_domain_admin_list_sessions_1249@localhost/res1'/>
*** User 2024-04-25 12:06:47.834 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 out <stream:stream to='localhost.bis' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 12:06:47.834 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='989fae33836643b9' from='localhost.bis' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:06:47.834 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/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:06:47.834 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9saXN0X3Nlc3Npb25zXzEyNDkAbWF0eWdyeXNh</auth>
*** User 2024-04-25 12:06:47.835 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:06:47.835 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 out <stream:stream to='localhost.bis' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-25 12:06:47.835 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e822acc4d18e056' from='localhost.bis' version='1.0' xml:lang='en' to='alice_domain_admin_list_sessions_1249@localhost.bis'>
*** User 2024-04-25 12:06:47.836 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/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:06:47.836 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 out <iq type='set' id='e341fdd9fde2ad7c554d286b813eb2db'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-25 12:06:47.836 ***🔗 alicE_domain_admin_list_sessions_1249@localhost.bis/res1 in <iq id='e341fdd9fde2ad7c554d286b813eb2db' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_list_sessions_1249@localhost.bis/res1</jid> </bind> </iq>
*** User 2024-04-25 12:06:47.836 ***🔗 alice_domain_admin_list_sessions_1249@localhost.bis/res1 out <iq type='set' id='ce7796ed6dfd9b1c87977b123dd92fd7'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-25 12:06:47.836 ***🔗 alice_domain_admin_list_sessions_1249@localhost.bis/res1 in <iq from='localhost.bis' to='alice_domain_admin_list_sessions_1249@localhost.bis/res1' id='ce7796ed6dfd9b1c87977b123dd92fd7' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-25 12:06:47.836 ***🔗 alice_domain_admin_list_sessions_1249@localhost.bis/res1 out <presence/>
*** User 2024-04-25 12:06:47.838 ***🔗 alice_domain_admin_list_sessions_1249@localhost.bis/res1 in <presence from='alice_domain_admin_list_sessions_1249@localhost.bis/res1' to='alice_domain_admin_list_sessions_1249@localhost.bis/res1'/>
*** User 2024-04-25 12:06:47.838 ***🔗 bOb_domain_admin_list_sessions_1249@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:06:47.838 ***🔗 bOb_domain_admin_list_sessions_1249@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b768b8ce8c950c3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:06:47.839 ***🔗 bOb_domain_admin_list_sessions_1249@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:06:47.839 ***🔗 bOb_domain_admin_list_sessions_1249@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kb21haW5fYWRtaW5fbGlzdF9zZXNzaW9uc18xMjQ5AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-25 12:06:47.839 ***🔗 bOb_domain_admin_list_sessions_1249@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:06:47.840 ***🔗 bOb_domain_admin_list_sessions_1249@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:06:47.840 ***🔗 bOb_domain_admin_list_sessions_1249@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5263c2101e8f098' from='localhost' version='1.0' xml:lang='en' to='bob_domain_admin_list_sessions_1249@localhost'>
*** User 2024-04-25 12:06:47.840 ***🔗 bOb_domain_admin_list_sessions_1249@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:06:47.840 ***🔗 bOb_domain_admin_list_sessions_1249@localhost/res1 out <iq type='set' id='c00b0ce4ea71fb70b32b18e11824cb67'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-25 12:06:47.840 ***🔗 bOb_domain_admin_list_sessions_1249@localhost/res1 in <iq id='c00b0ce4ea71fb70b32b18e11824cb67' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_domain_admin_list_sessions_1249@localhost/res1</jid> </bind> </iq>
*** User 2024-04-25 12:06:47.840 ***🔗 bob_domain_admin_list_sessions_1249@localhost/res1 out <iq type='set' id='70c3172718cb153c18978b9a9040dea5'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-25 12:06:47.841 ***🔗 bob_domain_admin_list_sessions_1249@localhost/res1 in <iq from='localhost' to='bob_domain_admin_list_sessions_1249@localhost/res1' id='70c3172718cb153c18978b9a9040dea5' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-25 12:06:47.841 ***🔗 bob_domain_admin_list_sessions_1249@localhost/res1 out <presence/>
*** User 2024-04-25 12:06:47.842 ***🔗 bob_domain_admin_list_sessions_1249@localhost/res1 in <presence from='bob_domain_admin_list_sessions_1249@localhost/res1' to='bob_domain_admin_list_sessions_1249@localhost/res1'/>
*** User 2024-04-25 12:06:47.849 ***🔗 REST request fails: Code: 401 Req: {<0.28381.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"7cdb39f93f353bd7">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjBhMjkxNmI2MzUyODU3OWU=">>}], <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 25 Apr 2024 12:06:47 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"205">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"session\",\"listSessions\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\"}]}">>, 354,6168} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, role => {graphql,domain_admin}, method => <<"POST">>, creds => {<<"admin@localhost">>,<<"0a2916b63528579e">>}, return_maps => true, body => <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>, return_headers => true}
*** User 2024-04-25 12:06:47.856 ***🔗 REST request fails: Code: 401 Req: {<0.28383.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"2e9016f9eca44917">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjBhMjkxNmI2MzUyODU3OWU=">>}], <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 25 Apr 2024 12:06:47 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"205">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"session\",\"listSessions\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\"}]}">>, 354,6251} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, role => {graphql,domain_admin}, method => <<"POST">>, creds => {<<"admin@localhost">>,<<"0a2916b63528579e">>}, return_maps => true, body => <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>, return_headers => true}
*** User 2024-04-25 12:06:47.864 ***🔗 REST request: Code: 200 Req: {<0.28385.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"ccaf413eed6433fa">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjBhMjkxNmI2MzUyODU3OWU=">>}], <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 25 Apr 2024 12:06:47 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"371">>}], <<"{\"data\":{\"session\":{\"listSessions\":[{\"user\":\"alice_domain_admin_list_sessions_1249@localhost/res1\",\"uptime\":0,\"priority\":0,\"port\":32832,\"node\":\"mongooseim@localhost\",\"ip\":\"127.0.0.1\",\"connection\":\"c2s\"},{\"user\":\"bob_domain_admin_list_sessions_1249@localhost/res1\",\"uptime\":0,\"priority\":0,\"port\":32860,\"node\":\"mongooseim@localhost\",\"ip\":\"127.0.0.1\",\"connection\":\"c2s\"}]}}}">>, 510,6453} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, role => {graphql,domain_admin}, method => <<"POST">>, creds => {<<"admin@localhost">>,<<"0a2916b63528579e">>}, return_maps => true, body => <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>, return_headers => true}
*** User 2024-04-25 12:06:47.864 ***🔗 bob_domain_admin_list_sessions_1249@localhost/res1 out </stream:stream>
*** User 2024-04-25 12:06:47.865 ***🔗 bob_domain_admin_list_sessions_1249@localhost/res1 in </stream:stream>
*** User 2024-04-25 12:06:47.865 ***🔗 alice_domain_admin_list_sessions_1249@localhost.bis/res1 out </stream:stream>
*** User 2024-04-25 12:06:47.865 ***🔗 alice_domain_admin_list_sessions_1249@localhost.bis/res1 in </stream:stream>
*** User 2024-04-25 12:06:47.865 ***🔗 alice_domain_admin_list_sessions_1249@localhost/res1 out </stream:stream>
*** User 2024-04-25 12:06:47.865 ***🔗 alice_domain_admin_list_sessions_1249@localhost/res1 in </stream:stream>
=== Ended at 2024-04-25 12:06:47 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result