=== Test case: graphql_last_SUITE:admin_count_active_users/1 (click for source code) === Config value: [{watchdog,<0.18887.0>}, {protocol,http}, {domain_admin,{<<"admin@domain.example.com">>,<<"94bf84476ef52ccb">>}}, {schema_endpoint,domain_admin}, {{ejabberd_cwd,mongooseim@localhost}, "/home/circleci/project/_build/mim1/rel/mongooseim"}, {preset,"mysql_redis"}, {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_last_SUITE_data"}, {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.graphql_last_SUITE.logs/run.2024-03-21_07.48.32/graphql_last_suite.admin_count_active_users.25604.html"}, {tc_group_properties,[{name,domain_admin_last}]}, {tc_group_path,[[{name,domain_admin}]]}, {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_last_SUITE_data/"}, {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.graphql_last_SUITE.logs/run.2024-03-21_07.48.32/log_private/"}, {{saved_modules,mongooseim@localhost,<<"test type">>}, #{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_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, 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_cache_users => #{strategy => fifo,number_of_segments => 5,time_to_live => 2}, mod_bosh => #{backend => mnesia,inactivity => 30,max_pause => 120, max_wait => infinity,server_acks => false}, mod_carboncopy => #{iqdisc => no_queue}}}] === Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@55d20a7e6e08.2024-03-21_07.45.40" === Started at 2024-03-21 07:48:56
*** User 2024-03-21 07:48:56.235 ***🔗 alicE_admin_count_active_users_813@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-03-21 07:48:56.235 ***🔗 alicE_admin_count_active_users_813@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82805acf697c30f5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:48:56.235 ***🔗 alicE_admin_count_active_users_813@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-03-21 07:48:56.235 ***🔗 alicE_admin_count_active_users_813@domain.example.com/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2NvdW50X2FjdGl2ZV91c2Vyc184MTMAbWF0eWdyeXNh</auth>
*** User 2024-03-21 07:48:56.236 ***🔗 alicE_admin_count_active_users_813@domain.example.com/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:48:56.236 ***🔗 alicE_admin_count_active_users_813@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-03-21 07:48:56.237 ***🔗 alicE_admin_count_active_users_813@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2f1ff85d8aac7993' from='domain.example.com' version='1.0' xml:lang='en' to='alice_admin_count_active_users_813@domain.example.com'>
*** User 2024-03-21 07:48:56.237 ***🔗 alicE_admin_count_active_users_813@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-03-21 07:48:56.237 ***🔗 alicE_admin_count_active_users_813@domain.example.com/res1 out <iq type='set' id='327cbc9157329e229cfe8318d6d225fd'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-03-21 07:48:56.237 ***🔗 alicE_admin_count_active_users_813@domain.example.com/res1 in <iq id='327cbc9157329e229cfe8318d6d225fd' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>alice_admin_count_active_users_813@domain.example.com/res1</jid> </bind> </iq>
*** User 2024-03-21 07:48:56.237 ***🔗 alice_admin_count_active_users_813@domain.example.com/res1 out <iq type='set' id='f163df769cc8b17bbacc63068dafe85f'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:48:56.238 ***🔗 alice_admin_count_active_users_813@domain.example.com/res1 in <iq from='domain.example.com' to='alice_admin_count_active_users_813@domain.example.com/res1' id='f163df769cc8b17bbacc63068dafe85f' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:48:56.238 ***🔗 alice_admin_count_active_users_813@domain.example.com/res1 out <presence/>
*** User 2024-03-21 07:48:56.240 ***🔗 alice_admin_count_active_users_813@domain.example.com/res1 in <presence from='alice_admin_count_active_users_813@domain.example.com/res1' to='alice_admin_count_active_users_813@domain.example.com/res1'/>
*** User 2024-03-21 07:48:56.241 ***🔗 bOb_admin_count_active_users_813@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-03-21 07:48:56.241 ***🔗 bOb_admin_count_active_users_813@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7fb7ec6c01bf28cd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:48:56.241 ***🔗 bOb_admin_count_active_users_813@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-03-21 07:48:56.241 ***🔗 bOb_admin_count_active_users_813@domain.example.com/res1 out <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZG1pbl9jb3VudF9hY3RpdmVfdXNlcnNfODEzAG1ha3JvbGlrYQ==</auth>
*** User 2024-03-21 07:48:56.242 ***🔗 bOb_admin_count_active_users_813@domain.example.com/res1 in <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:48:56.242 ***🔗 bOb_admin_count_active_users_813@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-03-21 07:48:56.243 ***🔗 bOb_admin_count_active_users_813@domain.example.com/res1 in <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5acc472da0dc527a' from='domain.example.com' version='1.0' xml:lang='en' to='bob_admin_count_active_users_813@domain.example.com'>
*** User 2024-03-21 07:48:56.243 ***🔗 bOb_admin_count_active_users_813@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-03-21 07:48:56.243 ***🔗 bOb_admin_count_active_users_813@domain.example.com/res1 out <iq type='set' id='2af12ccea396664869a3f8940b923801'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <resource>res1</resource> </bind> </iq>
*** User 2024-03-21 07:48:56.243 ***🔗 bOb_admin_count_active_users_813@domain.example.com/res1 in <iq id='2af12ccea396664869a3f8940b923801' type='result'> <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'> <jid>bob_admin_count_active_users_813@domain.example.com/res1</jid> </bind> </iq>
*** User 2024-03-21 07:48:56.243 ***🔗 bob_admin_count_active_users_813@domain.example.com/res1 out <iq type='set' id='ab6dfbe45d2ec0d8ea2ba3d2918819d1'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:48:56.244 ***🔗 bob_admin_count_active_users_813@domain.example.com/res1 in <iq from='domain.example.com' to='bob_admin_count_active_users_813@domain.example.com/res1' id='ab6dfbe45d2ec0d8ea2ba3d2918819d1' type='result'> <session xmlns='urn:ietf:params:xml:ns:xmpp-session'/> </iq>
*** User 2024-03-21 07:48:56.244 ***🔗 bob_admin_count_active_users_813@domain.example.com/res1 out <presence/>
*** User 2024-03-21 07:48:56.246 ***🔗 bob_admin_count_active_users_813@domain.example.com/res1 in <presence from='bob_admin_count_active_users_813@domain.example.com/res1' to='bob_admin_count_active_users_813@domain.example.com/res1'/>
*** User 2024-03-21 07:48:56.259 ***🔗 REST request: Code: 200 Req: {<0.18983.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"e95579d4d71f388b">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjk0YmY4NDQ3NmVmNTJjY2I=">>}], <<"{\"variables\":{\"user\":\"alice_admin_count_active_users_813@domain.example.com\",\"timestamp\":\"2024-03-21T07:49:01Z\",\"status\":\"\"},\"query\":\"mutation ($status: String!, $timestamp: DateTime, $user: JID!) { last { setLast(status: $status, timestamp: $timestamp, user: $user) { status timestamp user } } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:48:56 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"148">>}], <<"{\"data\":{\"last\":{\"setLast\":{\"user\":\"alice_admin_count_active_users_813@domain.example.com\",\"timestamp\":\"2024-03-21T07:49:01.000000Z\",\"status\":\"\"}}}}">>, 287,12417} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"user\":\"alice_admin_count_active_users_813@domain.example.com\",\"timestamp\":\"2024-03-21T07:49:01Z\",\"status\":\"\"},\"query\":\"mutation ($status: String!, $timestamp: DateTime, $user: JID!) { last { setLast(status: $status, timestamp: $timestamp, user: $user) { status timestamp user } } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"94bf84476ef52ccb">>}, return_maps => true,return_headers => true}
*** User 2024-03-21 07:48:56.273 ***🔗 REST request: Code: 200 Req: {<0.18985.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"1c29be0e61fe6567">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjk0YmY4NDQ3NmVmNTJjY2I=">>}], <<"{\"variables\":{\"user\":\"bob_admin_count_active_users_813@domain.example.com\",\"timestamp\":\"2024-03-21T07:49:06Z\",\"status\":\"\"},\"query\":\"mutation ($status: String!, $timestamp: DateTime, $user: JID!) { last { setLast(status: $status, timestamp: $timestamp, user: $user) { status timestamp user } } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:48:56 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"146">>}], <<"{\"data\":{\"last\":{\"setLast\":{\"user\":\"bob_admin_count_active_users_813@domain.example.com\",\"timestamp\":\"2024-03-21T07:49:06.000000Z\",\"status\":\"\"}}}}">>, 285,12205} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"user\":\"bob_admin_count_active_users_813@domain.example.com\",\"timestamp\":\"2024-03-21T07:49:06Z\",\"status\":\"\"},\"query\":\"mutation ($status: String!, $timestamp: DateTime, $user: JID!) { last { setLast(status: $status, timestamp: $timestamp, user: $user) { status timestamp user } } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"94bf84476ef52ccb">>}, return_maps => true,return_headers => true}
*** User 2024-03-21 07:48:56.282 ***🔗 REST request: Code: 200 Req: {<0.18987.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"a459c8e565c54833">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjk0YmY4NDQ3NmVmNTJjY2I=">>}], <<"{\"variables\":{\"domain\":\"domain.example.com\",\"timestamp\":null},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:48:56 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"40">>}], <<"{\"data\":{\"last\":{\"countActiveUsers\":2}}}">>,178,7083} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"domain.example.com\",\"timestamp\":null},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"94bf84476ef52ccb">>}, return_maps => true,return_headers => true}
*** User 2024-03-21 07:48:56.292 ***🔗 REST request: Code: 200 Req: {<0.18989.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"ce55eced4b6d2ba3">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjk0YmY4NDQ3NmVmNTJjY2I=">>}], <<"{\"variables\":{\"domain\":\"Domain.example.com\",\"timestamp\":null},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:48:56 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"40">>}], <<"{\"data\":{\"last\":{\"countActiveUsers\":2}}}">>,178,7969} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"Domain.example.com\",\"timestamp\":null},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"94bf84476ef52ccb">>}, return_maps => true,return_headers => true}
*** User 2024-03-21 07:48:56.302 ***🔗 REST request: Code: 200 Req: {<0.18991.0>,<<"/api/graphql">>,<<"POST">>, [{<<"Content-Type">>,<<"application/json">>}, {<<"Request-Id">>,<<"f3194dbe69fdc34f">>}, {<<"authorization">>, <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjk0YmY4NDQ3NmVmNTJjY2I=">>}], <<"{\"variables\":{\"domain\":\"domain.example.com\",\"timestamp\":\"2024-03-21T07:49:26Z\"},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>} Result: {{<<"200">>,<<"OK">>}, [{<<"vary">>,<<"accept">>}, {<<"server">>,<<"Cowboy">>}, {<<"date">>,<<"Thu, 21 Mar 2024 07:48:56 GMT">>}, {<<"content-type">>,<<"application/json">>}, {<<"content-length">>,<<"40">>}], <<"{\"data\":{\"last\":{\"countActiveUsers\":0}}}">>,178,9264} Params: #{port => 5541,path => <<"/api/graphql">>, server => #{node => mongooseim@localhost}, body => <<"{\"variables\":{\"domain\":\"domain.example.com\",\"timestamp\":\"2024-03-21T07:49:26Z\"},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>, method => <<"POST">>, role => {graphql,domain_admin}, creds => {<<"admin@domain.example.com">>,<<"94bf84476ef52ccb">>}, return_maps => true,return_headers => true}
*** User 2024-03-21 07:48:56.303 ***🔗 bob_admin_count_active_users_813@domain.example.com/res1 out </stream:stream>
*** User 2024-03-21 07:48:56.303 ***🔗 bob_admin_count_active_users_813@domain.example.com/res1 in </stream:stream>
*** User 2024-03-21 07:48:56.303 ***🔗 alice_admin_count_active_users_813@domain.example.com/res1 out </stream:stream>
*** User 2024-03-21 07:48:56.304 ***🔗 alice_admin_count_active_users_813@domain.example.com/res1 in </stream:stream>
=== Ended at 2024-03-21 07:48:56 === successfully completed test case === === Returned value: ok
Test run history | Top level test index | Latest test result