=== Test case: rest_client_SUITE:rooms_can_be_listed/1 (click for source code)

=== Config value:

    [{watchdog,<0.87148.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/rest_client_suite.rooms_can_be_listed.155779.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/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_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_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_carboncopy => #{iqdisc => no_queue},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@38467046e2a2.2024-03-11_11.25.28"

=== Started at 2024-03-11 11:44:04


*** CT 2024-03-11 11:44:04.128 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4835.html

*** User 2024-03-11 11:44:04.189 ***🔗
alicE_rooms_can_be_listed_3283@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-11 11:44:04.190 ***🔗
alicE_rooms_can_be_listed_3283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36930e8d45424d95' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:04.191 ***🔗
alicE_rooms_can_be_listed_3283@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-11 11:44:04.191 ***🔗
alicE_rooms_can_be_listed_3283@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvb21zX2Nhbl9iZV9saXN0ZWRfMzI4MwBtYXR5Z3J5c2E=</auth>



*** User 2024-03-11 11:44:04.237 ***🔗
alicE_rooms_can_be_listed_3283@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:04.237 ***🔗
alicE_rooms_can_be_listed_3283@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-11 11:44:04.240 ***🔗
alicE_rooms_can_be_listed_3283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5cb76c960e9901df' from='localhost' version='1.0' xml:lang='en' to='alice_rooms_can_be_listed_3283@localhost'>

*** User 2024-03-11 11:44:04.240 ***🔗
alicE_rooms_can_be_listed_3283@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-11 11:44:04.240 ***🔗
alicE_rooms_can_be_listed_3283@localhost/res1 out
<iq type='set' id='21c367364733ad4075e9b08c4ea7fd92'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:04.240 ***🔗
alicE_rooms_can_be_listed_3283@localhost/res1 in
<iq id='21c367364733ad4075e9b08c4ea7fd92' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_rooms_can_be_listed_3283@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:04.241 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 out
<iq type='set' id='3667850c99bacb5536386117de300b82'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:04.242 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 in
<iq from='localhost' to='alice_rooms_can_be_listed_3283@localhost/res1' id='3667850c99bacb5536386117de300b82' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:04.242 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:04.247 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 in
<presence from='alice_rooms_can_be_listed_3283@localhost/res1' to='alice_rooms_can_be_listed_3283@localhost/res1'/>



*** User 2024-03-11 11:44:04.248 ***🔗
bOb_rooms_can_be_listed_3283@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-11 11:44:04.249 ***🔗
bOb_rooms_can_be_listed_3283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c752aa4177dc29ba' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:04.249 ***🔗
bOb_rooms_can_be_listed_3283@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-11 11:44:04.249 ***🔗
bOb_rooms_can_be_listed_3283@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb29tc19jYW5fYmVfbGlzdGVkXzMyODMAbWFrcm9saWth</auth>



*** User 2024-03-11 11:44:04.251 ***🔗
bOb_rooms_can_be_listed_3283@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:04.252 ***🔗
bOb_rooms_can_be_listed_3283@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-11 11:44:04.255 ***🔗
bOb_rooms_can_be_listed_3283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be28268568484942' from='localhost' version='1.0' xml:lang='en' to='bob_rooms_can_be_listed_3283@localhost'>

*** User 2024-03-11 11:44:04.255 ***🔗
bOb_rooms_can_be_listed_3283@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-11 11:44:04.256 ***🔗
bOb_rooms_can_be_listed_3283@localhost/res1 out
<iq type='set' id='9a33023ae63d37b907f0ec16f4a55d50'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:04.257 ***🔗
bOb_rooms_can_be_listed_3283@localhost/res1 in
<iq id='9a33023ae63d37b907f0ec16f4a55d50' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_rooms_can_be_listed_3283@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:04.257 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 out
<iq type='set' id='11c9f05d60ea60c8b586d151ac320ab1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:04.258 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 in
<iq from='localhost' to='bob_rooms_can_be_listed_3283@localhost/res1' id='11c9f05d60ea60c8b586d151ac320ab1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:04.259 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:04.267 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 in
<presence from='bob_rooms_can_be_listed_3283@localhost/res1' to='bob_rooms_can_be_listed_3283@localhost/res1'/>



*** User 2024-03-11 11:44:04.346 ***🔗
REST request:
Code: 200
Req: {<0.87574.0>,<<"/api/rooms">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca18cf696cb932d8">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zMjgzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,17136}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds =>
              {<<"alice_rooms_can_be_listed_3283@localhost">>,<<"matygrysa">>},
          role => client,method => <<"GET">>,return_headers => true}


*** User 2024-03-11 11:44:04.368 ***🔗
REST request:
Code: 201
Req: {<0.87659.0>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b10100d364a1d8c6">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zMjgzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1710-157444-361960\"}">>,156,12530}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_rooms_can_be_listed_3283@localhost">>,<<"matygrysa">>},
          role => client,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:44:04.466 ***🔗
REST request:
Code: 204
Req: {<0.87768.0>,<<"/api/rooms/1710-157444-361960/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1088cb2241046db1">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zMjgzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"user\":\"bob_rooms_can_be_listed_3283@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:04 GMT">>}],
         <<>>,80,24701}
