=== Test case: graphql_stanza_SUITE:admin_get_last_messages_before/1 (click for source code)
=== Config value:
[{watchdog,<0.29811.0>},
{protocol,cli},
{schema_endpoint,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_stanza_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@2296c5c99be9.2024-03-21_07.45.39/big_tests.tests.graphql_stanza_SUITE.logs/run.2024-03-21_07.51.06/graphql_stanza_suite.admin_get_last_messages_before.71170.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@2296c5c99be9.2024-03-21_07.45.39/big_tests.tests.graphql_stanza_SUITE.logs/run.2024-03-21_07.51.06/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_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},
buffer_max => 100,ack_freq => 1,resume_timeout => 600,
backend => mnesia},
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@2296c5c99be9.2024-03-21_07.45.39"
=== Started at 2024-03-21 07:51:13
*** User 2024-03-21 07:51:13.548 ***🔗
alicE_admin_get_last_messages_before_1281@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-03-21 07:51:13.549 ***🔗
alicE_admin_get_last_messages_before_1281@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30b0493fa4536ef1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:13.549 ***🔗
alicE_admin_get_last_messages_before_1281@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-03-21 07:51:13.549 ***🔗
alicE_admin_get_last_messages_before_1281@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkbWluX2dldF9sYXN0X21lc3NhZ2VzX2JlZm9yZV8xMjgxAG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:51:13.551 ***🔗
alicE_admin_get_last_messages_before_1281@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:13.551 ***🔗
alicE_admin_get_last_messages_before_1281@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-03-21 07:51:13.551 ***🔗
alicE_admin_get_last_messages_before_1281@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1edd5e87f2b6da96' from='localhost' version='1.0' xml:lang='en' to='alice_admin_get_last_messages_before_1281@localhost'>
*** User 2024-03-21 07:51:13.551 ***🔗
alicE_admin_get_last_messages_before_1281@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-03-21 07:51:13.551 ***🔗
alicE_admin_get_last_messages_before_1281@localhost/res1 out
<iq type='set' id='4426e10be9053f13b7cdccf1711ef47e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:13.552 ***🔗
alicE_admin_get_last_messages_before_1281@localhost/res1 in
<iq id='4426e10be9053f13b7cdccf1711ef47e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_admin_get_last_messages_before_1281@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:13.552 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 out
<iq type='set' id='8d23e806cabfa328f8a0547f9739b6d1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:13.552 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 in
<iq from='localhost' to='alice_admin_get_last_messages_before_1281@localhost/res1' id='8d23e806cabfa328f8a0547f9739b6d1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:13.553 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:13.556 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 in
<presence from='alice_admin_get_last_messages_before_1281@localhost/res1' to='alice_admin_get_last_messages_before_1281@localhost/res1'/>
*** User 2024-03-21 07:51:13.556 ***🔗
bOb_admin_get_last_messages_before_1281@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-03-21 07:51:13.557 ***🔗
bOb_admin_get_last_messages_before_1281@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f059c6a28bf102b0' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:13.558 ***🔗
bOb_admin_get_last_messages_before_1281@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-03-21 07:51:13.558 ***🔗
bOb_admin_get_last_messages_before_1281@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZG1pbl9nZXRfbGFzdF9tZXNzYWdlc19iZWZvcmVfMTI4MQBtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:51:13.559 ***🔗
bOb_admin_get_last_messages_before_1281@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:13.559 ***🔗
bOb_admin_get_last_messages_before_1281@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-03-21 07:51:13.560 ***🔗
bOb_admin_get_last_messages_before_1281@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='91f6a98c846ddbc6' from='localhost' version='1.0' xml:lang='en' to='bob_admin_get_last_messages_before_1281@localhost'>
*** User 2024-03-21 07:51:13.560 ***🔗
bOb_admin_get_last_messages_before_1281@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-03-21 07:51:13.560 ***🔗
bOb_admin_get_last_messages_before_1281@localhost/res1 out
<iq type='set' id='47157ed680a0ae781faa1121336c342c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:13.560 ***🔗
bOb_admin_get_last_messages_before_1281@localhost/res1 in
<iq id='47157ed680a0ae781faa1121336c342c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_admin_get_last_messages_before_1281@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:13.560 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 out
<iq type='set' id='0c91ff76bdfde1238083866408fc87ec'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:13.561 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 in
<iq from='localhost' to='bob_admin_get_last_messages_before_1281@localhost/res1' id='0c91ff76bdfde1238083866408fc87ec' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:13.561 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:13.564 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 in
<presence from='bob_admin_get_last_messages_before_1281@localhost/res1' to='bob_admin_get_last_messages_before_1281@localhost/res1'/>
*** User 2024-03-21 07:51:14.845 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl stanza sendMessage --from alice_admin_get_last_messages_before_1281@localhost/res1 --to bob_admin_get_last_messages_before_1281@localhost --body Hi!
Result "{\n \"data\" : {\n \"stanza\" : {\n \"sendMessage\" : {\n \"id\" : \"7402afdfda37cad1\"\n }\n }\n }\n}\n"
ExitStatus 0
*** User 2024-03-21 07:51:14.845 ***🔗
ResultString:
{
"data" : {
"stanza" : {
"sendMessage" : {
"id" : "7402afdfda37cad1"
}
}
}
}
*** User 2024-03-21 07:51:14.845 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 in
<message from='alice_admin_get_last_messages_before_1281@localhost/res1' to='bob_admin_get_last_messages_before_1281@localhost' id='7402afdfda37cad1' type='chat'>
<body>Hi!</body>
<stanza-id by='bob_admin_get_last_messages_before_1281@localhost' id='C516V2VBVP81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-21 07:51:16.844 ***🔗
waiting for archive_size is done in 1900 miliseconds
*** User 2024-03-21 07:51:17.839 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl stanza sendMessage --from bob_admin_get_last_messages_before_1281@localhost/res1 --to alice_admin_get_last_messages_before_1281@localhost --body Hi!
Result "{\n \"data\" : {\n \"stanza\" : {\n \"sendMessage\" : {\n \"id\" : \"32c5cef3fa20227e\"\n }\n }\n }\n}\n"
ExitStatus 0
*** User 2024-03-21 07:51:17.839 ***🔗
ResultString:
{
"data" : {
"stanza" : {
"sendMessage" : {
"id" : "32c5cef3fa20227e"
}
}
}
}
*** User 2024-03-21 07:51:17.840 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 in
<message from='bob_admin_get_last_messages_before_1281@localhost/res1' to='alice_admin_get_last_messages_before_1281@localhost' id='32c5cef3fa20227e' type='chat'>
<body>Hi!</body>
<stanza-id by='alice_admin_get_last_messages_before_1281@localhost' id='C516V3M7CBG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-21 07:51:19.881 ***🔗
waiting for archive_size is done in 2000 miliseconds
*** User 2024-03-21 07:51:20.376 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl stanza sendMessage --from bob_admin_get_last_messages_before_1281@localhost/res1 --to alice_admin_get_last_messages_before_1281@localhost --body Hi!
Result "{\n \"data\" : {\n \"stanza\" : {\n \"sendMessage\" : {\n \"id\" : \"f4aa7fe0793a1158\"\n }\n }\n }\n}\n"
ExitStatus 0
*** User 2024-03-21 07:51:20.376 ***🔗
ResultString:
{
"data" : {
"stanza" : {
"sendMessage" : {
"id" : "f4aa7fe0793a1158"
}
}
}
}
*** User 2024-03-21 07:51:20.376 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 in
<message from='bob_admin_get_last_messages_before_1281@localhost/res1' to='alice_admin_get_last_messages_before_1281@localhost' id='f4aa7fe0793a1158' type='chat'>
<body>Hi!</body>
<stanza-id by='alice_admin_get_last_messages_before_1281@localhost' id='C516V49HOIO1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-21 07:51:22.412 ***🔗
waiting for archive_size is done in 2000 miliseconds
*** User 2024-03-21 07:51:22.727 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl stanza getLastMessages --caller alice_admin_get_last_messages_before_1281@localhost/res1
Result "{\n \"data\" : {\n \"stanza\" : {\n \"getLastMessages\" : {\n \"stanzas\" : [\n {\n \"timestamp\" : \"2024-03-21T07:51:14.827236Z\",\n \"stanza_id\" : \"C516V2VBVP01\",\n \"stanza\" : \"Hi!\",\n \"sender\" : \"alice_admin_get_last_messages_before_1281@localhost/res1\"\n },\n {\n \"timestamp\" : \"2024-03-21T07:51:17.823022Z\",\n \"stanza_id\" : \"C516V3M7CBG1\",\n \"stanza\" : \"Hi!\",\n \"sender\" : \"bob_admin_get_last_messages_before_1281@localhost/res1\"\n },\n {\n \"timestamp\" : \"2024-03-21T07:51:20.355915Z\",\n \"stanza_id\" : \"C516V49HOIO1\",\n \"stanza\" : \"Hi!\",\n \"sender\" : \"bob_admin_get_last_messages_before_1281@localhost/res1\"\n }\n ],\n \"limit\" : 50\n }\n }\n }\n}\n"
ExitStatus 0
*** User 2024-03-21 07:51:22.727 ***🔗
ResultString:
{
"data" : {
"stanza" : {
"getLastMessages" : {
"stanzas" : [
{
"timestamp" : "2024-03-21T07:51:14.827236Z",
"stanza_id" : "C516V2VBVP01",
"stanza" : "Hi!",
"sender" : "alice_admin_get_last_messages_before_1281@localhost/res1"
},
{
"timestamp" : "2024-03-21T07:51:17.823022Z",
"stanza_id" : "C516V3M7CBG1",
"stanza" : "Hi!",
"sender" : "bob_admin_get_last_messages_before_1281@localhost/res1"
},
{
"timestamp" : "2024-03-21T07:51:20.355915Z",
"stanza_id" : "C516V49HOIO1",
"stanza" : "Hi!",
"sender" : "bob_admin_get_last_messages_before_1281@localhost/res1"
}
],
"limit" : 50
}
}
}
}
*** User 2024-03-21 07:51:23.016 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl stanza getLastMessages --caller alice_admin_get_last_messages_before_1281@localhost/res1 --before 2024-03-21T07:51:17.823022Z
Result "{\n \"data\" : {\n \"stanza\" : {\n \"getLastMessages\" : {\n \"stanzas\" : [\n {\n \"timestamp\" : \"2024-03-21T07:51:14.827236Z\",\n \"stanza_id\" : \"C516V2VBVP01\",\n \"stanza\" : \"Hi!\",\n \"sender\" : \"alice_admin_get_last_messages_before_1281@localhost/res1\"\n },\n {\n \"timestamp\" : \"2024-03-21T07:51:17.823022Z\",\n \"stanza_id\" : \"C516V3M7CBG1\",\n \"stanza\" : \"Hi!\",\n \"sender\" : \"bob_admin_get_last_messages_before_1281@localhost/res1\"\n }\n ],\n \"limit\" : 50\n }\n }\n }\n}\n"
ExitStatus 0
*** User 2024-03-21 07:51:23.016 ***🔗
ResultString:
{
"data" : {
"stanza" : {
"getLastMessages" : {
"stanzas" : [
{
"timestamp" : "2024-03-21T07:51:14.827236Z",
"stanza_id" : "C516V2VBVP01",
"stanza" : "Hi!",
"sender" : "alice_admin_get_last_messages_before_1281@localhost/res1"
},
{
"timestamp" : "2024-03-21T07:51:17.823022Z",
"stanza_id" : "C516V3M7CBG1",
"stanza" : "Hi!",
"sender" : "bob_admin_get_last_messages_before_1281@localhost/res1"
}
],
"limit" : 50
}
}
}
}
*** User 2024-03-21 07:51:23.016 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:23.017 ***🔗
bob_admin_get_last_messages_before_1281@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:51:23.017 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:23.018 ***🔗
alice_admin_get_last_messages_before_1281@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:51:23
=== successfully completed test case
=== === Returned value: ok