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

=== Config value:

    [{watchdog,<0.11557.2>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.27.49/rest_client_suite.owner_can_leave_a_room_and_auto_select_owner.html"},
     {tc_group_properties,[{name,muc},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@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_client_SUITE.logs/run.2022-03-04_11.27.49/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@43f5552376e6.2022-03-04_11.16.18"

=== Started at 2022-03-04 11:27:50


*** CT 2022-03-04 11:27:50.028 *** View log from node mongooseim@localhost when started mongooseim@localhost_5898.html
*** CT 2022-03-04 11:27:50.029 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2335.html

*** User 2022-03-04 11:27:50.033 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@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-04 11:27:50.034 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='56bab5d52d8dd404' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:50.034 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@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-03-04 11:27:50.034 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX293bmVyX2Nhbl9sZWF2ZV9hX3Jvb21fYW5kX2F1dG9fc2VsZWN0X293bmVyXzIwMTIAbWF0eWdyeXNh</auth>



*** User 2022-03-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@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-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0835b40e1f313f26' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@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-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<iq type='set' id='18f80c441f6640804d5555e1509fa13e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<iq id='18f80c441f6640804d5555e1509fa13e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:27:50.035 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<iq type='set' id='82d51c01a445bdbeb093cb38a797a30f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:50.036 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<iq type='result' id='82d51c01a445bdbeb093cb38a797a30f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:50.036 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<presence/>



*** User 2022-03-04 11:27:50.037 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<presence from='alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1' to='alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:27:50.038 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@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-04 11:27:50.038 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d915e0868d9432d3' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:50.039 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@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-03-04 11:27:50.039 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9vd25lcl9jYW5fbGVhdmVfYV9yb29tX2FuZF9hdXRvX3NlbGVjdF9vd25lcl8yMDEyAG1ha3JvbGlrYQ==</auth>



*** User 2022-03-04 11:27:50.039 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:27:50.040 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@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-04 11:27:50.040 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27fc04f3f6309807' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:27:50.040 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@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-04 11:27:50.040 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<iq type='set' id='a1637ff5ba7650609adc1392496d9c7b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:27:50.040 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<iq id='a1637ff5ba7650609adc1392496d9c7b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:27:50.040 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<iq type='set' id='3eb2cff50f3ae17e21cb9c9b7de029f5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:50.041 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<iq type='result' id='3eb2cff50f3ae17e21cb9c9b7de029f5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:27:50.041 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
<presence/>



*** User 2022-03-04 11:27:50.042 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<presence from='bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1' to='bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1' xml:lang='en'/>



*** User 2022-03-04 11:27:50.051 ***
REST request:
Code: 200
Req: {<0.11742.2>,<<"/api/rooms">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"18e8746cbd021304">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfb3duZXJfY2FuX2xlYXZlX2Ffcm9vbV9hbmRfYXV0b19zZWxlY3Rfb3duZXJfMjAxMkBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
      <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"26">>}],
         <<"{\"id\":\"1646-393270-50886\"}">>,150,1414}
Params: #{body =>
              <<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
          creds =>
              {<<"alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,path => <<"/api/rooms">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:27:50.063 ***
REST request:
Code: 204
Req: {<0.11748.2>,<<"/api/rooms/1646-393270-50886/users">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"286ff481f2b4be6b">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfb3duZXJfY2FuX2xlYXZlX2Ffcm9vbV9hbmRfYXV0b19zZWxlY3Rfb3duZXJfMjAxMkBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
      <<"{\"user\":\"bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>}],
         <<>>,80,3848}
Params: #{body =>
              <<"{\"user\":\"bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost\"}">>,
          creds =>
              {<<"alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost">>,
               <<"matygrysa">>},
          method => <<"POST">>,
          path => <<"/api/rooms/1646-393270-50886/users">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:27:50.064 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<message from='1646-393270-50886@muclight.localhost' to='bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost' id='c34a5cfa-6167-43fd-b45d-211b92b5f134' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393270-61560</version>
		<user affiliation='member'>bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:27:50.064 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<message from='1646-393270-50886@muclight.localhost' to='alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost' id='c34a5cfa-6167-43fd-b45d-211b92b5f134' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-393270-50843</prev-version>
		<version>1646-393270-61560</version>
		<user affiliation='member'>bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost</user>
	</x>
	<body/>
	<stanza-id by='1646-393270-50886@muclight.localhost' id='BMB2PO2SFN81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-04 11:27:50.075 ***
REST request:
Code: 204
Req: {<0.11754.2>,
      <<"/api/rooms/1646-393270-50886/users/alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"768d88d78a6b4cee">>},
       {<<"authorization">>,
        <<"Basic YWxpY2Vfb3duZXJfY2FuX2xlYXZlX2Ffcm9vbV9hbmRfYXV0b19zZWxlY3Rfb3duZXJfMjAxMkBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:27:49 GMT">>}],
         <<>>,80,3852}
Params: #{body => <<>>,
          creds =>
              {<<"alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost">>,
               <<"matygrysa">>},
          method => <<"DELETE">>,
          path =>
              <<"/api/rooms/1646-393270-50886/users/alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:27:50.075 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
<message from='1646-393270-50886@muclight.localhost' to='bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost' id='b2e44457-ec21-42e1-b51d-8573c63ea777' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<prev-version>1646-393270-61560</prev-version>
		<version>1646-393270-73132</version>
		<user affiliation='owner'>bob_owner_can_leave_a_room_and_auto_select_owner_2012@localhost</user>
		<user affiliation='none'>alice_owner_can_leave_a_room_and_auto_select_owner_2012@localhost</user>
	</x>
	<body/>
	<stanza-id by='1646-393270-50886@muclight.localhost' id='BMB2PO2V9KG1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-04 11:27:50.075 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:27:50.076 ***
bOb_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
</stream:stream>

*** User 2022-03-04 11:27:50.076 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 out
</stream:stream>

*** User 2022-03-04 11:27:50.076 ***
alicE_owner_can_leave_a_room_and_auto_select_owner_2012@localhost/res1 in
</stream:stream>
*** CT 2022-03-04 11:27:50.078 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2335.html
*** CT 2022-03-04 11:27:50.079 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5898.html



=== Ended at 2022-03-04 11:27:50
=== successfully completed test case
=== === Returned value: ok


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