=== Test case: graphql_last_SUITE:admin_count_active_users/1 (click for source code)

=== Config value:

    [{watchdog,<0.36591.0>},
     {protocol,http},
     {domain_admin,{<<"admin@domain.example.com">>,<<"8c3112b0160f3b66">>}},
     {schema_endpoint,domain_admin},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"pgsql_mnesia"},
     {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@db96c7cbc273.2024-04-16_10.12.19/big_tests.tests.graphql_last_SUITE.logs/run.2024-04-16_10.16.47/graphql_last_suite.admin_count_active_users.86660.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@db96c7cbc273.2024-04-16_10.12.19/big_tests.tests.graphql_last_SUITE.logs/run.2024-04-16_10.16.47/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_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              ack_freq => 1,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@db96c7cbc273.2024-04-16_10.12.19"

=== Started at 2024-04-16 10:17:04


*** CT 2024-04-16 10:17:04.015 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1489.html

*** User 2024-04-16 10:17:04.019 ***🔗
alicE_admin_count_active_users_1494@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-04-16 10:17:04.020 ***🔗
alicE_admin_count_active_users_1494@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ad51452f5b16bde' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:17:04.020 ***🔗
alicE_admin_count_active_users_1494@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-04-16 10:17:04.020 ***🔗
alicE_admin_count_active_users_1494@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2NvdW50X2FjdGl2ZV91c2Vyc18xNDk0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-16 10:17:04.021 ***🔗
alicE_admin_count_active_users_1494@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:17:04.021 ***🔗
alicE_admin_count_active_users_1494@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-04-16 10:17:04.021 ***🔗
alicE_admin_count_active_users_1494@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6bb4316d2439d17b' from='domain.example.com' version='1.0' xml:lang='en' to='alice_admin_count_active_users_1494@domain.example.com'>

*** User 2024-04-16 10:17:04.021 ***🔗
alicE_admin_count_active_users_1494@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-04-16 10:17:04.021 ***🔗
alicE_admin_count_active_users_1494@domain.example.com/res1 out
<iq type='set' id='6c4c75137cd40a692cadc6947cf1c2da'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:17:04.021 ***🔗
alicE_admin_count_active_users_1494@domain.example.com/res1 in
<iq id='6c4c75137cd40a692cadc6947cf1c2da' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_admin_count_active_users_1494@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:17:04.021 ***🔗
alice_admin_count_active_users_1494@domain.example.com/res1 out
<iq type='set' id='007305fbabe641d15c1d2702d25358a9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:17:04.022 ***🔗
alice_admin_count_active_users_1494@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_admin_count_active_users_1494@domain.example.com/res1' id='007305fbabe641d15c1d2702d25358a9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:17:04.022 ***🔗
alice_admin_count_active_users_1494@domain.example.com/res1 out
<presence/>



*** User 2024-04-16 10:17:04.023 ***🔗
alice_admin_count_active_users_1494@domain.example.com/res1 in
<presence from='alice_admin_count_active_users_1494@domain.example.com/res1' to='alice_admin_count_active_users_1494@domain.example.com/res1'/>



*** User 2024-04-16 10:17:04.023 ***🔗
bOb_admin_count_active_users_1494@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-04-16 10:17:04.024 ***🔗
bOb_admin_count_active_users_1494@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c789982250dd12eb' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-16 10:17:04.024 ***🔗
bOb_admin_count_active_users_1494@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-04-16 10:17:04.024 ***🔗
bOb_admin_count_active_users_1494@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZG1pbl9jb3VudF9hY3RpdmVfdXNlcnNfMTQ5NABtYWtyb2xpa2E=</auth>



*** User 2024-04-16 10:17:04.024 ***🔗
bOb_admin_count_active_users_1494@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 10:17:04.024 ***🔗
bOb_admin_count_active_users_1494@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-04-16 10:17:04.025 ***🔗
bOb_admin_count_active_users_1494@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7fc948ba3682cea' from='domain.example.com' version='1.0' xml:lang='en' to='bob_admin_count_active_users_1494@domain.example.com'>

*** User 2024-04-16 10:17:04.025 ***🔗
bOb_admin_count_active_users_1494@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-04-16 10:17:04.025 ***🔗
bOb_admin_count_active_users_1494@domain.example.com/res1 out
<iq type='set' id='7847fccfcce90cdff865f7fe3b578bc8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 10:17:04.025 ***🔗
bOb_admin_count_active_users_1494@domain.example.com/res1 in
<iq id='7847fccfcce90cdff865f7fe3b578bc8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_admin_count_active_users_1494@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 10:17:04.025 ***🔗
bob_admin_count_active_users_1494@domain.example.com/res1 out
<iq type='set' id='cf2cdfeeceadfc64b4c3315494d57c0c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:17:04.026 ***🔗
bob_admin_count_active_users_1494@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_admin_count_active_users_1494@domain.example.com/res1' id='cf2cdfeeceadfc64b4c3315494d57c0c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 10:17:04.026 ***🔗
bob_admin_count_active_users_1494@domain.example.com/res1 out
<presence/>



*** User 2024-04-16 10:17:04.027 ***🔗
bob_admin_count_active_users_1494@domain.example.com/res1 in
<presence from='bob_admin_count_active_users_1494@domain.example.com/res1' to='bob_admin_count_active_users_1494@domain.example.com/res1'/>



*** User 2024-04-16 10:17:04.049 ***🔗
REST request:
Code: 200
Req: {<0.36687.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"63163bf9e0c95a1f">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjhjMzExMmIwMTYwZjNiNjY=">>}],
      <<"{\"variables\":{\"user\":\"alice_admin_count_active_users_1494@domain.example.com\",\"timestamp\":\"2024-04-16T10:17:09Z\",\"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">>,<<"Tue, 16 Apr 2024 10:17:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"149">>}],
         <<"{\"data\":{\"last\":{\"setLast\":{\"user\":\"alice_admin_count_active_users_1494@domain.example.com\",\"timestamp\":\"2024-04-16T10:17:09.000000Z\",\"status\":\"\"}}}}">>,
         288,21008}
Params: #{port => 5541,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds => {<<"admin@domain.example.com">>,<<"8c3112b0160f3b66">>},
          body =>
              <<"{\"variables\":{\"user\":\"alice_admin_count_active_users_1494@domain.example.com\",\"timestamp\":\"2024-04-16T10:17:09Z\",\"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},
          return_maps => true,return_headers => true}


