=== Test case: mam_SUITE:retract_message/1 (click for source code)
=== Config value:
[{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
{watchdog,<0.20102.0>},
{basic_group,mam_all},
{configuration,rdbms},
{mod_offline_loaded,false},
{escalus_user_db,{module,escalus_ejabberd}},
{mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.mam_SUITE.logs/run.2022-01-27_12.31.28/mam_suite.retract_message.23683.html"},
{tc_group_properties,[{name,mam06},parallel]},
{tc_group_path,[[{name,rdbms_mam_all},parallel]]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.mam_SUITE.logs/run.2022-01-27_12.31.28/log_private/"},
{config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
[shaper,mam_shaper] => {ok,#{max_rate => 1}},
[shaper,normal] => {ok,#{max_rate => 1000}},
[{access,<<"test type">>},max_user_sessions] =>
{ok,[#{acl => all,value => 10}]}}},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_mam => [{archive_groupchats,false}],
mod_mam_rdbms_arch => [],
mod_mam_rdbms_prefs => [{pm,true}],
mod_mam_rdbms_user => [{pm,true}],
mod_muc =>
[{host,{prefix,<<"groupchats.">>}},
{backend,rdbms},
{hibernate_timeout,2000},
{hibernated_room_check_interval,1000},
{hibernated_room_timeout,2000},
{access,muc},
{access_create,muc_create}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_muc_log => [{outdir,"/tmp/muclogs"},{access_log,muc}],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]},
{carol,[{username,<<"carol">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"jinglebells">>},
{transport,escalus_bosh},
{path,<<"/http-bind">>},
{port,5280}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:31:31
*** User 2022-01-27 12:31:32.167 ***
alicE_retract_message_845@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 2022-01-27 12:31:32.167 ***
alicE_retract_message_845@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='af6cf056ec3da8be' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:31:32.167 ***
alicE_retract_message_845@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 12:31:32.167 ***
alicE_retract_message_845@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3JldHJhY3RfbWVzc2FnZV84NDUAbWF0eWdyeXNh</auth>
*** User 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@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 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5f5b0d85a224cbd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@domain.example.com/res1 out
<iq type='set' id='25ca7c445929da1e09776c4eac6c2db9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@domain.example.com/res1 in
<iq id='25ca7c445929da1e09776c4eac6c2db9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_retract_message_845@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:31:32.169 ***
alicE_retract_message_845@domain.example.com/res1 out
<iq type='set' id='311d4e4e0973bf22f946dbc59d165830'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:31:32.170 ***
alicE_retract_message_845@domain.example.com/res1 in
<iq type='result' id='311d4e4e0973bf22f946dbc59d165830'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:31:32.170 ***
alicE_retract_message_845@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:31:32.171 ***
alicE_retract_message_845@domain.example.com/res1 in
<presence from='alicE_retract_message_845@domain.example.com/res1' to='alice_retract_message_845@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:31:32.172 ***
bOb_retract_message_845@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 2022-01-27 12:31:32.172 ***
bOb_retract_message_845@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e92f32e5253fb5a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:31:32.172 ***
bOb_retract_message_845@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 12:31:32.172 ***
bOb_retract_message_845@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yZXRyYWN0X21lc3NhZ2VfODQ1AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 12:31:32.173 ***
bOb_retract_message_845@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:31:32.173 ***
bOb_retract_message_845@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 2022-01-27 12:31:32.173 ***
bOb_retract_message_845@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c63447e96266855' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:31:32.173 ***
bOb_retract_message_845@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-01-27 12:31:32.173 ***
bOb_retract_message_845@domain.example.com/res1 out
<iq type='set' id='2f6db5b95b9387459ab9002b46d3dba0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:31:32.174 ***
bOb_retract_message_845@domain.example.com/res1 in
<iq id='2f6db5b95b9387459ab9002b46d3dba0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_retract_message_845@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:31:32.174 ***
bOb_retract_message_845@domain.example.com/res1 out
<iq type='set' id='c9743d328cdde16effa9253ca7d36936'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:31:32.174 ***
bOb_retract_message_845@domain.example.com/res1 in
<iq type='result' id='c9743d328cdde16effa9253ca7d36936'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:31:32.174 ***
bOb_retract_message_845@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:31:32.176 ***
bOb_retract_message_845@domain.example.com/res1 in
<presence from='bOb_retract_message_845@domain.example.com/res1' to='bob_retract_message_845@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:31:32.176 ***
alicE_retract_message_845@domain.example.com/res1 out
<message to='bOb_retract_message_845@domain.example.com/res1' type='chat'>
<body>OH, HAI!</body>
<origin-id xmlns='urn:xmpp:sid:0' id='orig-id-1'/>
</message>
*** User 2022-01-27 12:31:32.314 ***
alicE_retract_message_845@domain.example.com/res1 out
<iq type='set' id='8ec396cf0a9ba92930dc2782349a382f'>
<query xmlns='urn:xmpp:mam:2' queryid='q1'>
<x xmlns='jabber:x:data'/>
</query>
</iq>
*** User 2022-01-27 12:31:32.346 ***
alicE_retract_message_845@domain.example.com/res1 in
<message from='alicE_retract_message_845@domain.example.com' to='alicE_retract_message_845@domain.example.com/res1' id='bce89f76-e873-4672-adb8-e052eeaad612'>
<result queryid='q1' xmlns='urn:xmpp:mam:2' id='BLKFFU6I4A01'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T12:31:32Z' from='alice_retract_message_845@domain.example.com/res1'/>
<message from='alice_retract_message_845@domain.example.com/res1' xmlns='jabber:client' xml:lang='en' to='bOb_retract_message_845@domain.example.com/res1' type='chat'>
<body>OH, HAI!</body>
<origin-id xmlns='urn:xmpp:sid:0' id='orig-id-1'/>
</message>
</forwarded>
</result>
</message>
Could not find element retract_on in Config.
*** User 2022-01-27 12:31:32.346 ***
alicE_retract_message_845@domain.example.com/res1 in
<iq from='alicE_retract_message_845@domain.example.com' to='alicE_retract_message_845@domain.example.com/res1' id='8ec396cf0a9ba92930dc2782349a382f' type='result'>
<fin xmlns='urn:xmpp:mam:2' complete='true'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first index='0'>BLKFFU6I4A01</first>
<last>BLKFFU6I4A01</last>
<count>1</count>
</set>
</fin>
</iq>
*** User 2022-01-27 12:31:32.346 ***
bOb_retract_message_845@domain.example.com/res1 in
<message from='alicE_retract_message_845@domain.example.com/res1' to='bOb_retract_message_845@domain.example.com/res1' xml:lang='en' type='chat'>
<body>OH, HAI!</body>
<origin-id xmlns='urn:xmpp:sid:0' id='orig-id-1'/>
<stanza-id by='bOb_retract_message_845@domain.example.com' id='BLKFFU6RA281' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-01-27 12:31:32.346 ***
alicE_retract_message_845@domain.example.com/res1 out
<message type='chat' to='bOb_retract_message_845@domain.example.com/res1'>
<apply-to id='orig-id-1' xmlns='urn:xmpp:fasten:0'>
<retract xmlns='urn:xmpp:message-retract:0'/>
</apply-to>
</message>
Could not find element wait_for_parallel_writer in Config.
*** User 2022-01-27 12:31:33.085 ***
bOb_retract_message_845@domain.example.com/res1 in
<message from='alicE_retract_message_845@domain.example.com/res1' to='bOb_retract_message_845@domain.example.com/res1' xml:lang='en' type='chat'>
<apply-to id='orig-id-1' xmlns='urn:xmpp:fasten:0'>
<retract xmlns='urn:xmpp:message-retract:0'/>
</apply-to>
<stanza-id by='bOb_retract_message_845@domain.example.com' id='BLKFFU8IO9O1' xmlns='urn:xmpp:sid:0'/>
</message>
Could not find element archive_wait in Config.
Could not find element retract_on in Config.
*** User 2022-01-27 12:31:33.085 ***
alicE_retract_message_845@domain.example.com/res1 out
<iq type='set' id='afeb1f0b800890ffff3eaf720b049d53'>
<query xmlns='urn:xmpp:mam:2' queryid='q1'>
<x xmlns='jabber:x:data'/>
</query>
</iq>
*** User 2022-01-27 12:31:33.164 ***
alicE_retract_message_845@domain.example.com/res1 in
<message from='alicE_retract_message_845@domain.example.com' to='alicE_retract_message_845@domain.example.com/res1' id='7fe2a575-b960-4135-8507-0da311babaa8'>
<result queryid='q1' xmlns='urn:xmpp:mam:2' id='BLKFFU6I4A01'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T12:31:32Z' from='alice_retract_message_845@domain.example.com/res1'/>
<message from='alice_retract_message_845@domain.example.com/res1' xmlns='jabber:client' xml:lang='en' to='bOb_retract_message_845@domain.example.com/res1' type='chat'>
<retracted xmlns='urn:xmpp:message-retract:0' stamp='2022-01-27T12:31:32Z'>
<origin-id xmlns='urn:xmpp:sid:0' id='orig-id-1'/>
</retracted>
</message>
</forwarded>
</result>
</message>
*** User 2022-01-27 12:31:33.164 ***
alicE_retract_message_845@domain.example.com/res1 in
<message from='alicE_retract_message_845@domain.example.com' to='alicE_retract_message_845@domain.example.com/res1' id='e36b919c-b7d9-44fd-975e-a1b87bc4eeb9'>
<result queryid='q1' xmlns='urn:xmpp:mam:2' id='BLKFFU7RN301'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T12:31:32Z' from='alice_retract_message_845@domain.example.com/res1'/>
<message from='alice_retract_message_845@domain.example.com/res1' xmlns='jabber:client' xml:lang='en' type='chat' to='bOb_retract_message_845@domain.example.com/res1'>
<apply-to id='orig-id-1' xmlns='urn:xmpp:fasten:0'>
<retract xmlns='urn:xmpp:message-retract:0'/>
</apply-to>
</message>
</forwarded>
</result>
</message>
Could not find element retract_on in Config.
*** User 2022-01-27 12:31:33.164 ***
alicE_retract_message_845@domain.example.com/res1 in
<iq from='alicE_retract_message_845@domain.example.com' to='alicE_retract_message_845@domain.example.com/res1' id='afeb1f0b800890ffff3eaf720b049d53' type='result'>
<fin xmlns='urn:xmpp:mam:2' complete='true'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first index='0'>BLKFFU6I4A01</first>
<last>BLKFFU7RN301</last>
<count>2</count>
</set>
</fin>
</iq>
*** User 2022-01-27 12:31:33.164 ***
bOb_retract_message_845@domain.example.com/res1 out
<iq type='set' id='3c861f810addb929b7cbc935ca4152ae'>
<query xmlns='urn:xmpp:mam:2' queryid='q2'>
<x xmlns='jabber:x:data'/>
</query>
</iq>
*** User 2022-01-27 12:31:33.217 ***
bOb_retract_message_845@domain.example.com/res1 in
<message from='bOb_retract_message_845@domain.example.com' to='bOb_retract_message_845@domain.example.com/res1' id='725cf493-38bc-490c-b8c8-e3a9f613c932'>
<result queryid='q2' xmlns='urn:xmpp:mam:2' id='BLKFFU6RA281'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T12:31:32Z' from='alice_retract_message_845@domain.example.com/res1'/>
<message from='alice_retract_message_845@domain.example.com/res1' xmlns='jabber:client' xml:lang='en' to='bOb_retract_message_845@domain.example.com/res1' type='chat'>
<retracted xmlns='urn:xmpp:message-retract:0' stamp='2022-01-27T12:31:32Z'>
<origin-id xmlns='urn:xmpp:sid:0' id='orig-id-1'/>
</retracted>
</message>
</forwarded>
</result>
</message>
*** User 2022-01-27 12:31:33.217 ***
bOb_retract_message_845@domain.example.com/res1 in
<message from='bOb_retract_message_845@domain.example.com' to='bOb_retract_message_845@domain.example.com/res1' id='29cd3efa-5110-4377-9002-7f96717017ad'>
<result queryid='q2' xmlns='urn:xmpp:mam:2' id='BLKFFU8IO9O1'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2022-01-27T12:31:32Z' from='alice_retract_message_845@domain.example.com/res1'/>
<message from='alice_retract_message_845@domain.example.com/res1' xmlns='jabber:client' xml:lang='en' type='chat' to='bOb_retract_message_845@domain.example.com/res1'>
<apply-to id='orig-id-1' xmlns='urn:xmpp:fasten:0'>
<retract xmlns='urn:xmpp:message-retract:0'/>
</apply-to>
</message>
</forwarded>
</result>
</message>
*** User 2022-01-27 12:31:33.217 ***
bOb_retract_message_845@domain.example.com/res1 in
<iq from='bOb_retract_message_845@domain.example.com' to='bOb_retract_message_845@domain.example.com/res1' id='3c861f810addb929b7cbc935ca4152ae' type='result'>
<fin xmlns='urn:xmpp:mam:2' complete='true'>
<set xmlns='http://jabber.org/protocol/rsm'>
<first index='0'>BLKFFU6RA281</first>
<last>BLKFFU8IO9O1</last>
<count>2</count>
</set>
</fin>
</iq>
*** User 2022-01-27 12:31:33.218 ***
bOb_retract_message_845@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:31:33.218 ***
bOb_retract_message_845@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:31:33.218 ***
alicE_retract_message_845@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:31:33.218 ***
alicE_retract_message_845@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:31:33
=== successfully completed test case
=== === Returned value: ok