=== Test case: graphql_session_SUITE:domain_admin_count_sessions/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@localhost">>,<<"52fdc977613aeeec">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.28879.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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.graphql_session_SUITE.logs/run.2024-03-21_07.51.05/graphql_session_suite.domain_admin_count_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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.graphql_session_SUITE.logs/run.2024-03-21_07.51.05/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_amp => #{}, mod_sic => #{iqdisc => one_queue}, 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_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_cache_users => #{strategy => fifo,number_of_segments => 5,time_to_live => 2}, mod_bosh => #{backend => cets,inactivity => 30,max_pause => 120, max_wait => infinity,server_acks => false}, 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@e06ff82a20fb.2024-03-21_07.45.38" === Started at 2024-03-21 07:51:23
*** User 2024-03-21 07:51:23.973 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.974 ***🔗 alicE_domain_admin_count_sessions_1274@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81f4d5a4820ef918' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:23.974 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.974 ***🔗 alicE_domain_admin_count_sessions_1274@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9jb3VudF9zZXNzaW9uc18xMjc0AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:51:23.975 ***🔗 alicE_domain_admin_count_sessions_1274@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:23.976 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.976 ***🔗 alicE_domain_admin_count_sessions_1274@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb184c9c06351001' from='localhost' version='1.0' xml:lang='en' to='alice_domain_admin_count_sessions_1274@localhost'>
*** User 2024-03-21 07:51:23.976 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.976 ***🔗 alicE_domain_admin_count_sessions_1274@localhost/res1 out <iq type='set' id='5e90a94ac6b0d4a8bfc20ba88108befc'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-03-21 07:51:23.976 ***🔗 alicE_domain_admin_count_sessions_1274@localhost/res1 in <iq id='5e90a94ac6b0d4a8bfc20ba88108befc' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_count_sessions_1274@localhost/res1</jid> </bind> </iq>
*** User 2024-03-21 07:51:23.977 ***🔗 alice_domain_admin_count_sessions_1274@localhost/res1 out <iq type='set' id='6a9ce80b905ded6d64da2491b45e04ab'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:51:23.977 ***🔗 alice_domain_admin_count_sessions_1274@localhost/res1 in <iq from='localhost' to='alice_domain_admin_count_sessions_1274@localhost/res1' id='6a9ce80b905ded6d64da2491b45e04ab' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:51:23.978 ***🔗 alice_domain_admin_count_sessions_1274@localhost/res1 out <presence/>
*** User 2024-03-21 07:51:23.979 ***🔗 alice_domain_admin_count_sessions_1274@localhost/res1 in <presence from='alice_domain_admin_count_sessions_1274@localhost/res1' to='alice_domain_admin_count_sessions_1274@localhost/res1'/>
*** User 2024-03-21 07:51:23.980 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.980 ***🔗 alicE_domain_admin_count_sessions_1274@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c3331bd6b53e015' from='localhost.bis' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:23.981 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.981 ***🔗 alicE_domain_admin_count_sessions_1274@localhost.bis/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9jb3VudF9zZXNzaW9uc18xMjc0AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:51:23.982 ***🔗 alicE_domain_admin_count_sessions_1274@localhost.bis/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:23.982 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.982 ***🔗 alicE_domain_admin_count_sessions_1274@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bfd8bce7f2fccc50' from='localhost.bis' version='1.0' xml:lang='en' to='alice_domain_admin_count_sessions_1274@localhost.bis'>
*** User 2024-03-21 07:51:23.982 ***🔗 alicE_domain_admin_count_sessions_1274@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-03-21 07:51:23.982 ***🔗 alicE_domain_admin_count_sessions_1274@localhost.bis/res1 out <iq type='set' id='33a53f38d47524e88866bffe40427259'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-03-21 07:51:23.983 ***🔗 alicE_domain_admin_count_sessions_1274@localhost.bis/res1 in <iq id='33a53f38d47524e88866bffe40427259' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_count_sessions_1274@localhost.bis/res1</jid> </bind> </iq>
*** User 2024-03-21 07:51:23.983 ***🔗 alice_domain_admin_count_sessions_1274@localhost.bis/res1 out <iq type='set' id='2597cd07ea234766a2f34cbdc0e4b93e'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:51:23.984 ***🔗 alice_domain_admin_count_sessions_1274@localhost.bis/res1 in <iq from='localhost.bis' to='alice_domain_admin_count_sessions_1274@localhost.bis/res1' id='2597cd07ea234766a2f34cbdc0e4b93e' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:51:23.984 ***🔗 alice_domain_admin_count_sessions_1274@localhost.bis/res1 out <presence/>
*** User 2024-03-21 07:51:23.986 ***🔗 alice_domain_admin_count_sessions_1274@localhost.bis/res1 in <presence from='alice_domain_admin_count_sessions_1274@localhost.bis/res1' to='alice_domain_admin_count_sessions_1274@localhost.bis/res1'/>
*** User 2024-03-21 07:51:23.989 ***🔗 bOb_domain_admin_count_sessions_1274@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-03-21 07:51:23.990 ***🔗 bOb_domain_admin_count_sessions_1274@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb6184cde5b032fa' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:23.990 ***🔗 bOb_domain_admin_count_sessions_1274@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-03-21 07:51:23.990 ***🔗 bOb_domain_admin_count_sessions_1274@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kb21haW5fYWRtaW5fY291bnRfc2Vzc2lvbnNfMTI3NABtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:51:23.994 ***🔗 bOb_domain_admin_count_sessions_1274@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:23.994 ***🔗 bOb_domain_admin_count_sessions_1274@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-03-21 07:51:23.995 ***🔗 bOb_domain_admin_count_sessions_1274@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e4282b16748bfd91' from='localhost' version='1.0' xml:lang='en' to='bob_domain_admin_count_sessions_1274@localhost'>
*** User 2024-03-21 07:51:23.995 ***🔗 bOb_domain_admin_count_sessions_1274@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-03-21 07:51:23.995 ***🔗 bOb_domain_admin_count_sessions_1274@localhost/res1 out <iq type='set' id='a92eaf29a929902299b4ffd36721dfa7'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-03-21 07:51:23.996 ***🔗 bOb_domain_admin_count_sessions_1274@localhost/res1 in <iq id='a92eaf29a929902299b4ffd36721dfa7' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_domain_admin_count_sessions_1274@localhost/res1</jid> </bind> </iq>
*** User 2024-03-21 07:51:23.996 ***🔗 bob_domain_admin_count_sessions_1274@localhost/res1 out <iq type='set' id='f7c6421fe440af8e61aab47dfc7a3d4c'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:51:23.997 ***🔗 bob_domain_admin_count_sessions_1274@localhost/res1 in <iq from='localhost' to='bob_domain_admin_count_sessions_1274@localhost/res1' id='f7c6421fe440af8e61aab47dfc7a3d4c' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:51:23.997 ***🔗 bob_domain_admin_count_sessions_1274@localhost/res1 out <presence/>
*** User 2024-03-21 07:51:24.003 ***🔗 bob_domain_admin_count_sessions_1274@localhost/res1 in <presence from='bob_domain_admin_count_sessions_1274@localhost/res1' to='bob_domain_admin_count_sessions_1274@localhost/res1'/>
*** User 2024-03-21 07:51:24.015 ***🔗 REST request fails: Code: 401 Req: {<0.28909.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"f33d519a0fe6a1b7">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjUyZmRjOTc3NjEzYWVlZWM=">>}], <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:51:23 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"206">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"session\",\"countSessions\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\"}]}">>, 355,10566} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@localhost">>,<<"52fdc977613aeeec">>}, body => <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>, return_maps => true,return_headers => true}
*** User 2024-03-21 07:51:24.028 ***🔗 REST request fails: Code: 401 Req: {<0.28911.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"db59b7b67f837084">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjUyZmRjOTc3NjEzYWVlZWM=">>}], <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:51:23 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"206">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"session\",\"countSessions\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\"}]}">>, 355,10628} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@localhost">>,<<"52fdc977613aeeec">>}, body => <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>, return_maps => true,return_headers => true}
*** User 2024-03-21 07:51:24.036 ***🔗 REST request: Code: 200 Req: {<0.28913.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"e14cf00522186927">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OjUyZmRjOTc3NjEzYWVlZWM=">>}], <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:51:23 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"40">>}], <<"{\"data\":{\"session\":{\"countSessions\":2}}}">>,178,6443} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@localhost">>,<<"52fdc977613aeeec">>}, body => <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>, return_maps => true,return_headers => true}
*** User 2024-03-21 07:51:24.036 ***🔗 bob_domain_admin_count_sessions_1274@localhost/res1 out </stream:stream>
*** User 2024-03-21 07:51:24.037 ***🔗 bob_domain_admin_count_sessions_1274@localhost/res1 in </stream:stream>
*** User 2024-03-21 07:51:24.037 ***🔗 alice_domain_admin_count_sessions_1274@localhost.bis/res1 out </stream:stream>
*** User 2024-03-21 07:51:24.037 ***🔗 alice_domain_admin_count_sessions_1274@localhost.bis/res1 in </stream:stream>
*** User 2024-03-21 07:51:24.037 ***🔗 alice_domain_admin_count_sessions_1274@localhost/res1 out </stream:stream>
*** User 2024-03-21 07:51:24.038 ***🔗 alice_domain_admin_count_sessions_1274@localhost/res1 in </stream:stream>
=== Ended at 2024-03-21 07:51:24 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result