=== Test case: rest_client_SUITE:messages_are_archived_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.93045.0>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@31a14a49844f.2024-04-16_10.12.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.26.13/rest_client_suite.messages_are_archived_in_room.288002.html"},
{tc_group_properties,[{name,muc},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@31a14a49844f.2024-04-16_10.12.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-16_10.26.13/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@31a14a49844f.2024-04-16_10.12.33"
=== Started at 2024-04-16 10:26:13
*** User 2024-04-16 10:26:13.703 ***🔗
alicE_messages_are_archived_in_room_3495@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:26:13.704 ***🔗
alicE_messages_are_archived_in_room_3495@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1a7d6578382c5e5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:26:13.704 ***🔗
alicE_messages_are_archived_in_room_3495@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:26:13.704 ***🔗
alicE_messages_are_archived_in_room_3495@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzM0OTUAbWF0eWdyeXNh</auth>
*** User 2024-04-16 10:26:13.707 ***🔗
alicE_messages_are_archived_in_room_3495@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:26:13.707 ***🔗
alicE_messages_are_archived_in_room_3495@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:26:13.707 ***🔗
alicE_messages_are_archived_in_room_3495@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e45b81b7a8fd268e' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_are_archived_in_room_3495@domain.example.com'>
*** User 2024-04-16 10:26:13.707 ***🔗
alicE_messages_are_archived_in_room_3495@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:26:13.707 ***🔗
alicE_messages_are_archived_in_room_3495@domain.example.com/res1 out
<iq type='set' id='f284d3d382b38afe65473eb8d9b0813e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:26:13.708 ***🔗
alicE_messages_are_archived_in_room_3495@domain.example.com/res1 in
<iq id='f284d3d382b38afe65473eb8d9b0813e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_are_archived_in_room_3495@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:26:13.708 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 out
<iq type='set' id='d2d06a984698dbd12cc0b74cfed668d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:13.709 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_are_archived_in_room_3495@domain.example.com/res1' id='d2d06a984698dbd12cc0b74cfed668d8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:13.709 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:26:13.717 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 in
<presence from='alice_messages_are_archived_in_room_3495@domain.example.com/res1' to='alice_messages_are_archived_in_room_3495@domain.example.com/res1'/>
*** User 2024-04-16 10:26:13.718 ***🔗
bOb_messages_are_archived_in_room_3495@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:26:13.719 ***🔗
bOb_messages_are_archived_in_room_3495@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ffb63ad319a2333' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-16 10:26:13.719 ***🔗
bOb_messages_are_archived_in_room_3495@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:26:13.719 ***🔗
bOb_messages_are_archived_in_room_3495@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfYXJjaGl2ZWRfaW5fcm9vbV8zNDk1AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-16 10:26:13.722 ***🔗
bOb_messages_are_archived_in_room_3495@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-16 10:26:13.722 ***🔗
bOb_messages_are_archived_in_room_3495@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:26:13.723 ***🔗
bOb_messages_are_archived_in_room_3495@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a6356eee33e7157' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_are_archived_in_room_3495@domain.example.com'>
*** User 2024-04-16 10:26:13.723 ***🔗
bOb_messages_are_archived_in_room_3495@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:26:13.723 ***🔗
bOb_messages_are_archived_in_room_3495@domain.example.com/res1 out
<iq type='set' id='35a98057eca7053e52f4ccc32a6f4140'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-16 10:26:13.723 ***🔗
bOb_messages_are_archived_in_room_3495@domain.example.com/res1 in
<iq id='35a98057eca7053e52f4ccc32a6f4140' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_are_archived_in_room_3495@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-16 10:26:13.723 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 out
<iq type='set' id='5a3a11976d781668311a4230851113e5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:13.725 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_are_archived_in_room_3495@domain.example.com/res1' id='5a3a11976d781668311a4230851113e5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-16 10:26:13.725 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 out
<presence/>
*** User 2024-04-16 10:26:13.789 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 in
<presence from='bob_messages_are_archived_in_room_3495@domain.example.com/res1' to='bob_messages_are_archived_in_room_3495@domain.example.com/res1'/>
*** User 2024-04-16 10:26:13.819 ***🔗
REST request:
Code: 201
Req: {<0.93456.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"69cb52ed6a697e11">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfYXJlX2FyY2hpdmVkX2luX3Jvb21fMzQ5NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1713-263173-807826\"}">>,156,15218}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_are_archived_in_room_3495@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,return_headers => true}
*** User 2024-04-16 10:26:13.920 ***🔗
REST request:
Code: 204
Req: {<0.93596.0>,<<"/api/rooms/1713-263173-807826/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"04b4d0a731f905b9">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfYXJlX2FyY2hpdmVkX2luX3Jvb21fMzQ5NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"user\":\"bob_messages_are_archived_in_room_3495@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>}],
<<>>,80,94256}
Params: #{path => <<"/api/rooms/1713-263173-807826/users">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_are_archived_in_room_3495@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,
body =>
<<"{\"user\":\"bob_messages_are_archived_in_room_3495@domain.example.com\"}">>,
role => client,return_headers => true}
*** User 2024-04-16 10:26:13.920 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 in
<message from='1713-263173-807826@muclight.domain.example.com' to='bob_messages_are_archived_in_room_3495@domain.example.com' id='e866dfe6-53d0-4ace-a57f-4deee153276d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1713-263173-907273</version>
<user affiliation='member'>bob_messages_are_archived_in_room_3495@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-04-16 10:26:13.920 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 in
<message from='1713-263173-807826@muclight.domain.example.com' to='alice_messages_are_archived_in_room_3495@domain.example.com' id='e866dfe6-53d0-4ace-a57f-4deee153276d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1713-263173-807819</prev-version>
<version>1713-263173-907273</version>
<user affiliation='member'>bob_messages_are_archived_in_room_3495@domain.example.com</user>
</x>
<body/>
<stanza-id by='1713-263173-807826@muclight.domain.example.com' id='C5HK5BHHQ101' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-16 10:26:14.007 ***🔗
REST request:
Code: 200
Req: {<0.93792.0>,<<"/api/rooms/1713-263173-807826/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c981cdc2dea1a198">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfYXJlX2FyY2hpdmVkX2luX3Jvb21fMzQ5NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"747e2fae-7041-46f7-82c2-f16fecb357c4\"}">>,169,13598}
Params: #{path => <<"/api/rooms/1713-263173-807826/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_are_archived_in_room_3495@domain.example.com">>,
<<"matygrysa">>},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,return_headers => true}
*** User 2024-04-16 10:26:14.020 ***🔗
REST request:
Code: 200
Req: {<0.93877.0>,<<"/api/rooms/1713-263173-807826/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1053c5550515a0e5">>},
{<<"authorization">>,
<<"Basic Ym9iX21lc3NhZ2VzX2FyZV9hcmNoaXZlZF9pbl9yb29tXzM0OTVAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"body\":\"Hi all!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"7d4ea60b-06c8-41be-8b72-b6847410484c\"}">>,169,6441}
Params: #{path => <<"/api/rooms/1713-263173-807826/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"bob_messages_are_archived_in_room_3495@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,body => <<"{\"body\":\"Hi all!\"}">>,
role => client,return_headers => true}
*** User 2024-04-16 10:26:14.021 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 in
<message from='1713-263173-807826@muclight.domain.example.com/alice_messages_are_archived_in_room_3495@domain.example.com' to='alice_messages_are_archived_in_room_3495@domain.example.com' id='747e2fae-7041-46f7-82c2-f16fecb357c4' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-263173-807826@muclight.domain.example.com' id='C5HK5BI9MH81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-16 10:26:14.021 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 in
<message from='1713-263173-807826@muclight.domain.example.com/alice_messages_are_archived_in_room_3495@domain.example.com' to='bob_messages_are_archived_in_room_3495@domain.example.com' id='747e2fae-7041-46f7-82c2-f16fecb357c4' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-263173-807826@muclight.domain.example.com' id='C5HK5BI9MH81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-16 10:26:14.021 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 in
<message from='1713-263173-807826@muclight.domain.example.com/bob_messages_are_archived_in_room_3495@domain.example.com' to='alice_messages_are_archived_in_room_3495@domain.example.com' id='7d4ea60b-06c8-41be-8b72-b6847410484c' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-263173-807826@muclight.domain.example.com' id='C5HK5BIDQK01' xmlns='urn:xmpp:sid:0'/>
</message>
Could not find element wait_for_parallel_writer in Config.
*** User 2024-04-16 10:26:14.021 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 in
<message from='1713-263173-807826@muclight.domain.example.com/bob_messages_are_archived_in_room_3495@domain.example.com' to='bob_messages_are_archived_in_room_3495@domain.example.com' id='7d4ea60b-06c8-41be-8b72-b6847410484c' type='groupchat'>
<body>Hi all!</body>
<stanza-id by='1713-263173-807826@muclight.domain.example.com' id='C5HK5BIDQK01' xmlns='urn:xmpp:sid:0'/>
</message>
Could not find element archive_wait in Config.
*** User 2024-04-16 10:26:14.028 ***🔗
REST request:
Code: 200
Req: {<0.93916.0>,<<"/api/rooms/1713-263173-807826/messages">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f92f27f2cab9134">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWVzc2FnZXNfYXJlX2FyY2hpdmVkX2luX3Jvb21fMzQ5NUBkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 16 Apr 2024 10:26:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"588">>}],
<<"[{\"affiliation\":\"member\",\"from\":\"1713-263173-807826@muclight.domain.example.com\",\"user\":\"bob_messages_are_archived_in_room_3495@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1713263173901,\"id\":\"e866dfe6-53d0-4ace-a57f-4deee153276d\"},{\"from\":\"alice_messages_are_archived_in_room_3495@domain.example.com\",\"body\":\"Hi all!\",\"type\":\"message\",\"timestamp\":1713263173999,\"id\":\"747e2fae-7041-46f7-82c2-f16fecb357c4\"},{\"from\":\"bob_messages_are_archived_in_room_3495@domain.example.com\",\"body\":\"Hi all!\",\"type\":\"message\",\"timestamp\":1713263174016,\"id\":\"7d4ea60b-06c8-41be-8b72-b6847410484c\"}]">>,
713,2340}
Params: #{path => <<"/api/rooms/1713-263173-807826/messages">>,
server => #{node => mongooseim@localhost},
creds =>
{<<"alice_messages_are_archived_in_room_3495@domain.example.com">>,
<<"matygrysa">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-04-16 10:26:14.029 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:26:14.029 ***🔗
bob_messages_are_archived_in_room_3495@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-16 10:26:14.029 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-16 10:26:14.087 ***🔗
alice_messages_are_archived_in_room_3495@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-16 10:26:14
=== successfully completed test case
=== === Returned value: ok