=== Test case: graphql_stanza_SUITE:admin_get_last_messages_before/1 (click for source code)

=== Config value:

    [{watchdog,<0.28714.0>},
     {protocol,http},
     {schema_endpoint,admin},
     {listener_opts,#{module => mongoose_graphql_handler,
                      path => "/api/graphql",host => "localhost",
                      username => <<"admin">>,password => <<"secret">>,
                      schema_endpoint => admin,sse_idle_timeout => 3600000}},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"odbc_mssql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/graphql_stanza_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@263f7cbb53ed.2024-04-25_14.57.19/big_tests.tests.graphql_stanza_SUITE.logs/run.2024-04-25_15.03.26/graphql_stanza_suite.admin_get_last_messages_before.42243.html"},
     {tc_group_properties,[{name,admin_mam},parallel]},
     {tc_group_path,[[{name,admin_stanza_http}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/graphql_stanza_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@263f7cbb53ed.2024-04-25_14.57.19/big_tests.tests.graphql_stanza_SUITE.logs/run.2024-04-25_15.03.26/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_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,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              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 => 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@263f7cbb53ed.2024-04-25_14.57.19"

=== Started at 2024-04-25 15:03:26


*** CT 2024-04-25 15:03:26.994 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1853.html

*** User 2024-04-25 15:03:27.005 ***🔗
alicE_admin_get_last_messages_before_1288@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-25 15:03:27.006 ***🔗
alicE_admin_get_last_messages_before_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d99f232539a137d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 15:03:27.006 ***🔗
alicE_admin_get_last_messages_before_1288@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-25 15:03:27.006 ***🔗
alicE_admin_get_last_messages_before_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2dldF9sYXN0X21lc3NhZ2VzX2JlZm9yZV8xMjg4AG1hdHlncnlzYQ==</auth>



*** User 2024-04-25 15:03:27.007 ***🔗
alicE_admin_get_last_messages_before_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 15:03:27.007 ***🔗
alicE_admin_get_last_messages_before_1288@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-25 15:03:27.008 ***🔗
alicE_admin_get_last_messages_before_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e56565355defa40a' from='localhost' version='1.0' xml:lang='en' to='alice_admin_get_last_messages_before_1288@localhost'>

*** User 2024-04-25 15:03:27.008 ***🔗
alicE_admin_get_last_messages_before_1288@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-25 15:03:27.008 ***🔗
alicE_admin_get_last_messages_before_1288@localhost/res1 out
<iq type='set' id='5147d5240ea89d3eb4c0cf721976f2d2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 15:03:27.008 ***🔗
alicE_admin_get_last_messages_before_1288@localhost/res1 in
<iq id='5147d5240ea89d3eb4c0cf721976f2d2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_admin_get_last_messages_before_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 15:03:27.008 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 out
<iq type='set' id='4498889188af6b1a8fd9c58ad4f3a570'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:03:27.009 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 in
<iq from='localhost' to='alice_admin_get_last_messages_before_1288@localhost/res1' id='4498889188af6b1a8fd9c58ad4f3a570' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:03:27.009 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 out
<presence/>



*** User 2024-04-25 15:03:27.030 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 in
<presence from='alice_admin_get_last_messages_before_1288@localhost/res1' to='alice_admin_get_last_messages_before_1288@localhost/res1'/>



*** User 2024-04-25 15:03:27.031 ***🔗
bOb_admin_get_last_messages_before_1288@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-25 15:03:27.032 ***🔗
bOb_admin_get_last_messages_before_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb19cf77a2d289e4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 15:03:27.032 ***🔗
bOb_admin_get_last_messages_before_1288@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-25 15:03:27.032 ***🔗
bOb_admin_get_last_messages_before_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZG1pbl9nZXRfbGFzdF9tZXNzYWdlc19iZWZvcmVfMTI4OABtYWtyb2xpa2E=</auth>



*** User 2024-04-25 15:03:27.033 ***🔗
bOb_admin_get_last_messages_before_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 15:03:27.033 ***🔗
bOb_admin_get_last_messages_before_1288@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-25 15:03:27.034 ***🔗
bOb_admin_get_last_messages_before_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5a9ae068db00ab54' from='localhost' version='1.0' xml:lang='en' to='bob_admin_get_last_messages_before_1288@localhost'>

*** User 2024-04-25 15:03:27.034 ***🔗
bOb_admin_get_last_messages_before_1288@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-25 15:03:27.034 ***🔗
bOb_admin_get_last_messages_before_1288@localhost/res1 out
<iq type='set' id='f3b14d043858b61d0f0b23caef44526d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 15:03:27.034 ***🔗
bOb_admin_get_last_messages_before_1288@localhost/res1 in
<iq id='f3b14d043858b61d0f0b23caef44526d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_admin_get_last_messages_before_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 15:03:27.035 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 out
<iq type='set' id='9bb7db5562fbcf31b2b72ab976cdd37c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:03:27.037 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 in
<iq from='localhost' to='bob_admin_get_last_messages_before_1288@localhost/res1' id='9bb7db5562fbcf31b2b72ab976cdd37c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 15:03:27.037 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 out
<presence/>



*** User 2024-04-25 15:03:27.039 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 in
<presence from='bob_admin_get_last_messages_before_1288@localhost/res1' to='bob_admin_get_last_messages_before_1288@localhost/res1'/>



*** User 2024-04-25 15:03:27.056 ***🔗
REST request:
Code: 200
Req: {<0.28797.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1996e4aa8e45e358">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"from\":\"alice_admin_get_last_messages_before_1288@localhost/res1\",\"body\":\"Hi!\",\"to\":\"bob_admin_get_last_messages_before_1288@localhost\"},\"query\":\"mutation ($body: String!, $from: JID!, $to: JID!) { stanza { sendMessage(body: $body, from: $from, to: $to) { id } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:03:26 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"61">>}],
         <<"{\"data\":{\"stanza\":{\"sendMessage\":{\"id\":\"81f4284e3ca7b398\"}}}}">>,
         199,14611}
Params: #{port => 5551,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"variables\":{\"from\":\"alice_admin_get_last_messages_before_1288@localhost/res1\",\"body\":\"Hi!\",\"to\":\"bob_admin_get_last_messages_before_1288@localhost\"},\"query\":\"mutation ($body: String!, $from: JID!, $to: JID!) { stanza { sendMessage(body: $body, from: $from, to: $to) { id } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          role => {graphql,admin},
          return_maps => true,method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:03:27.056 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 in
<message from='alice_admin_get_last_messages_before_1288@localhost/res1' to='bob_admin_get_last_messages_before_1288@localhost' id='81f4284e3ca7b398' type='chat'>
	<body>Hi!</body>
	<stanza-id by='bob_admin_get_last_messages_before_1288@localhost' id='C5ND2RFHDMG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-25 15:03:29.099 ***🔗
waiting for archive_size is done in 2000 miliseconds

*** User 2024-04-25 15:03:29.101 ***🔗
REST request:
Code: 200
Req: {<0.28815.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"956046d34fa5abc7">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"from\":\"bob_admin_get_last_messages_before_1288@localhost/res1\",\"body\":\"Hi!\",\"to\":\"alice_admin_get_last_messages_before_1288@localhost\"},\"query\":\"mutation ($body: String!, $from: JID!, $to: JID!) { stanza { sendMessage(body: $body, from: $from, to: $to) { id } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:03:28 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"61">>}],
         <<"{\"data\":{\"stanza\":{\"sendMessage\":{\"id\":\"d4a3b816cd4b2eed\"}}}}">>,
         199,1172}
Params: #{port => 5551,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"variables\":{\"from\":\"bob_admin_get_last_messages_before_1288@localhost/res1\",\"body\":\"Hi!\",\"to\":\"alice_admin_get_last_messages_before_1288@localhost\"},\"query\":\"mutation ($body: String!, $from: JID!, $to: JID!) { stanza { sendMessage(body: $body, from: $from, to: $to) { id } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          role => {graphql,admin},
          return_maps => true,method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:03:29.102 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 in
<message from='bob_admin_get_last_messages_before_1288@localhost/res1' to='alice_admin_get_last_messages_before_1288@localhost' id='d4a3b816cd4b2eed' type='chat'>
	<body>Hi!</body>
	<stanza-id by='alice_admin_get_last_messages_before_1288@localhost' id='C5ND2RV7SOO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-25 15:03:31.143 ***🔗
waiting for archive_size is done in 2000 miliseconds

*** User 2024-04-25 15:03:31.145 ***🔗
REST request:
Code: 200
Req: {<0.28833.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99e4c250c3a061ac">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"from\":\"bob_admin_get_last_messages_before_1288@localhost/res1\",\"body\":\"Hi!\",\"to\":\"alice_admin_get_last_messages_before_1288@localhost\"},\"query\":\"mutation ($body: String!, $from: JID!, $to: JID!) { stanza { sendMessage(body: $body, from: $from, to: $to) { id } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:03:31 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"61">>}],
         <<"{\"data\":{\"stanza\":{\"sendMessage\":{\"id\":\"ca6b48ca8f8ff66c\"}}}}">>,
         199,1238}
Params: #{port => 5551,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"variables\":{\"from\":\"bob_admin_get_last_messages_before_1288@localhost/res1\",\"body\":\"Hi!\",\"to\":\"alice_admin_get_last_messages_before_1288@localhost\"},\"query\":\"mutation ($body: String!, $from: JID!, $to: JID!) { stanza { sendMessage(body: $body, from: $from, to: $to) { id } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          role => {graphql,admin},
          return_maps => true,method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:03:31.146 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 in
<message from='bob_admin_get_last_messages_before_1288@localhost/res1' to='alice_admin_get_last_messages_before_1288@localhost' id='ca6b48ca8f8ff66c' type='chat'>
	<body>Hi!</body>
	<stanza-id by='alice_admin_get_last_messages_before_1288@localhost' id='C5ND2SEQSVG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-25 15:03:33.187 ***🔗
waiting for archive_size is done in 2000 miliseconds

*** User 2024-04-25 15:03:33.190 ***🔗
REST request:
Code: 200
Req: {<0.28845.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aa98aabb93d301c4">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"before\":null,\"with\":null,\"caller\":\"alice_admin_get_last_messages_before_1288@localhost/res1\"},\"query\":\"query ($before: DateTime, $caller: JID!, $limit: PosInt, $with: JID) { stanza { getLastMessages(before: $before, caller: $caller, limit: $limit, with: $with) { limit stanzas { sender stanza stanza_id timestamp } } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:03:33 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"1077">>}],
         <<"{\"data\":{\"stanza\":{\"getLastMessages\":{\"stanzas\":[{\"timestamp\":\"2024-04-25T15:03:27.043289Z\",\"stanza_id\":\"C5ND2RFHDM81\",\"stanza\":\"Hi!\",\"sender\":\"alice_admin_get_last_messages_before_1288@localhost/res1\"},{\"timestamp\":\"2024-04-25T15:03:29.101411Z\",\"stanza_id\":\"C5ND2RV7SOO1\",\"stanza\":\"Hi!\",\"sender\":\"bob_admin_get_last_messages_before_1288@localhost/res1\"},{\"timestamp\":\"2024-04-25T15:03:31.145342Z\",\"stanza_id\":\"C5ND2SEQSVG1\",\"stanza\":\"Hi!\",\"sender\":\"bob_admin_get_last_messages_before_1288@localhost/res1\"}],\"limit\":50}}}}">>,
         1217,1867}
Params: #{port => 5551,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"variables\":{\"before\":null,\"with\":null,\"caller\":\"alice_admin_get_last_messages_before_1288@localhost/res1\"},\"query\":\"query ($before: DateTime, $caller: JID!, $limit: PosInt, $with: JID) { stanza { getLastMessages(before: $before, caller: $caller, limit: $limit, with: $with) { limit stanzas { sender stanza stanza_id timestamp } } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          role => {graphql,admin},
          return_maps => true,method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:03:33.198 ***🔗
REST request:
Code: 200
Req: {<0.28847.0>,<<"/api/graphql">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"deb50565660fabad">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"variables\":{\"before\":\"2024-04-25T15:03:29.101411Z\",\"with\":null,\"caller\":\"alice_admin_get_last_messages_before_1288@localhost/res1\"},\"query\":\"query ($before: DateTime, $caller: JID!, $limit: PosInt, $with: JID) { stanza { getLastMessages(before: $before, caller: $caller, limit: $limit, with: $with) { limit stanzas { sender stanza stanza_id timestamp } } } }\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"vary">>,<<"accept">>},
          {<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 15:03:33 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"740">>}],
         <<"{\"data\":{\"stanza\":{\"getLastMessages\":{\"stanzas\":[{\"timestamp\":\"2024-04-25T15:03:27.043289Z\",\"stanza_id\":\"C5ND2RFHDM81\",\"stanza\":\"Hi!\",\"sender\":\"alice_admin_get_last_messages_before_1288@localhost/res1\"},{\"timestamp\":\"2024-04-25T15:03:29.101411Z\",\"stanza_id\":\"C5ND2RV7SOO1\",\"stanza\":\"Hi!\",\"sender\":\"bob_admin_get_last_messages_before_1288@localhost/res1\"}],\"limit\":50}}}}">>,
         879,6959}
Params: #{port => 5551,path => <<"/api/graphql">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"variables\":{\"before\":\"2024-04-25T15:03:29.101411Z\",\"with\":null,\"caller\":\"alice_admin_get_last_messages_before_1288@localhost/res1\"},\"query\":\"query ($before: DateTime, $caller: JID!, $limit: PosInt, $with: JID) { stanza { getLastMessages(before: $before, caller: $caller, limit: $limit, with: $with) { limit stanzas { sender stanza stanza_id timestamp } } } }\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          role => {graphql,admin},
          return_maps => true,method => <<"POST">>,return_headers => true}


*** User 2024-04-25 15:03:33.198 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 out
</stream:stream>

*** User 2024-04-25 15:03:33.199 ***🔗
bob_admin_get_last_messages_before_1288@localhost/res1 in
</stream:stream>

*** User 2024-04-25 15:03:33.199 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 out
</stream:stream>

*** User 2024-04-25 15:03:33.199 ***🔗
alice_admin_get_last_messages_before_1288@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 15:03:33.201 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1853.html



=== Ended at 2024-04-25 15:03:33
=== successfully completed test case
=== === Returned value: ok