=== Test case: graphql_session_SUITE:domain_admin_count_sessions/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@localhost">>,<<"b5ebc98d283e68fa">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.29236.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.graphql_session_SUITE.logs/run.2024-04-23_23.26.06/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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.graphql_session_SUITE.logs/run.2024-04-23_23.26.06/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_presence => #{}, mod_disco => #{server_info => [],iqdisc => one_queue,extra_domains => [], users_can_see_hidden_services => false}, 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_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@81b4ed498ac1.2024-04-23_23.21.08" === Started at 2024-04-23 23:26:20
*** User 2024-04-23 23:26:20.201 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.201 ***🔗 alicE_domain_admin_count_sessions_1253@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a4508900d17e0245' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 23:26:20.201 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.201 ***🔗 alicE_domain_admin_count_sessions_1253@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9jb3VudF9zZXNzaW9uc18xMjUzAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 23:26:20.202 ***🔗 alicE_domain_admin_count_sessions_1253@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 23:26:20.202 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.202 ***🔗 alicE_domain_admin_count_sessions_1253@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a31f7f3951000a02' from='localhost' version='1.0' xml:lang='en' to='alice_domain_admin_count_sessions_1253@localhost'>
*** User 2024-04-23 23:26:20.203 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.203 ***🔗 alicE_domain_admin_count_sessions_1253@localhost/res1 out <iq type='set' id='676e2d36084da5b6d791e099806e3af5'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-23 23:26:20.203 ***🔗 alicE_domain_admin_count_sessions_1253@localhost/res1 in <iq id='676e2d36084da5b6d791e099806e3af5' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_count_sessions_1253@localhost/res1</jid> </bind> </iq>
*** User 2024-04-23 23:26:20.203 ***🔗 alice_domain_admin_count_sessions_1253@localhost/res1 out <iq type='set' id='c78b306de404f4002f36ab86b854f8bc'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 23:26:20.204 ***🔗 alice_domain_admin_count_sessions_1253@localhost/res1 in <iq from='localhost' to='alice_domain_admin_count_sessions_1253@localhost/res1' id='c78b306de404f4002f36ab86b854f8bc' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 23:26:20.204 ***🔗 alice_domain_admin_count_sessions_1253@localhost/res1 out <presence/>
*** User 2024-04-23 23:26:20.205 ***🔗 alice_domain_admin_count_sessions_1253@localhost/res1 in <presence from='alice_domain_admin_count_sessions_1253@localhost/res1' to='alice_domain_admin_count_sessions_1253@localhost/res1'/>
*** User 2024-04-23 23:26:20.205 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.206 ***🔗 alicE_domain_admin_count_sessions_1253@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='540ce72735ba57b8' from='localhost.bis' version='1.0' xml:lang='en'>
*** User 2024-04-23 23:26:20.206 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.206 ***🔗 alicE_domain_admin_count_sessions_1253@localhost.bis/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9jb3VudF9zZXNzaW9uc18xMjUzAG1hdHlncnlzYQ==</auth>
*** User 2024-04-23 23:26:20.207 ***🔗 alicE_domain_admin_count_sessions_1253@localhost.bis/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 23:26:20.207 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.207 ***🔗 alicE_domain_admin_count_sessions_1253@localhost.bis/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='421bef941fb3321a' from='localhost.bis' version='1.0' xml:lang='en' to='alice_domain_admin_count_sessions_1253@localhost.bis'>
*** User 2024-04-23 23:26:20.207 ***🔗 alicE_domain_admin_count_sessions_1253@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 23:26:20.207 ***🔗 alicE_domain_admin_count_sessions_1253@localhost.bis/res1 out <iq type='set' id='fc295202f98b0c4c11f5770831c997a8'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-23 23:26:20.207 ***🔗 alicE_domain_admin_count_sessions_1253@localhost.bis/res1 in <iq id='fc295202f98b0c4c11f5770831c997a8' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_count_sessions_1253@localhost.bis/res1</jid> </bind> </iq>
*** User 2024-04-23 23:26:20.207 ***🔗 alice_domain_admin_count_sessions_1253@localhost.bis/res1 out <iq type='set' id='c22a6f8d500235a467f9de532aae56e0'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 23:26:20.208 ***🔗 alice_domain_admin_count_sessions_1253@localhost.bis/res1 in <iq from='localhost.bis' to='alice_domain_admin_count_sessions_1253@localhost.bis/res1' id='c22a6f8d500235a467f9de532aae56e0' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 23:26:20.208 ***🔗 alice_domain_admin_count_sessions_1253@localhost.bis/res1 out <presence/>
*** User 2024-04-23 23:26:20.209 ***🔗 alice_domain_admin_count_sessions_1253@localhost.bis/res1 in <presence from='alice_domain_admin_count_sessions_1253@localhost.bis/res1' to='alice_domain_admin_count_sessions_1253@localhost.bis/res1'/>
*** User 2024-04-23 23:26:20.210 ***🔗 bOb_domain_admin_count_sessions_1253@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 23:26:20.210 ***🔗 bOb_domain_admin_count_sessions_1253@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='00ddb38741ffd85c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 23:26:20.210 ***🔗 bOb_domain_admin_count_sessions_1253@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 23:26:20.210 ***🔗 bOb_domain_admin_count_sessions_1253@localhost/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kb21haW5fYWRtaW5fY291bnRfc2Vzc2lvbnNfMTI1MwBtYWtyb2xpa2E=</auth>
*** User 2024-04-23 23:26:20.211 ***🔗 bOb_domain_admin_count_sessions_1253@localhost/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 23:26:20.211 ***🔗 bOb_domain_admin_count_sessions_1253@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 23:26:20.211 ***🔗 bOb_domain_admin_count_sessions_1253@localhost/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4923e25879ed1b53' from='localhost' version='1.0' xml:lang='en' to='bob_domain_admin_count_sessions_1253@localhost'>
*** User 2024-04-23 23:26:20.211 ***🔗 bOb_domain_admin_count_sessions_1253@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 23:26:20.211 ***🔗 bOb_domain_admin_count_sessions_1253@localhost/res1 out <iq type='set' id='e4b7cbbc26fd1d4d0325309074ffe9d6'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-04-23 23:26:20.211 ***🔗 bOb_domain_admin_count_sessions_1253@localhost/res1 in <iq id='e4b7cbbc26fd1d4d0325309074ffe9d6' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_domain_admin_count_sessions_1253@localhost/res1</jid> </bind> </iq>
*** User 2024-04-23 23:26:20.212 ***🔗 bob_domain_admin_count_sessions_1253@localhost/res1 out <iq type='set' id='f92d589ef595d872d8cdca302269b135'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 23:26:20.212 ***🔗 bob_domain_admin_count_sessions_1253@localhost/res1 in <iq from='localhost' to='bob_domain_admin_count_sessions_1253@localhost/res1' id='f92d589ef595d872d8cdca302269b135' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-04-23 23:26:20.212 ***🔗 bob_domain_admin_count_sessions_1253@localhost/res1 out <presence/>
*** User 2024-04-23 23:26:20.213 ***🔗 bob_domain_admin_count_sessions_1253@localhost/res1 in <presence from='bob_domain_admin_count_sessions_1253@localhost/res1' to='bob_domain_admin_count_sessions_1253@localhost/res1'/>
*** User 2024-04-23 23:26:20.220 ***🔗 REST request fails: Code: 401 Req: {<0.29266.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"1ce179c243aeb481">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OmI1ZWJjOThkMjgzZTY4ZmE=">>}], <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Tue, 23 Apr 2024 23:26:19 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,5954} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":null},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>, role => {graphql,domain_admin}, return_maps => true,method => <<"POST">>, creds => {<<"admin@localhost">>,<<"b5ebc98d283e68fa">>}, return_headers => true}
*** User 2024-04-23 23:26:20.227 ***🔗 REST request fails: Code: 401 Req: {<0.29268.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"6380ae5b078c24d8">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OmI1ZWJjOThkMjgzZTY4ZmE=">>}], <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Tue, 23 Apr 2024 23:26:19 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,6088} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"localhost.bis\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>, role => {graphql,domain_admin}, return_maps => true,method => <<"POST">>, creds => {<<"admin@localhost">>,<<"b5ebc98d283e68fa">>}, return_headers => true}
*** User 2024-04-23 23:26:20.240 ***🔗 REST request: Code: 200 Req: {<0.29270.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"0c875e6c656c064e">>}, {<<"authorization">>, <<"Basic YWRtaW5AbG9jYWxob3N0OmI1ZWJjOThkMjgzZTY4ZmE=">>}], <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Tue, 23 Apr 2024 23:26:19 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"40">>}], <<"{\"data\":{\"session\":{\"countSessions\":2}}}">>,178,11430} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"localhost\"},\"query\":\"query ($domain: DomainName) { session { countSessions(domain: $domain) } }\"}">>, role => {graphql,domain_admin}, return_maps => true,method => <<"POST">>, creds => {<<"admin@localhost">>,<<"b5ebc98d283e68fa">>}, return_headers => true}
*** User 2024-04-23 23:26:20.241 ***🔗 bob_domain_admin_count_sessions_1253@localhost/res1 out </stream:stream>
*** User 2024-04-23 23:26:20.241 ***🔗 bob_domain_admin_count_sessions_1253@localhost/res1 in </stream:stream>
*** User 2024-04-23 23:26:20.241 ***🔗 alice_domain_admin_count_sessions_1253@localhost.bis/res1 out </stream:stream>
*** User 2024-04-23 23:26:20.241 ***🔗 alice_domain_admin_count_sessions_1253@localhost.bis/res1 in </stream:stream>
*** User 2024-04-23 23:26:20.242 ***🔗 alice_domain_admin_count_sessions_1253@localhost/res1 out </stream:stream>
*** User 2024-04-23 23:26:20.242 ***🔗 alice_domain_admin_count_sessions_1253@localhost/res1 in </stream:stream>
=== Ended at 2024-04-23 23:26:20 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result