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

=== Config value:

    [{watchdog,<0.25921.1>},
     {muc_light_host,<<"muclight2.domain.example.com">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_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.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.rooms_can_be_listed.html"},
     {tc_group_properties,[{name,muc},{repeat_until_all_ok,3},pararell]},
     {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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/log_private/"},
     {{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_muc_commands => [],mod_muc_light_commands => [],
        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.">>}}]}}]

=== 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:36:45


*** CT 2022-01-27 12:36:45.360 *** View log from node mongooseim@localhost when started mongooseim@localhost_2471.html
*** CT 2022-01-27 12:36:45.360 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_655.html

*** User 2022-01-27 12:36:45.368 ***
alicE_rooms_can_be_listed_1748@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:36:45.369 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ff9d4a0478e37624' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:45.369 ***
alicE_rooms_can_be_listed_1748@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:36:45.369 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Jvb21zX2Nhbl9iZV9saXN0ZWRfMTc0OABtYXR5Z3J5c2E=</auth>



*** User 2022-01-27 12:36:45.371 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:45.371 ***
alicE_rooms_can_be_listed_1748@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:36:45.371 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='be8bca477236fbca' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:45.371 ***
alicE_rooms_can_be_listed_1748@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:36:45.371 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 out
<iq type='set' id='38b7afff885f7d8d55376a3e8aaaf44b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:45.371 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<iq id='38b7afff885f7d8d55376a3e8aaaf44b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_rooms_can_be_listed_1748@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:45.372 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 out
<iq type='set' id='13cefc6e6689e2fc2f5788fe5fd1322b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:45.372 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<iq type='result' id='13cefc6e6689e2fc2f5788fe5fd1322b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:45.372 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:45.375 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<presence from='alicE_rooms_can_be_listed_1748@domain.example.com/res1' to='alice_rooms_can_be_listed_1748@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:45.376 ***
bOb_rooms_can_be_listed_1748@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:36:45.377 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2582f90e3d80161a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:45.377 ***
bOb_rooms_can_be_listed_1748@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:36:45.377 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9yb29tc19jYW5fYmVfbGlzdGVkXzE3NDgAbWFrcm9saWth</auth>



*** User 2022-01-27 12:36:45.379 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:45.379 ***
bOb_rooms_can_be_listed_1748@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:36:45.379 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='28f6596122341476' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:45.380 ***
bOb_rooms_can_be_listed_1748@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:36:45.380 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 out
<iq type='set' id='81392ab833549d4d62a7345009e33be4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:45.380 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<iq id='81392ab833549d4d62a7345009e33be4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_rooms_can_be_listed_1748@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:45.380 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 out
<iq type='set' id='1bc52a3805e048906921cfa073894269'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:45.381 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<iq type='result' id='1bc52a3805e048906921cfa073894269'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:45.381 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:45.384 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<presence from='bOb_rooms_can_be_listed_1748@domain.example.com/res1' to='bob_rooms_can_be_listed_1748@domain.example.com/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:rooms_can_be_listed/1 in muc 2022-01-27 12:36:45.385 ***
=WARNING REPORT==== 27-Jan-2022::12:36:45.385822 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 12:36:45.396 ***
REST request:
Code: 200
Req: {<0.26049.1>,<<"/api/rooms">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cb8e5f02bb99b60a">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8xNzQ4QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,2148}
Params: #{body => <<>>,
          creds =>
              {<<"alice_rooms_can_be_listed_1748@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,path => <<"/api/rooms">>,return_headers => true,
          role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:rooms_can_be_listed/1 in muc 2022-01-27 12:36:45.398 ***
=WARNING REPORT==== 27-Jan-2022::12:36:45.398345 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 12:36:45.409 ***
REST request:
Code: 200
Req: {<0.26054.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"535940143dd9b979">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8xNzQ4QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1643-287005-409402\"}">>,151,2015}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_rooms_can_be_listed_1748@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:rooms_can_be_listed/1 in muc 2022-01-27 12:36:45.411 ***
=WARNING REPORT==== 27-Jan-2022::12:36:45.411484 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 12:36:45.429 ***
REST request:
Code: 204
Req: {<0.26059.1>,<<"/api/rooms/1643-287005-409402/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"09d3ebec17747fd8">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8xNzQ4QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<"{\"user\":\"bob_rooms_can_be_listed_1748@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:45 GMT">>}],
         <<>>,80,9246}
Params: #{body =>
              <<"{\"user\":\"bob_rooms_can_be_listed_1748@domain.example.com\"}">>,
          creds =>
              {<<"alice_rooms_can_be_listed_1748@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-287005-409402/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:45.430 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
<message from='1643-287005-409402@muclight2.domain.example.com' to='bob_rooms_can_be_listed_1748@domain.example.com' id='b1855ee7-7e97-4d59-bab7-5a9367e7aaae' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-287005-423128</version>
		<user affiliation='member'>bob_rooms_can_be_listed_1748@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 12:36:45.430 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
<message from='1643-287005-409402@muclight2.domain.example.com' to='alice_rooms_can_be_listed_1748@domain.example.com' id='b1855ee7-7e97-4d59-bab7-5a9367e7aaae' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-287005-409356</prev-version>
		<version>1643-287005-423128</version>
		<user affiliation='member'>bob_rooms_can_be_listed_1748@domain.example.com</user>
	</x>
	<body/>
	<stanza-id by='1643-287005-409402@muclight2.domain.example.com' id='BLKFI8SE5B81' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:rooms_can_be_listed/1 in muc 2022-01-27 12:36:45.432 ***
=WARNING REPORT==== 27-Jan-2022::12:36:45.432060 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 12:36:45.443 ***
REST request:
Code: 200
Req: {<0.26064.1>,<<"/api/rooms">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a6d4ebd7f78f73de">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfcm9vbXNfY2FuX2JlX2xpc3RlZF8xNzQ4QGRvbWFpbi5leGFtcGxlLmNvbTptYXR5Z3J5c2E=">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"82">>}],
         <<"[{\"subject\":\"This room subject\",\"name\":\"new_room_name\",\"id\":\"1643-287005-409402\"}]">>,
         206,1596}
Params: #{body => <<>>,
          creds =>
              {<<"alice_rooms_can_be_listed_1748@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"GET">>,path => <<"/api/rooms">>,return_headers => true,
          role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:rooms_can_be_listed/1 in muc 2022-01-27 12:36:45.445 ***
=WARNING REPORT==== 27-Jan-2022::12:36:45.445148 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 12:36:45.454 ***
REST request:
Code: 200
Req: {<0.26069.1>,<<"/api/rooms">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"75cf314ba67c4dc7">>},
       {<<"authorization">>,
        <<"Basic Ym9iX3Jvb21zX2Nhbl9iZV9saXN0ZWRfMTc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"82">>}],
         <<"[{\"subject\":\"This room subject\",\"name\":\"new_room_name\",\"id\":\"1643-287005-409402\"}]">>,
         206,1628}
Params: #{body => <<>>,
          creds =>
              {<<"bob_rooms_can_be_listed_1748@domain.example.com">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/rooms">>,return_headers => true,
          role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:45.455 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:45.455 ***
bOb_rooms_can_be_listed_1748@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:36:45.455 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:45.455 ***
alicE_rooms_can_be_listed_1748@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:36:45.458 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_655.html
*** CT 2022-01-27 12:36:45.458 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2471.html



=== Ended at 2022-01-27 12:36:45
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result