=== Test case: graphql_session_SUITE:domain_admin_list_sessions/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@localhost">>,<<"09efac4ede60d323">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.29216.0>}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"pgsql_cets"}, {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@84a66b53d67f.2024-04-23_06.47.26/big_tests.tests.graphql_session_SUITE.logs/run.2024-04-23_06.52.24/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@84a66b53d67f.2024-04-23_06.47.26/big_tests.tests.graphql_session_SUITE.logs/run.2024-04-23_06.52.24/log_private/"}, {{saved_modules,mongooseim@localhost,<<"localhost">>}, #{mod_vcard => #{matches => 30, host => {prefix,<<"vjud.">>}, search => true,backend => rdbms,iqdisc => parallel}, mod_roster => #{backend => rdbms,iqdisc => one_queue,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 => cets, 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 => cets,inactivity => 30,max_pause => 120, max_wait => infinity,server_acks => false}, mod_carboncopy => #{iqdisc => no_queue}, mod_cache_users => #{strategy => fifo,number_of_segments => 5,time_to_live => 2}}}, {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@84a66b53d67f.2024-04-23_06.47.26" === Started at 2024-04-23 06:52:36
*** User 2024-04-23 06:52:36.607 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.608 ***🔗 alicE_domain_admin_list_sessions_1256@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e6f087edcbbe32f0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:52:36.608 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.608 ***🔗 alicE_domain_admin_list_sessions_1256@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9saXN0X3Nlc3Npb25zXzEyNTYAbWF0eWdyeXNh</auth>
*** User 2024-04-23 06:52:36.609 ***🔗 alicE_domain_admin_list_sessions_1256@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:52:36.609 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.609 ***🔗 alicE_domain_admin_list_sessions_1256@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='16da12e62869080f' from='localhost' version='1.0' xml:lang='en' to='alice_domain_admin_list_sessions_1256@localhost'>
*** User 2024-04-23 06:52:36.609 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.609 ***🔗 alicE_domain_admin_list_sessions_1256@localhost/res1 out <iq type='set' id='a4e63911e444ebc6a86985d3a92d3641'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-23 06:52:36.610 ***🔗 alicE_domain_admin_list_sessions_1256@localhost/res1 in <iq id='a4e63911e444ebc6a86985d3a92d3641' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_list_sessions_1256@localhost/res1</jid> </bind> </iq>
*** User 2024-04-23 06:52:36.610 ***🔗 alice_domain_admin_list_sessions_1256@localhost/res1 out <iq type='set' id='6cc870a94628ca5dda3f1ec0746b9b72'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 06:52:36.611 ***🔗 alice_domain_admin_list_sessions_1256@localhost/res1 in <iq from='localhost' to='alice_domain_admin_list_sessions_1256@localhost/res1' id='6cc870a94628ca5dda3f1ec0746b9b72' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 06:52:36.611 ***🔗 alice_domain_admin_list_sessions_1256@localhost/res1 out <presence/>
*** User 2024-04-23 06:52:36.612 ***🔗 alice_domain_admin_list_sessions_1256@localhost/res1 in <presence from='alice_domain_admin_list_sessions_1256@localhost/res1' to='alice_domain_admin_list_sessions_1256@localhost/res1'/>
*** User 2024-04-23 06:52:36.612 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.613 ***🔗 alicE_domain_admin_list_sessions_1256@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='22880f77af191083' from='localhost.bis' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:52:36.613 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.613 ***🔗 alicE_domain_admin_list_sessions_1256@localhost.bis/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9saXN0X3Nlc3Npb25zXzEyNTYAbWF0eWdyeXNh</auth>
*** User 2024-04-23 06:52:36.614 ***🔗 alicE_domain_admin_list_sessions_1256@localhost.bis/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:52:36.614 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.615 ***🔗 alicE_domain_admin_list_sessions_1256@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b29fda45357302aa' from='localhost.bis' version='1.0' xml:lang='en' to='alice_domain_admin_list_sessions_1256@localhost.bis'>
*** User 2024-04-23 06:52:36.615 ***🔗 alicE_domain_admin_list_sessions_1256@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-23 06:52:36.615 ***🔗 alicE_domain_admin_list_sessions_1256@localhost.bis/res1 out <iq type='set' id='46cc31cc463111a6c60033214336377f'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-23 06:52:36.615 ***🔗 alicE_domain_admin_list_sessions_1256@localhost.bis/res1 in <iq id='46cc31cc463111a6c60033214336377f' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_list_sessions_1256@localhost.bis/res1</jid> </bind> </iq>
*** User 2024-04-23 06:52:36.615 ***🔗 alice_domain_admin_list_sessions_1256@localhost.bis/res1 out <iq type='set' id='567ce78ed8db20f42406ce723e4e8900'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 06:52:36.616 ***🔗 alice_domain_admin_list_sessions_1256@localhost.bis/res1 in <iq from='localhost.bis' to='alice_domain_admin_list_sessions_1256@localhost.bis/res1' id='567ce78ed8db20f42406ce723e4e8900' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 06:52:36.616 ***🔗 alice_domain_admin_list_sessions_1256@localhost.bis/res1 out <presence/>
*** User 2024-04-23 06:52:36.617 ***🔗 alice_domain_admin_list_sessions_1256@localhost.bis/res1 in <presence from='alice_domain_admin_list_sessions_1256@localhost.bis/res1' to='alice_domain_admin_list_sessions_1256@localhost.bis/res1'/>
*** User 2024-04-23 06:52:36.617 ***🔗 bOb_domain_admin_list_sessions_1256@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-23 06:52:36.618 ***🔗 bOb_domain_admin_list_sessions_1256@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6265435fc954470' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 06:52:36.618 ***🔗 bOb_domain_admin_list_sessions_1256@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-23 06:52:36.618 ***🔗 bOb_domain_admin_list_sessions_1256@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kb21haW5fYWRtaW5fbGlzdF9zZXNzaW9uc18xMjU2AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-23 06:52:36.619 ***🔗 bOb_domain_admin_list_sessions_1256@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 06:52:36.619 ***🔗 bOb_domain_admin_list_sessions_1256@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-23 06:52:36.619 ***🔗 bOb_domain_admin_list_sessions_1256@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0cc58fb62aea9bca' from='localhost' version='1.0' xml:lang='en' to='bob_domain_admin_list_sessions_1256@localhost'>
*** User 2024-04-23 06:52:36.619 ***🔗 bOb_domain_admin_list_sessions_1256@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-23 06:52:36.619 ***🔗 bOb_domain_admin_list_sessions_1256@localhost/res1 out <iq type='set' id='a2e2e9ab4a417f3d65247710e6c4bac7'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-23 06:52:36.620 ***🔗 bOb_domain_admin_list_sessions_1256@localhost/res1 in <iq id='a2e2e9ab4a417f3d65247710e6c4bac7' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_domain_admin_list_sessions_1256@localhost/res1</jid> </bind> </iq>
*** User 2024-04-23 06:52:36.620 ***🔗 bob_domain_admin_list_sessions_1256@localhost/res1 out <iq type='set' id='541e44a30d1918a3248c3ce16fafdfc7'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 06:52:36.620 ***🔗 bob_domain_admin_list_sessions_1256@localhost/res1 in <iq from='localhost' to='bob_domain_admin_list_sessions_1256@localhost/res1' id='541e44a30d1918a3248c3ce16fafdfc7' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 06:52:36.620 ***🔗 bob_domain_admin_list_sessions_1256@localhost/res1 out <presence/>
*** User 2024-04-23 06:52:36.622 ***🔗 bob_domain_admin_list_sessions_1256@localhost/res1 in <presence from='bob_domain_admin_list_sessions_1256@localhost/res1' to='bob_domain_admin_list_sessions_1256@localhost/res1'/>
*** User 2024-04-23 06:52:36.629 ***🔗 REST request fails: Code: 401 Req: {<0.29227.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"f397e36ff1442f1b">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjA5ZWZhYzRlZGU2MGQzMjM=">>}], <<"{\"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">>,<<"Tue, 23 Apr 2024 06:52:36 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,6076} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, creds => {<<"admin@localhost">>,<<"09efac4ede60d323">>}, role => {graphql,domain_admin}, method => <<"POST">>, body => <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>, return_maps => true,return_headers => true}
*** User 2024-04-23 06:52:36.637 ***🔗 REST request fails: Code: 401 Req: {<0.29229.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"26158c0875e27194">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjA5ZWZhYzRlZGU2MGQzMjM=">>}], <<"{\"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">>,<<"Tue, 23 Apr 2024 06:52:36 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,7037} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, creds => {<<"admin@localhost">>,<<"09efac4ede60d323">>}, role => {graphql,domain_admin}, method => <<"POST">>, body => <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>, return_maps => true,return_headers => true}
*** User 2024-04-23 06:52:36.645 ***🔗 REST request: Code: 200 Req: {<0.29231.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"df52d6af04a0abca">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjA5ZWZhYzRlZGU2MGQzMjM=">>}], <<"{\"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">>,<<"Tue, 23 Apr 2024 06:52:36 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"371">>}], <<"{\"data\":{\"session\":{\"listSessions\":[{\"user\":\"alice_domain_admin_list_sessions_1256@localhost/res1\",\"uptime\":0,\"priority\":0,\"port\":59742,\"node\":\"mongooseim@localhost\",\"ip\":\"127.0.0.1\",\"connection\":\"c2s\"},{\"user\":\"bob_domain_admin_list_sessions_1256@localhost/res1\",\"uptime\":0,\"priority\":0,\"port\":59768,\"node\":\"mongooseim@localhost\",\"ip\":\"127.0.0.1\",\"connection\":\"c2s\"}]}}}">>, 510,6125} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, creds => {<<"admin@localhost">>,<<"09efac4ede60d323">>}, role => {graphql,domain_admin}, method => <<"POST">>, body => <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { listSessions(domain: $domain) { connection ip node port priority uptime user } } }\"}">>, return_maps => true,return_headers => true}
*** User 2024-04-23 06:52:36.645 ***🔗 bob_domain_admin_list_sessions_1256@localhost/res1 out </stream:stream>
*** User 2024-04-23 06:52:36.646 ***🔗 bob_domain_admin_list_sessions_1256@localhost/res1 in </stream:stream>
*** User 2024-04-23 06:52:36.646 ***🔗 alice_domain_admin_list_sessions_1256@localhost.bis/res1 out </stream:stream>
*** User 2024-04-23 06:52:36.646 ***🔗 alice_domain_admin_list_sessions_1256@localhost.bis/res1 in </stream:stream>
*** User 2024-04-23 06:52:36.646 ***🔗 alice_domain_admin_list_sessions_1256@localhost/res1 out </stream:stream>
*** User 2024-04-23 06:52:36.646 ***🔗 alice_domain_admin_list_sessions_1256@localhost/res1 in </stream:stream>
=== Ended at 2024-04-23 06:52:36 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result