Params: #{path => <<"/api/rooms/1710-157444-361960/users">>,
          server => #{node => mongooseim@localhost},
          body => <<"{\"user\":\"bob_rooms_can_be_listed_3283@localhost\"}">>,
          creds =>
              {<<"alice_rooms_can_be_listed_3283@localhost">>,<<"matygrysa">>},
          role => client,method => <<"POST">>,return_headers => true}


*** User 2024-03-11 11:44:04.466 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 in
<message from='1710-157444-361960@muclight.localhost' to='bob_rooms_can_be_listed_3283@localhost' id='ea073df4-487b-4495-89a9-a9d8dabaeef9' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1710-157444-454974</version>
		<user affiliation='member'>bob_rooms_can_be_listed_3283@localhost</user>
	</x>
	<body/>
</message>



*** User 2024-03-11 11:44:04.467 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 in
<message from='1710-157444-361960@muclight.localhost' to='alice_rooms_can_be_listed_3283@localhost' id='ea073df4-487b-4495-89a9-a9d8dabaeef9' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1710-157444-361951</prev-version>
		<version>1710-157444-454974</version>
		<user affiliation='member'>bob_rooms_can_be_listed_3283@localhost</user>
	</x>
	<body/>
	<stanza-id by='1710-157444-361960@muclight.localhost' id='C4R11RU8KCG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:44:04.551 ***🔗
REST request:
Code: 200
Req: {<0.87906.0>,<<"/api/rooms">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7628651afafc49b4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8zMjgzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"82">>}],
         <<"[{\"subject\":\"This room subject\",\"name\":\"new_room_name\",\"id\":\"1710-157444-361960\"}]">>,
         206,75928}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds =>
              {<<"alice_rooms_can_be_listed_3283@localhost">>,<<"matygrysa">>},
          role => client,method => <<"GET">>,return_headers => true}


*** User 2024-03-11 11:44:04.561 ***🔗
REST request:
Code: 200
Req: {<0.87950.0>,<<"/api/rooms">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4c0034b7328d0898">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvb21zX2Nhbl9iZV9saXN0ZWRfMzI4M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:04 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"82">>}],
         <<"[{\"subject\":\"This room subject\",\"name\":\"new_room_name\",\"id\":\"1710-157444-361960\"}]">>,
         206,4012}
Params: #{path => <<"/api/rooms">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds =>
              {<<"bob_rooms_can_be_listed_3283@localhost">>,<<"makrolika">>},
          role => client,method => <<"GET">>,return_headers => true}


*** User 2024-03-11 11:44:04.561 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:04.561 ***🔗
bob_rooms_can_be_listed_3283@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:44:04.562 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:04.562 ***🔗
alice_rooms_can_be_listed_3283@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:44:04.633 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4835.html



=== Ended at 2024-03-11 11:44:04
=== successfully completed test case
=== === Returned value: ok