=== Test case: rest_client_SUITE:markable_property_is_archived_in_room/1 (click for source code)
=== Config value:
[{watchdog,<0.76333.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@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_08.00.20/rest_client_suite.markable_property_is_archived_in_room.208514.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@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_08.00.20/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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},
backend => mnesia,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@55d20a7e6e08.2024-03-21_07.45.40"
=== Started at 2024-03-21 08:00:21
*** User 2024-03-21 08:00:21.599 ***🔗
alicE_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.600 ***🔗
alicE_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='08be5f22fba3d249' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 08:00:21.600 ***🔗
alicE_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.600 ***🔗
alicE_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21hcmthYmxlX3Byb3BlcnR5X2lzX2FyY2hpdmVkX2luX3Jvb21fMzAwMgBtYXR5Z3J5c2E=</auth>
*** User 2024-03-21 08:00:21.661 ***🔗
alicE_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 08:00:21.661 ***🔗
alicE_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.661 ***🔗
alicE_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='143347aa5a2a27d4' from='domain.example.com' version='1.0' xml:lang='en' to='alice_markable_property_is_archived_in_room_3002@domain.example.com'>
*** User 2024-03-21 08:00:21.661 ***🔗
alicE_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.661 ***🔗
alicE_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<iq type='set' id='5f58fa2b20c580a1b2796b3dfc09630a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 08:00:21.662 ***🔗
alicE_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<iq id='5f58fa2b20c580a1b2796b3dfc09630a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_markable_property_is_archived_in_room_3002@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 08:00:21.662 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<iq type='set' id='4cf2033b71b18bb076f126b068d11e15'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:21.664 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_markable_property_is_archived_in_room_3002@domain.example.com/res1' id='4cf2033b71b18bb076f126b068d11e15' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:21.664 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 08:00:21.681 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<presence from='alice_markable_property_is_archived_in_room_3002@domain.example.com/res1' to='alice_markable_property_is_archived_in_room_3002@domain.example.com/res1'/>
*** User 2024-03-21 08:00:21.682 ***🔗
bOb_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.682 ***🔗
bOb_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74e2d03b2eab3cc8' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 08:00:21.682 ***🔗
bOb_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.682 ***🔗
bOb_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tYXJrYWJsZV9wcm9wZXJ0eV9pc19hcmNoaXZlZF9pbl9yb29tXzMwMDIAbWFrcm9saWth</auth>
*** User 2024-03-21 08:00:21.688 ***🔗
bOb_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 08:00:21.688 ***🔗
bOb_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.689 ***🔗
bOb_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ca1fd3ef3e664b0' from='domain.example.com' version='1.0' xml:lang='en' to='bob_markable_property_is_archived_in_room_3002@domain.example.com'>
*** User 2024-03-21 08:00:21.689 ***🔗
bOb_markable_property_is_archived_in_room_3002@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-03-21 08:00:21.689 ***🔗
bOb_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<iq type='set' id='9cbc96364287cd1a6f71f97f91d54d99'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 08:00:21.689 ***🔗
bOb_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<iq id='9cbc96364287cd1a6f71f97f91d54d99' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_markable_property_is_archived_in_room_3002@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 08:00:21.689 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<iq type='set' id='4f3eec55e18a8a6818f83a84a231f61c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:21.691 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_markable_property_is_archived_in_room_3002@domain.example.com/res1' id='4f3eec55e18a8a6818f83a84a231f61c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:21.691 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 08:00:21.702 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<presence from='bob_markable_property_is_archived_in_room_3002@domain.example.com/res1' to='bob_markable_property_is_archived_in_room_3002@domain.example.com/res1'/>
*** User 2024-03-21 08:00:21.788 ***🔗
REST request:
Code: 201
Req: {<0.76811.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a49d24d9f540ee6b">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWFya2FibGVfcHJvcGVydHlfaXNfYXJjaGl2ZWRfaW5fcm9vbV8zMDAyQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1711-8021-776600\"}">>,154,17612}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"alice_markable_property_is_archived_in_room_3002@domain.example.com">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 08:00:21.879 ***🔗
REST request:
Code: 204
Req: {<0.76943.0>,<<"/api/rooms/1711-8021-776600/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"654245fcc7a8f102">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWFya2FibGVfcHJvcGVydHlfaXNfYXJjaGl2ZWRfaW5fcm9vbV8zMDAyQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<"{\"user\":\"bob_markable_property_is_archived_in_room_3002@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:21 GMT">>}],
<<>>,80,82223}
Params: #{path => <<"/api/rooms/1711-8021-776600/users">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"user\":\"bob_markable_property_is_archived_in_room_3002@domain.example.com\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"alice_markable_property_is_archived_in_room_3002@domain.example.com">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 08:00:21.879 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<message from='1711-8021-776600@muclight.domain.example.com' to='bob_markable_property_is_archived_in_room_3002@domain.example.com' id='17aa3239-1026-4a99-8478-745ed29b77eb' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1711-8021-865889</version>
<user affiliation='member'>bob_markable_property_is_archived_in_room_3002@domain.example.com</user>
</x>
<body/>
</message>
*** User 2024-03-21 08:00:21.879 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<message from='1711-8021-776600@muclight.domain.example.com' to='alice_markable_property_is_archived_in_room_3002@domain.example.com' id='17aa3239-1026-4a99-8478-745ed29b77eb' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1711-8021-776590</prev-version>
<version>1711-8021-865889</version>
<user affiliation='member'>bob_markable_property_is_archived_in_room_3002@domain.example.com</user>
</x>
<body/>
<stanza-id by='1711-8021-776600@muclight.domain.example.com' id='C51735CESNG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-21 08:00:21.898 ***🔗
REST request:
Code: 200
Req: {<0.77079.0>,<<"/api/rooms/1711-8021-776600/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"71845033b73d6dca">>},
{<<"authorization">>,
<<"Basic Ym9iX21hcmthYmxlX3Byb3BlcnR5X2lzX2FyY2hpdmVkX2luX3Jvb21fMzAwMkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"markable\":true,\"body\":\"Floor is lava!\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"15eae75e-8f65-440a-8a7b-b04a2a25e5f3\"}">>,169,13395}
Params: #{path => <<"/api/rooms/1711-8021-776600/messages">>,
server => #{node => mongooseim@localhost},
body => <<"{\"markable\":true,\"body\":\"Floor is lava!\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_markable_property_is_archived_in_room_3002@domain.example.com">>,
<<"makrolika">>},
return_headers => true}
Could not find element wait_for_parallel_writer in Config.
*** User 2024-03-21 08:00:21.899 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<message from='1711-8021-776600@muclight.domain.example.com/bob_markable_property_is_archived_in_room_3002@domain.example.com' to='alice_markable_property_is_archived_in_room_3002@domain.example.com' id='15eae75e-8f65-440a-8a7b-b04a2a25e5f3' type='groupchat'>
<body>Floor is lava!</body>
<markable xmlns='urn:xmpp:chat-markers:0'/>
<stanza-id by='1711-8021-776600@muclight.domain.example.com' id='C51735D3SBO1' xmlns='urn:xmpp:sid:0'/>
</message>
Could not find element archive_wait in Config.
*** User 2024-03-21 08:00:21.899 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
<message from='1711-8021-776600@muclight.domain.example.com/bob_markable_property_is_archived_in_room_3002@domain.example.com' to='bob_markable_property_is_archived_in_room_3002@domain.example.com' id='15eae75e-8f65-440a-8a7b-b04a2a25e5f3' type='groupchat'>
<body>Floor is lava!</body>
<markable xmlns='urn:xmpp:chat-markers:0'/>
<stanza-id by='1711-8021-776600@muclight.domain.example.com' id='C51735D3SBO1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-21 08:00:21.969 ***🔗
REST request:
Code: 200
Req: {<0.77155.0>,<<"/api/rooms/1711-8021-776600/messages">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"679bce7dcdd8614c">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbWFya2FibGVfcHJvcGVydHlfaXNfYXJjaGl2ZWRfaW5fcm9vbV8zMDAyQGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"450">>}],
<<"[{\"affiliation\":\"member\",\"from\":\"1711-8021-776600@muclight.domain.example.com\",\"user\":\"bob_markable_property_is_archived_in_room_3002@domain.example.com\",\"type\":\"affiliation\",\"timestamp\":1711008021802,\"id\":\"17aa3239-1026-4a99-8478-745ed29b77eb\"},{\"markable\":true,\"from\":\"bob_markable_property_is_archived_in_room_3002@domain.example.com\",\"body\":\"Floor is lava!\",\"type\":\"message\",\"timestamp\":1711008021888,\"id\":\"15eae75e-8f65-440a-8a7b-b04a2a25e5f3\"}]">>,
575,4910}
Params: #{path => <<"/api/rooms/1711-8021-776600/messages">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"alice_markable_property_is_archived_in_room_3002@domain.example.com">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 08:00:21.970 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 08:00:21.970 ***🔗
bob_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-21 08:00:21.970 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 08:00:21.971 ***🔗
alice_markable_property_is_archived_in_room_3002@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-21 08:00:21
=== successfully completed test case
=== === Returned value: ok