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

=== Config value:

    [{watchdog,<0.28959.0>},
     {protocol,cli},
     {schema_endpoint,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_stanza_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@6b7397d80e9d.2024-04-25_14.32.33/big_tests.tests.graphql_stanza_SUITE.logs/run.2024-04-25_14.37.42/graphql_stanza_suite.admin_get_last_messages_with.21125.html"},
     {tc_group_properties,[{name,admin_mam},parallel]},
     {tc_group_path,[[{name,admin_stanza_cli}]]},
     {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@6b7397d80e9d.2024-04-25_14.32.33/big_tests.tests.graphql_stanza_SUITE.logs/run.2024-04-25_14.37.42/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_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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        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@6b7397d80e9d.2024-04-25_14.32.33"

=== Started at 2024-04-25 14:37:49


*** CT 2024-04-25 14:37:49.821 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1732.html

*** User 2024-04-25 14:37:49.842 ***🔗
alicE_admin_get_last_messages_with_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 14:37:49.843 ***🔗
alicE_admin_get_last_messages_with_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3e0b1e9effb552b3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:37:49.843 ***🔗
alicE_admin_get_last_messages_with_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 14:37:49.843 ***🔗
alicE_admin_get_last_messages_with_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2dldF9sYXN0X21lc3NhZ2VzX3dpdGhfMTI4OABtYXR5Z3J5c2E=</auth>



*** User 2024-04-25 14:37:49.845 ***🔗
alicE_admin_get_last_messages_with_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:37:49.845 ***🔗
alicE_admin_get_last_messages_with_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 14:37:49.846 ***🔗
alicE_admin_get_last_messages_with_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eb8241a74d34d600' from='localhost' version='1.0' xml:lang='en' to='alice_admin_get_last_messages_with_1288@localhost'>

*** User 2024-04-25 14:37:49.846 ***🔗
alicE_admin_get_last_messages_with_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 14:37:49.846 ***🔗
alicE_admin_get_last_messages_with_1288@localhost/res1 out
<iq type='set' id='f7b07639d7da9ead298b8226779f9819'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:37:49.846 ***🔗
alicE_admin_get_last_messages_with_1288@localhost/res1 in
<iq id='f7b07639d7da9ead298b8226779f9819' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_admin_get_last_messages_with_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:37:49.846 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 out
<iq type='set' id='41a1cd882109240a36ce0e4de766f817'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:37:49.848 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 in
<iq from='localhost' to='alice_admin_get_last_messages_with_1288@localhost/res1' id='41a1cd882109240a36ce0e4de766f817' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:37:49.848 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 out
<presence/>



*** User 2024-04-25 14:37:49.904 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 in
<presence from='alice_admin_get_last_messages_with_1288@localhost/res1' to='alice_admin_get_last_messages_with_1288@localhost/res1'/>



*** User 2024-04-25 14:37:49.904 ***🔗
bOb_admin_get_last_messages_with_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 14:37:49.905 ***🔗
bOb_admin_get_last_messages_with_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='58838dcdc2e81a7a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:37:49.905 ***🔗
bOb_admin_get_last_messages_with_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 14:37:49.906 ***🔗
bOb_admin_get_last_messages_with_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZG1pbl9nZXRfbGFzdF9tZXNzYWdlc193aXRoXzEyODgAbWFrcm9saWth</auth>



*** User 2024-04-25 14:37:49.907 ***🔗
bOb_admin_get_last_messages_with_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:37:49.907 ***🔗
bOb_admin_get_last_messages_with_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 14:37:49.907 ***🔗
bOb_admin_get_last_messages_with_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0cf868f957b5a6fe' from='localhost' version='1.0' xml:lang='en' to='bob_admin_get_last_messages_with_1288@localhost'>

*** User 2024-04-25 14:37:49.907 ***🔗
bOb_admin_get_last_messages_with_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 14:37:49.907 ***🔗
bOb_admin_get_last_messages_with_1288@localhost/res1 out
<iq type='set' id='add87382be166e9995c56bb524ed2620'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:37:49.907 ***🔗
bOb_admin_get_last_messages_with_1288@localhost/res1 in
<iq id='add87382be166e9995c56bb524ed2620' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_admin_get_last_messages_with_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:37:49.908 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 out
<iq type='set' id='6a796b13df790f9beef84806cfe5aa56'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:37:49.908 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 in
<iq from='localhost' to='bob_admin_get_last_messages_with_1288@localhost/res1' id='6a796b13df790f9beef84806cfe5aa56' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:37:49.908 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 out
<presence/>



*** User 2024-04-25 14:37:49.911 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 in
<presence from='bob_admin_get_last_messages_with_1288@localhost/res1' to='bob_admin_get_last_messages_with_1288@localhost/res1'/>



*** User 2024-04-25 14:37:49.912 ***🔗
kate_admin_get_last_messages_with_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 14:37:49.912 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e8751e8562a50177' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 14:37:49.913 ***🔗
kate_admin_get_last_messages_with_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 14:37:49.913 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRtaW5fZ2V0X2xhc3RfbWVzc2FnZXNfd2l0aF8xMjg4AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-25 14:37:49.914 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 14:37:49.914 ***🔗
kate_admin_get_last_messages_with_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 14:37:49.915 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='48c48c47387f9b3e' from='localhost' version='1.0' xml:lang='en' to='kate_admin_get_last_messages_with_1288@localhost'>

*** User 2024-04-25 14:37:49.915 ***🔗
kate_admin_get_last_messages_with_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 14:37:49.915 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 out
<iq type='set' id='7456abba51e2b68e4a3667738f64deed'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 14:37:49.915 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
<iq id='7456abba51e2b68e4a3667738f64deed' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_admin_get_last_messages_with_1288@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 14:37:49.915 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 out
<iq type='set' id='42c18d2a8633fbcd7d3a7e8c7174702b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:37:49.916 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
<iq from='localhost' to='kate_admin_get_last_messages_with_1288@localhost/res1' id='42c18d2a8633fbcd7d3a7e8c7174702b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 14:37:49.916 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 out
<presence/>



*** User 2024-04-25 14:37:49.919 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
<presence from='kate_admin_get_last_messages_with_1288@localhost/res1' to='kate_admin_get_last_messages_with_1288@localhost/res1'/>



*** User 2024-04-25 14:37:51.219 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  stanza sendMessage --from alice_admin_get_last_messages_with_1288@localhost/res1 --body Hi! --to bob_admin_get_last_messages_with_1288@localhost
Result "{\n  \"data\" : {\n    \"stanza\" : {\n      \"sendMessage\" : {\n        \"id\" : \"a342680b92662346\"\n      }\n    }\n  }\n}\n"
ExitStatus 0

*** User 2024-04-25 14:37:51.219 ***🔗
ResultString:
{
  "data" : {
    "stanza" : {
      "sendMessage" : {
        "id" : "a342680b92662346"
      }
    }
  }
}


*** User 2024-04-25 14:37:51.219 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 in
<message from='alice_admin_get_last_messages_with_1288@localhost/res1' to='bob_admin_get_last_messages_with_1288@localhost' id='a342680b92662346' type='chat'>
	<body>Hi!</body>
	<stanza-id by='bob_admin_get_last_messages_with_1288@localhost' id='C5NCNDA0BP01' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-25 14:37:53.303 ***🔗
waiting for archive_size is done in 2000 miliseconds

*** User 2024-04-25 14:37:54.121 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  stanza sendMessage --from kate_admin_get_last_messages_with_1288@localhost/res1 --body Hi! --to alice_admin_get_last_messages_with_1288@localhost
Result "{\n  \"data\" : {\n    \"stanza\" : {\n      \"sendMessage\" : {\n        \"id\" : \"210815c8d5b08960\"\n      }\n    }\n  }\n}\n"
ExitStatus 0

*** User 2024-04-25 14:37:54.121 ***🔗
ResultString:
{
  "data" : {
    "stanza" : {
      "sendMessage" : {
        "id" : "210815c8d5b08960"
      }
    }
  }
}


*** User 2024-04-25 14:37:54.121 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 in
<message from='kate_admin_get_last_messages_with_1288@localhost/res1' to='alice_admin_get_last_messages_with_1288@localhost' id='210815c8d5b08960' type='chat'>
	<body>Hi!</body>
	<stanza-id by='alice_admin_get_last_messages_with_1288@localhost' id='C5NCNE049981' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-25 14:37:56.161 ***🔗
waiting for archive_size is done in 2000 miliseconds

*** User 2024-04-25 14:37:56.411 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  stanza getLastMessages --caller alice_admin_get_last_messages_with_1288@localhost/res1 --with bob_admin_get_last_messages_with_1288@localhost
Result "{\n  \"data\" : {\n    \"stanza\" : {\n      \"getLastMessages\" : {\n        \"stanzas\" : [\n          {\n            \"timestamp\" : \"2024-04-25T14:37:51.202787Z\",\n            \"stanza_id\" : \"C5NCNDA0BOO1\",\n            \"stanza\" : \"Hi!\",\n            \"sender\" : \"alice_admin_get_last_messages_with_1288@localhost/res1\"\n          }\n        ],\n        \"limit\" : 50\n      }\n    }\n  }\n}\n"
ExitStatus 0

*** User 2024-04-25 14:37:56.411 ***🔗
ResultString:
{
  "data" : {
    "stanza" : {
      "getLastMessages" : {
        "stanzas" : [
          {
            "timestamp" : "2024-04-25T14:37:51.202787Z",
            "stanza_id" : "C5NCNDA0BOO1",
            "stanza" : "Hi!",
            "sender" : "alice_admin_get_last_messages_with_1288@localhost/res1"
          }
        ],
        "limit" : 50
      }
    }
  }
}


*** User 2024-04-25 14:37:56.411 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:37:56.411 ***🔗
kate_admin_get_last_messages_with_1288@localhost/res1 in
</stream:stream>

*** User 2024-04-25 14:37:56.412 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:37:56.412 ***🔗
bob_admin_get_last_messages_with_1288@localhost/res1 in
</stream:stream>

*** User 2024-04-25 14:37:56.412 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 out
</stream:stream>

*** User 2024-04-25 14:37:56.412 ***🔗
alice_admin_get_last_messages_with_1288@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 14:37:56.414 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1732.html



=== Ended at 2024-04-25 14:37:56
=== successfully completed test case
=== === Returned value: ok