=== Test case: rest_client_SUITE:rooms_can_be_listed/1 (click for source code)
=== Config value:
[{watchdog,<0.89178.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{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@3137d4b2a3a4.2024-04-22_17.28.36/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_17.45.56/rest_client_suite.rooms_can_be_listed.249730.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@3137d4b2a3a4.2024-04-22_17.28.36/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_17.45.56/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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_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_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{server_info => [],iqdisc => one_queue,extra_domains => [],
users_can_see_hidden_services => false},
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_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@3137d4b2a3a4.2024-04-22_17.28.36"
=== Started at 2024-04-22 17:45:56
*** User 2024-04-22 17:45:57.068 ***🔗
alicE_rooms_can_be_listed_3406@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-22 17:45:57.068 ***🔗
alicE_rooms_can_be_listed_3406@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14fa509569c2138f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:57.068 ***🔗
alicE_rooms_can_be_listed_3406@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-22 17:45:57.068 ***🔗
alicE_rooms_can_be_listed_3406@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvb21zX2Nhbl9iZV9saXN0ZWRfMzQwNgBtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 17:45:57.069 ***🔗
alicE_rooms_can_be_listed_3406@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:57.070 ***🔗
alicE_rooms_can_be_listed_3406@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-22 17:45:57.070 ***🔗
alicE_rooms_can_be_listed_3406@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49765806060b6d2b' from='localhost' version='1.0' xml:lang='en' to='alice_rooms_can_be_listed_3406@localhost'>
*** User 2024-04-22 17:45:57.071 ***🔗
alicE_rooms_can_be_listed_3406@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-22 17:45:57.071 ***🔗
alicE_rooms_can_be_listed_3406@localhost/res1 out
<iq type='set' id='110891e4e1a4dcf4550ee2583b6fe1c6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:57.072 ***🔗
alicE_rooms_can_be_listed_3406@localhost/res1 in
<iq id='110891e4e1a4dcf4550ee2583b6fe1c6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_rooms_can_be_listed_3406@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:57.072 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 out
<iq type='set' id='f2ae0fedcdfd96638b8c37ed2cce3ffb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:57.073 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 in
<iq from='localhost' to='alice_rooms_can_be_listed_3406@localhost/res1' id='f2ae0fedcdfd96638b8c37ed2cce3ffb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:57.074 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:57.076 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 in
<presence from='alice_rooms_can_be_listed_3406@localhost/res1' to='alice_rooms_can_be_listed_3406@localhost/res1'/>
*** User 2024-04-22 17:45:57.078 ***🔗
bOb_rooms_can_be_listed_3406@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-22 17:45:57.080 ***🔗
bOb_rooms_can_be_listed_3406@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae5a1cb08439ba50' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:57.080 ***🔗
bOb_rooms_can_be_listed_3406@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-22 17:45:57.080 ***🔗
bOb_rooms_can_be_listed_3406@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb29tc19jYW5fYmVfbGlzdGVkXzM0MDYAbWFrcm9saWth</auth>
*** User 2024-04-22 17:45:57.082 ***🔗
bOb_rooms_can_be_listed_3406@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:57.082 ***🔗
bOb_rooms_can_be_listed_3406@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-22 17:45:57.083 ***🔗
bOb_rooms_can_be_listed_3406@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c435de02899f165b' from='localhost' version='1.0' xml:lang='en' to='bob_rooms_can_be_listed_3406@localhost'>
*** User 2024-04-22 17:45:57.084 ***🔗
bOb_rooms_can_be_listed_3406@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-22 17:45:57.085 ***🔗
bOb_rooms_can_be_listed_3406@localhost/res1 out
<iq type='set' id='ecb28768558339afd24cff350fcabe59'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:57.086 ***🔗
bOb_rooms_can_be_listed_3406@localhost/res1 in
<iq id='ecb28768558339afd24cff350fcabe59' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_rooms_can_be_listed_3406@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:57.140 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 out
<iq type='set' id='22e1349b42c3e3e1ad8136e58d433609'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:57.141 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 in
<iq from='localhost' to='bob_rooms_can_be_listed_3406@localhost/res1' id='22e1349b42c3e3e1ad8136e58d433609' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:57.142 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:57.147 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 in
<presence from='bob_rooms_can_be_listed_3406@localhost/res1' to='bob_rooms_can_be_listed_3406@localhost/res1'/>
*** User 2024-04-22 17:45:57.168 ***🔗
REST request:
Code: 200
Req: {<0.89546.0>,<<"/api/rooms">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a12089ed2ab547a6">>},
{<<"authorization">>,
<<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zNDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,9072}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"alice_rooms_can_be_listed_3406@localhost">>,<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 17:45:57.246 ***🔗
REST request:
Code: 201
Req: {<0.89617.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"265b7ec1d88f3922">>},
{<<"authorization">>,
<<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zNDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"27">>}],
<<"{\"id\":\"1713-807957-178398\"}">>,156,69703}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
role => client,
creds =>
{<<"alice_rooms_can_be_listed_3406@localhost">>,<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 17:45:57.351 ***🔗
REST request:
Code: 204
Req: {<0.89713.0>,<<"/api/rooms/1713-807957-178398/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"53b9037d4ae303e7">>},
{<<"authorization">>,
<<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zNDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<"{\"user\":\"bob_rooms_can_be_listed_3406@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:56 GMT">>}],
<<>>,80,95713}
Params: #{path => <<"/api/rooms/1713-807957-178398/users">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"user\":\"bob_rooms_can_be_listed_3406@localhost\"}">>,
role => client,
creds =>
{<<"alice_rooms_can_be_listed_3406@localhost">>,<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 17:45:57.351 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 in
<message from='1713-807957-178398@muclight.localhost' to='bob_rooms_can_be_listed_3406@localhost' id='f585e0ab-9f78-4d1f-ab02-2865ffbdc19d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1713-807957-279693</version>
<user affiliation='member'>bob_rooms_can_be_listed_3406@localhost</user>
</x>
<body/>
</message>
*** User 2024-04-22 17:45:57.351 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 in
<message from='1713-807957-178398@muclight.localhost' to='alice_rooms_can_be_listed_3406@localhost' id='f585e0ab-9f78-4d1f-ab02-2865ffbdc19d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1713-807957-178388</prev-version>
<version>1713-807957-279693</version>
<user affiliation='member'>bob_rooms_can_be_listed_3406@localhost</user>
</x>
<body/>
<stanza-id by='1713-807957-178398@muclight.localhost' id='C5LJ0A0PUBG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-04-22 17:45:57.373 ***🔗
REST request:
Code: 200
Req: {<0.89907.0>,<<"/api/rooms">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c6f75cfa6ede22e6">>},
{<<"authorization">>,
<<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zNDA2QGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"subject\":\"This room subject\",\"name\":\"new_room_name\",\"id\":\"1713-807957-178398\"}]">>,
206,14371}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"alice_rooms_can_be_listed_3406@localhost">>,<<"matygrysa">>},
return_headers => true}
*** User 2024-04-22 17:45:57.441 ***🔗
REST request:
Code: 200
Req: {<0.89980.0>,<<"/api/rooms">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6a513a842563f2dc">>},
{<<"authorization">>,
<<"Basic Ym9iX3Jvb21zX2Nhbl9iZV9saXN0ZWRfMzQwNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"subject\":\"This room subject\",\"name\":\"new_room_name\",\"id\":\"1713-807957-178398\"}]">>,
206,60733}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => client,
creds =>
{<<"bob_rooms_can_be_listed_3406@localhost">>,<<"makrolika">>},
return_headers => true}
*** User 2024-04-22 17:45:57.441 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:57.442 ***🔗
bob_rooms_can_be_listed_3406@localhost/res1 in
</stream:stream>
*** User 2024-04-22 17:45:57.442 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:57.443 ***🔗
alice_rooms_can_be_listed_3406@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 17:45:57
=== successfully completed test case
=== === Returned value: ok