=== Test case: graphql_session_SUITE:domain_admin_count_users_with_status/1 (click for source code) === Config value: [{protocol,http}, {domain_admin,{<<"admin@domain.example.com">>,<<"79cf0f89332421cc">>}}, {schema_endpoint,domain_admin}, {watchdog,<0.27194.0>}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"mysql_redis"}, {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@d144898ca8cb.2024-02-29_09.17.24/big_tests.tests.graphql_session_SUITE.logs/run.2024-02-29_09.22.13/graphql_session_suite.domain_admin_count_users_with_status.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@d144898ca8cb.2024-02-29_09.17.24/big_tests.tests.graphql_session_SUITE.logs/run.2024-02-29_09.22.13/log_private/"}, {{saved_modules,mongooseim@localhost,<<"test type">>}, #{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_presence => #{}, mod_disco => #{iqdisc => one_queue,server_info => [],extra_domains => [], users_can_see_hidden_services => false}, mod_stream_management => #{buffer => true,ack => true, stale_h => #{enabled => false,repeat_after => 1800,geriatric => 3600}, backend => mnesia,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,<<"domain.example.com">>}, {host,<<"localhost">>}, {password,<<"matygrysa">>}]}, {alice_bis,[{username,<<"alicE">>}, {server,<<"domain.example.org">>}, {host,<<"localhost">>}, {password,<<"matygrysa">>}]}, {bob,[{username,<<"bOb">>}, {server,<<"domain.example.com">>}, {host,<<"localhost">>}, {password,<<"makrolika">>}]}]}] === Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d144898ca8cb.2024-02-29_09.17.24" === Started at 2024-02-29 09:22:26
*** User 2024-02-29 09:22:26.109 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 09:22:26.110 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56dbac5751750b22' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-29 09:22:26.110 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/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-02-29 09:22:26.110 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9jb3VudF91c2Vyc193aXRoX3N0YXR1c18xMjQ3AG1hdHlncnlzYQ==</auth>
*** User 2024-02-29 09:22:26.111 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 09:22:26.111 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 09:22:26.112 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aebabee3930c55f4' from='domain.example.com' version='1.0' xml:lang='en' to='alice_domain_admin_count_users_with_status_1247@domain.example.com'>
*** User 2024-02-29 09:22:26.112 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/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-02-29 09:22:26.112 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <iq type='set' id='564f97f8ddab9ae57303fb1e621e7a6d'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-02-29 09:22:26.112 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.com/res1 in <iq id='564f97f8ddab9ae57303fb1e621e7a6d' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_count_users_with_status_1247@domain.example.com/res1</jid> </bind> </iq>
*** User 2024-02-29 09:22:26.112 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <iq type='set' id='4196ddeecc93e557dc365a46e9f01ec7'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-29 09:22:26.113 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 in <iq from='domain.example.com' to='alice_domain_admin_count_users_with_status_1247@domain.example.com/res1' id='4196ddeecc93e557dc365a46e9f01ec7' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-29 09:22:26.114 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <presence/>
*** User 2024-02-29 09:22:26.115 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 in <presence from='alice_domain_admin_count_users_with_status_1247@domain.example.com/res1' to='alice_domain_admin_count_users_with_status_1247@domain.example.com/res1'/>
*** User 2024-02-29 09:22:26.118 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 out <stream:stream to='domain.example.org' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 09:22:26.119 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='35ed23538c422265' from='domain.example.org' version='1.0' xml:lang='en'>
*** User 2024-02-29 09:22:26.119 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/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-02-29 09:22:26.119 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbWFpbl9hZG1pbl9jb3VudF91c2Vyc193aXRoX3N0YXR1c18xMjQ3AG1hdHlncnlzYQ==</auth>
*** User 2024-02-29 09:22:26.120 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-29 09:22:26.120 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 out <stream:stream to='domain.example.org' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-29 09:22:26.121 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b65f22dce70217ac' from='domain.example.org' version='1.0' xml:lang='en' to='alice_domain_admin_count_users_with_status_1247@domain.example.org'>
*** User 2024-02-29 09:22:26.121 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/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-02-29 09:22:26.121 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 out <iq type='set' id='2581ee901142195ec578eeb46b598d75'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-02-29 09:22:26.121 ***🔗 alicE_domain_admin_count_users_with_status_1247@domain.example.org/res1 in <iq id='2581ee901142195ec578eeb46b598d75' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_domain_admin_count_users_with_status_1247@domain.example.org/res1</jid> </bind> </iq>
*** User 2024-02-29 09:22:26.121 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.org/res1 out <iq type='set' id='e3fc6db34d06e3d4be02377666770bcb'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-29 09:22:26.122 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.org/res1 in <iq from='domain.example.org' to='alice_domain_admin_count_users_with_status_1247@domain.example.org/res1' id='e3fc6db34d06e3d4be02377666770bcb' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-02-29 09:22:26.122 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.org/res1 out <presence/>
*** User 2024-02-29 09:22:26.124 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.org/res1 in <presence from='alice_domain_admin_count_users_with_status_1247@domain.example.org/res1' to='alice_domain_admin_count_users_with_status_1247@domain.example.org/res1'/>
*** User 2024-02-29 09:22:26.124 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <presence> <show>away</show> </presence>
*** User 2024-02-29 09:22:26.134 ***🔗 REST request fails: Code: 401 Req: {<0.27360.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"ccc50a8b2878ca90">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjc5Y2YwZjg5MzMyNDIxY2M=">>}], <<"{\"variables\":{\"status\":\"away\",\"domain\":null},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 29 Feb 2024 09:22:25 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"213">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"session\",\"countUsersWithStatus\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\"}]}">>, 362,7867} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"status\":\"away\",\"domain\":null},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"79cf0f89332421cc">>}, return_maps => true,return_headers => true}
*** User 2024-02-29 09:22:26.142 ***🔗 REST request: Code: 200 Req: {<0.27362.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"7c364e36d667c910">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjc5Y2YwZjg5MzMyNDIxY2M=">>}], <<"{\"variables\":{\"status\":\"away\",\"domain\":\"domain.example.com\"},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 29 Feb 2024 09:22:25 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"47">>}], <<"{\"data\":{\"session\":{\"countUsersWithStatus\":1}}}">>,185,6641} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"status\":\"away\",\"domain\":\"domain.example.com\"},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"79cf0f89332421cc">>}, return_maps => true,return_headers => true}
*** User 2024-02-29 09:22:26.151 ***🔗 REST request: Code: 200 Req: {<0.27364.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"39777c41df118169">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjc5Y2YwZjg5MzMyNDIxY2M=">>}], <<"{\"variables\":{\"status\":\"away\",\"domain\":\"Domain.example.com\"},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 29 Feb 2024 09:22:25 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"47">>}], <<"{\"data\":{\"session\":{\"countUsersWithStatus\":1}}}">>,185,7420} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"status\":\"away\",\"domain\":\"Domain.example.com\"},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"79cf0f89332421cc">>}, return_maps => true,return_headers => true}
*** User 2024-02-29 09:22:26.151 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 out <presence> <show>dnd</show> </presence>
*** User 2024-02-29 09:22:26.161 ***🔗 REST request fails: Code: 401 Req: {<0.27366.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"118cf3bf229abee1">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjc5Y2YwZjg5MzMyNDIxY2M=">>}], <<"{\"variables\":{\"status\":\"dnd\",\"domain\":null},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>} Result: {{<<"401">>,<<"Unauthorized">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 29 Feb 2024 09:22:25 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"213">>}], <<"{\"errors\":[{\"extensions\":{\"code\":\"no_permissions\"},\"path\":[\"ROOT\",\"session\",\"countUsersWithStatus\"],\"message\":\"Cannot execute query ROOT without permissions to the given domain. Args with invalid value: domain\"}]}">>, 362,8793} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"status\":\"dnd\",\"domain\":null},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"79cf0f89332421cc">>}, return_maps => true,return_headers => true}
*** User 2024-02-29 09:22:26.173 ***🔗 REST request: Code: 200 Req: {<0.27368.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"9de059c5e4ba8fbf">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjc5Y2YwZjg5MzMyNDIxY2M=">>}], <<"{\"variables\":{\"status\":\"dnd\",\"domain\":\"domain.example.com\"},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 29 Feb 2024 09:22:25 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"47">>}], <<"{\"data\":{\"session\":{\"countUsersWithStatus\":1}}}">>,185,9793} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"status\":\"dnd\",\"domain\":\"domain.example.com\"},\"query\":\"query ($domain: DomainName, $status: NonEmptyString!) { session { countUsersWithStatus(domain: $domain, status: $status) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"79cf0f89332421cc">>}, return_maps => true,return_headers => true}
*** User 2024-02-29 09:22:26.173 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.org/res1 out </stream:stream>
*** User 2024-02-29 09:22:26.173 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.org/res1 in </stream:stream>
*** User 2024-02-29 09:22:26.173 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 out </stream:stream>
*** User 2024-02-29 09:22:26.174 ***🔗 alice_domain_admin_count_users_with_status_1247@domain.example.com/res1 in </stream:stream>
=== Ended at 2024-02-29 09:22:26 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result