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

=== Config value:

    [{watchdog,<0.15512.1>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,disabled},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"ldap_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/rest_client_suite.config_cannot_be_changed_by_member.html"},
     {tc_group_properties,[{name,muc_config}]},
     {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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.38.20/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{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 => [],mod_sic => [],mod_stream_management => [],
        mod_vcard =>
            [{backend,ldap},
             {host,{prefix,<<"vjud.">>}},
             {ldap_base,"ou=Users,dc=esl,dc=com"},
             {ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"

=== Started at 2022-03-03 10:38:22


*** CT 2022-03-03 10:38:22.237 *** View log from node mongooseim@localhost when started mongooseim@localhost_5024.html
*** CT 2022-03-03 10:38:22.238 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2342.html

*** User 2022-03-03 10:38:22.242 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.243 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb9733ed5f27df31' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.243 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/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>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-03-03 10:38:22.243 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2NvbmZpZ19jYW5ub3RfYmVfY2hhbmdlZF9ieV9tZW1iZXJfMTMxMwBtYXR5Z3J5c2E=</auth>



*** User 2022-03-03 10:38:22.244 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:22.244 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.245 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7791c248031bf78' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.245 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/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-03-03 10:38:22.245 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
<iq type='set' id='2cf89254b3c4aea8be982d0cb071b79e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.245 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<iq id='2cf89254b3c4aea8be982d0cb071b79e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_config_cannot_be_changed_by_member_1313@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.245 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
<iq type='set' id='4f5db747e5ef969a21870e88b512eae0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.246 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<iq type='result' id='4f5db747e5ef969a21870e88b512eae0'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.246 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:22.247 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<presence from='alicE_config_cannot_be_changed_by_member_1313@localhost/res1' to='alice_config_cannot_be_changed_by_member_1313@localhost/res1' xml:lang='en'/>



*** User 2022-03-03 10:38:22.247 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.248 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a34c1d2cdda4cc5c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.248 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/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>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-03-03 10:38:22.248 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9jb25maWdfY2Fubm90X2JlX2NoYW5nZWRfYnlfbWVtYmVyXzEzMTMAbWFrcm9saWth</auth>



*** User 2022-03-03 10:38:22.249 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-03 10:38:22.249 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-03-03 10:38:22.249 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4595f8beaa32287' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-03 10:38:22.249 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/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-03-03 10:38:22.249 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
<iq type='set' id='ec66b5d24add4665fed0180deea8fa5b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.250 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<iq id='ec66b5d24add4665fed0180deea8fa5b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_config_cannot_be_changed_by_member_1313@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-03 10:38:22.250 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
<iq type='set' id='036b2fa0e86f8fa612f5a832c83e9e17'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.250 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<iq type='result' id='036b2fa0e86f8fa612f5a832c83e9e17'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-03 10:38:22.250 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
<presence/>



*** User 2022-03-03 10:38:22.251 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<presence from='bOb_config_cannot_be_changed_by_member_1313@localhost/res1' to='bob_config_cannot_be_changed_by_member_1313@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:config_cannot_be_changed_by_member/1 in muc_config 2022-03-03 10:38:22.252 ***
=WARNING REPORT==== 3-Mar-2022::10:38:22.252429 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:22.263 ***
REST request:
Code: 200
Req: {<0.15560.1>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d2f512ffaad54ffd">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY29uZmlnX2Nhbm5vdF9iZV9jaGFuZ2VkX2J5X21lbWJlcl8xMzEzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1646-303902-262908\"}">>,151,1683}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_config_cannot_be_changed_by_member_1313@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:config_cannot_be_changed_by_member/1 in muc_config 2022-03-03 10:38:22.264 ***
=WARNING REPORT==== 3-Mar-2022::10:38:22.264833 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:22.274 ***
REST request:
Code: 204
Req: {<0.15565.1>,<<"/api/rooms/1646-303902-262908/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"918e612ce107baa7">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfY29uZmlnX2Nhbm5vdF9iZV9jaGFuZ2VkX2J5X21lbWJlcl8xMzEzQGxvY2FsaG9zdDptYXR5Z3J5c2E=">>}],
      <<"{\"user\":\"bob_config_cannot_be_changed_by_member_1313@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>}],
         <<>>,80,2400}
Params: #{body =>
              <<"{\"user\":\"bob_config_cannot_be_changed_by_member_1313@localhost\"}">>,
          creds =>
              {<<"alice_config_cannot_be_changed_by_member_1313@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-303902-262908/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.274 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
<message from='1646-303902-262908@muclight.localhost' to='bob_config_cannot_be_changed_by_member_1313@localhost' id='98cf84ba-1e66-4611-99d0-681b8d0bcef7' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-303902-273519</version>
		<user affiliation='member'>bob_config_cannot_be_changed_by_member_1313@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-03 10:38:22.274 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
<message from='1646-303902-262908@muclight.localhost' to='alice_config_cannot_be_changed_by_member_1313@localhost' id='98cf84ba-1e66-4611-99d0-681b8d0bcef7' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-303902-262873</prev-version>
		<version>1646-303902-273519</version>
		<user affiliation='member'>bob_config_cannot_be_changed_by_member_1313@localhost</user>
	</x>
	<body/>
</message>



*** System report during rest_client_SUITE:config_cannot_be_changed_by_member/1 in muc_config 2022-03-03 10:38:22.276 ***
=WARNING REPORT==== 3-Mar-2022::10:38:22.276128 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:22.287 ***
REST request fails:
Code: 403
Req: {<0.15570.1>,
      <<"/api/rooms/1646-303902-262908@muclight.localhost/config">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a5ea0add79615e1c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NvbmZpZ19jYW5ub3RfYmVfY2hhbmdlZF9ieV9tZW1iZXJfMTMxM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"subject\":\"other_subject\",\"name\":\"other_name\"}">>}
Result: {{<<"403">>,<<"Forbidden">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,130,1928}
Params: #{body =>
              <<"{\"subject\":\"other_subject\",\"name\":\"other_name\"}">>,
          creds =>
              {<<"bob_config_cannot_be_changed_by_member_1313@localhost">>,
               <<"makrolika">>},
          method => <<"PUT">>,
          path =>
              <<"/api/rooms/1646-303902-262908@muclight.localhost/config">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:config_cannot_be_changed_by_member/1 in muc_config 2022-03-03 10:38:22.288 ***
=WARNING REPORT==== 3-Mar-2022::10:38:22.288290 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-03-03 10:38:22.295 ***
REST request:
Code: 200
Req: {<0.15575.1>,<<"/api/rooms/1646-303902-262908">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5ecad15de0f1d62e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2NvbmZpZ19jYW5ub3RfYmVfY2hhbmdlZF9ieV9tZW1iZXJfMTMxM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 03 Mar 2022 10:38:21 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"234">>}],
         <<"{\"subject\":\"This room subject\",\"participants\":[{\"user\":\"alice_config_cannot_be_changed_by_member_1313@localhost\",\"role\":\"owner\"},{\"user\":\"bob_config_cannot_be_changed_by_member_1313@localhost\",\"role\":\"member\"}],\"name\":\"new_room_name\"}">>,
         359,1281}
Params: #{body => <<>>,
          creds =>
              {<<"bob_config_cannot_be_changed_by_member_1313@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/rooms/1646-303902-262908">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-03 10:38:22.295 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:22.296 ***
bOb_config_cannot_be_changed_by_member_1313@localhost/res1 in
</stream:stream>

*** User 2022-03-03 10:38:22.296 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 out
</stream:stream>

*** User 2022-03-03 10:38:22.296 ***
alicE_config_cannot_be_changed_by_member_1313@localhost/res1 in
</stream:stream>
*** CT 2022-03-03 10:38:22.298 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2342.html
*** CT 2022-03-03 10:38:22.298 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5024.html



=== Ended at 2022-03-03 10:38:22
=== successfully completed test case
=== === Returned value: ok


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