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

=== Config value:

    [{watchdog,<0.9445.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/rest_client_suite.user_is_removed_from_a_room.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.37.00/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 => [{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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:37:01


*** CT 2022-01-27 15:37:01.281 *** View log from node mongooseim@localhost when started mongooseim@localhost_5807.html
*** CT 2022-01-27 15:37:01.282 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:37:01.288 ***
alicE_user_is_removed_from_a_room_2160@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-01-27 15:37:01.288 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f432a1bff320e9d2' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.288 ***
alicE_user_is_removed_from_a_room_2160@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>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 15:37:01.288 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfaXNfcmVtb3ZlZF9mcm9tX2Ffcm9vbV8yMTYwAG1hdHlncnlzYQ==</auth>



*** User 2022-01-27 15:37:01.289 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:01.289 ***
alicE_user_is_removed_from_a_room_2160@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-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2b05ac8456c35a58' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@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-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 out
<iq type='set' id='7346aba6bc4844ef7ee933d4cc680824'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<iq id='7346aba6bc4844ef7ee933d4cc680824' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_user_is_removed_from_a_room_2160@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 out
<iq type='set' id='0959e10fb81bb3f767547f1d300b0a03'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<iq type='result' id='0959e10fb81bb3f767547f1d300b0a03'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.290 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:01.293 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<presence from='alicE_user_is_removed_from_a_room_2160@localhost/res1' to='alice_user_is_removed_from_a_room_2160@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:37:01.293 ***
bOb_user_is_removed_from_a_room_2160@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-01-27 15:37:01.294 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c48e45b6ca6d3141' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.294 ***
bOb_user_is_removed_from_a_room_2160@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>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 15:37:01.294 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2lzX3JlbW92ZWRfZnJvbV9hX3Jvb21fMjE2MABtYWtyb2xpa2E=</auth>



*** User 2022-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@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-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c153e12013ac0605' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@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-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 out
<iq type='set' id='c6a1e17fe03df82a72f46f00247216d1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<iq id='c6a1e17fe03df82a72f46f00247216d1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_user_is_removed_from_a_room_2160@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 out
<iq type='set' id='efcc5680819e41015abb960685fb47d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.295 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<iq type='result' id='efcc5680819e41015abb960685fb47d3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:37:01.296 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 out
<presence/>



*** User 2022-01-27 15:37:01.297 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<presence from='bOb_user_is_removed_from_a_room_2160@localhost/res1' to='bob_user_is_removed_from_a_room_2160@localhost/res1' xml:lang='en'/>



*** System report during rest_client_SUITE:user_is_removed_from_a_room/1 in muc 2022-01-27 15:37:01.298 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.298688 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.306 ***
REST request:
Code: 200
Req: {<0.9541.2>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f93f1f4f0c7764e">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19yZW1vdmVkX2Zyb21fYV9yb29tXzIxNjBAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"27">>}],
         <<"{\"id\":\"1643-297821-306604\"}">>,151,1582}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_user_is_removed_from_a_room_2160@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** System report during rest_client_SUITE:user_is_removed_from_a_room/1 in muc 2022-01-27 15:37:01.309 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.309468 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.321 ***
REST request:
Code: 204
Req: {<0.9546.2>,<<"/api/rooms/1643-297821-306604/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9b8d46ea48cc580">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19yZW1vdmVkX2Zyb21fYV9yb29tXzIxNjBAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<"{\"user\":\"bob_user_is_removed_from_a_room_2160@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>}],
         <<>>,80,6097}
Params: #{body =>
              <<"{\"user\":\"bob_user_is_removed_from_a_room_2160@localhost\"}">>,
          creds =>
              {<<"alice_user_is_removed_from_a_room_2160@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1643-297821-306604/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:01.321 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<message from='1643-297821-306604@muclight.localhost' to='bob_user_is_removed_from_a_room_2160@localhost' id='f92ab784-22a0-49ed-9ffc-433f8f97629f' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1643-297821-317355</version>
		<user affiliation='member'>bob_user_is_removed_from_a_room_2160@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:37:01.321 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
<message from='1643-297821-306604@muclight.localhost' to='alice_user_is_removed_from_a_room_2160@localhost' id='f92ab784-22a0-49ed-9ffc-433f8f97629f' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1643-297821-306562</prev-version>
		<version>1643-297821-317355</version>
		<user affiliation='member'>bob_user_is_removed_from_a_room_2160@localhost</user>
	</x>
	<body/>
	<stanza-id by='1643-297821-306604@muclight.localhost' id='BLKI2RJ5CVO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** System report during rest_client_SUITE:user_is_removed_from_a_room/1 in muc 2022-01-27 15:37:01.322 ***
=WARNING REPORT==== 27-Jan-2022::15:37:01.322857 ===
Description: "Authenticity is not established by certificate path validation"
     Reason: "Option {verify, verify_peer} and cacertfile/cacerts is missing"



*** User 2022-01-27 15:37:01.334 ***
REST request:
Code: 204
Req: {<0.9551.2>,
      <<"/api/rooms/1643-297821-306604/users/bob_user_is_removed_from_a_room_2160@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4052415c74c9ed8d">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfdXNlcl9pc19yZW1vdmVkX2Zyb21fYV9yb29tXzIxNjBAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:37:01 GMT">>}],
         <<>>,80,5244}
Params: #{body => <<>>,
          creds =>
              {<<"alice_user_is_removed_from_a_room_2160@localhost">>,
               <<"matygrysa">>},
          method => <<"DELETE">>,
          path =>
              <<"/api/rooms/1643-297821-306604/users/bob_user_is_removed_from_a_room_2160@localhost">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:37:01.334 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
<message from='1643-297821-306604@muclight.localhost' to='bob_user_is_removed_from_a_room_2160@localhost' id='8faa8948-34be-453d-93d5-f3ff88a2d102' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<user affiliation='none'>bob_user_is_removed_from_a_room_2160@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-01-27 15:37:01.334 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:01.335 ***
bOb_user_is_removed_from_a_room_2160@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:37:01.335 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:37:01.335 ***
alicE_user_is_removed_from_a_room_2160@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:37:01.338 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:37:01.339 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5807.html



=== Ended at 2022-01-27 15:37:01
=== successfully completed test case
=== === Returned value: ok


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