*** User 2024-04-16 10:17:04.073 ***🔗
REST request:
Code: 200
Req: {<0.36689.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3e64669dc525dbb6">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjhjMzExMmIwMTYwZjNiNjY=">>}],
      <<"{\"variables\":{\"user\":\"bob_admin_count_active_users_1494@domain.example.com\",\"timestamp\":\"2024-04-16T10:17:14Z\",\"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">>,<<"Tue, 16 Apr 2024 10:17:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"147">>}],
         <<"{\"data\":{\"last\":{\"setLast\":{\"user\":\"bob_admin_count_active_users_1494@domain.example.com\",\"timestamp\":\"2024-04-16T10:17:14.000000Z\",\"status\":\"\"}}}}">>,
         286,23338}
Params: #{port => 5541,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds => {<<"admin@domain.example.com">>,<<"8c3112b0160f3b66">>},
          body =>
              <<"{\"variables\":{\"user\":\"bob_admin_count_active_users_1494@domain.example.com\",\"timestamp\":\"2024-04-16T10:17:14Z\",\"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},
          return_maps => true,return_headers => true}


*** User 2024-04-16 10:17:04.081 ***🔗
REST request:
Code: 200
Req: {<0.36691.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8302ec882d2876a3">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjhjMzExMmIwMTYwZjNiNjY=">>}],
      <<"{\"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">>,<<"Tue, 16 Apr 2024 10:17:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"40">>}],
         <<"{\"data\":{\"last\":{\"countActiveUsers\":2}}}">>,178,6536}
Params: #{port => 5541,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds => {<<"admin@domain.example.com">>,<<"8c3112b0160f3b66">>},
          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},
          return_maps => true,return_headers => true}


*** User 2024-04-16 10:17:04.089 ***🔗
REST request:
Code: 200
Req: {<0.36693.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d3325261ae6fee30">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjhjMzExMmIwMTYwZjNiNjY=">>}],
      <<"{\"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">>,<<"Tue, 16 Apr 2024 10:17:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"40">>}],
         <<"{\"data\":{\"last\":{\"countActiveUsers\":2}}}">>,178,6736}
Params: #{port => 5541,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds => {<<"admin@domain.example.com">>,<<"8c3112b0160f3b66">>},
          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},
          return_maps => true,return_headers => true}


*** User 2024-04-16 10:17:04.099 ***🔗
REST request:
Code: 200
Req: {<0.36695.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cbe513e22ccbf071">>},
       {<<"authorization">>,
        <<"Basic YWRtaW5AZG9tYWluLmV4YW1wbGUuY29tOjhjMzExMmIwMTYwZjNiNjY=">>}],
      <<"{\"variables\":{\"domain\":\"domain.example.com\",\"timestamp\":\"2024-04-16T10:17:34Z\"},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 16 Apr 2024 10:17:03 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"40">>}],
         <<"{\"data\":{\"last\":{\"countActiveUsers\":0}}}">>,178,8612}
Params: #{port => 5541,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          creds => {<<"admin@domain.example.com">>,<<"8c3112b0160f3b66">>},
          body =>
              <<"{\"variables\":{\"domain\":\"domain.example.com\",\"timestamp\":\"2024-04-16T10:17:34Z\"},\"query\":\"query ($domain: DomainName!, $timestamp: DateTime) { last { countActiveUsers(domain: $domain, timestamp: $timestamp) } }\"}">>,
          method => <<"POST">>,
          role => {graphql,domain_admin},
          return_maps => true,return_headers => true}


*** User 2024-04-16 10:17:04.099 ***🔗
bob_admin_count_active_users_1494@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-16 10:17:04.100 ***🔗
bob_admin_count_active_users_1494@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-16 10:17:04.100 ***🔗
alice_admin_count_active_users_1494@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-16 10:17:04.100 ***🔗
alice_admin_count_active_users_1494@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-16 10:17:04.102 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1489.html



=== Ended at 2024-04-16 10:17:04
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result