=== Test case: muc_light_http_api_SUITE:delete_room_without_having_a_membership/1 (click for source code)

=== Config value:

    [{watchdog,<0.23067.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
     {preset,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/muc_light_http_api_suite.delete_room_without_having_a_membership.32773.html"},
     {tc_group_properties,[{name,negative},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_light_http_api_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:24:21


*** CT 2022-03-04 11:24:21.981 *** View log from node mongooseim@localhost when started mongooseim@localhost_2344.html
*** CT 2022-03-04 11:24:21.981 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_606.html

*** User 2022-03-04 11:24:21.999 ***
alicE_delete_room_without_having_a_membership_1717@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-03-04 11:24:21.999 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9c98df8f730cb207' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:22.000 ***
alicE_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.000 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RlbGV0ZV9yb29tX3dpdGhvdXRfaGF2aW5nX2FfbWVtYmVyc2hpcF8xNzE3AG1hdHlncnlzYQ==</auth>



*** User 2022-03-04 11:24:22.001 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:22.001 ***
alicE_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.001 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ea00ddd14faa5947' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:22.001 ***
alicE_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.001 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='f40369a87953eced221f800ccc08fa2b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:22.001 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq id='f40369a87953eced221f800ccc08fa2b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:22.002 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='e67c3ae223adf44a4ca56eb8dfe3ee8d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:22.002 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq type='result' id='e67c3ae223adf44a4ca56eb8dfe3ee8d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:22.002 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:22.005 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<presence from='alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1' to='alice_delete_room_without_having_a_membership_1717@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:22.005 ***
bOb_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.006 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='897f26af25636175' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:22.006 ***
bOb_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.006 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kZWxldGVfcm9vbV93aXRob3V0X2hhdmluZ19hX21lbWJlcnNoaXBfMTcxNwBtYWtyb2xpa2E=</auth>



*** User 2022-03-04 11:24:22.009 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:22.009 ***
bOb_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.009 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='84aafc6f87cd2eff' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:22.009 ***
bOb_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.009 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='677ac421403d97a1fe88244b5668faf4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:22.010 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq id='677ac421403d97a1fe88244b5668faf4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:22.010 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='d37c5af3d9c8ea978e7ce6fb54b0926a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:22.010 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq type='result' id='d37c5af3d9c8ea978e7ce6fb54b0926a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:22.010 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:22.011 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<presence from='bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1' to='bob_delete_room_without_having_a_membership_1717@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:22.012 ***
kate_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.012 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f7d36839aede172' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:22.012 ***
kate_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.012 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfZGVsZXRlX3Jvb21fd2l0aG91dF9oYXZpbmdfYV9tZW1iZXJzaGlwXzE3MTcAbWFrcm93ZTtw</auth>



*** User 2022-03-04 11:24:22.013 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:24:22.013 ***
kate_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3785c4f44fa427e9' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@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-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='f07c0e42f8d633f1f9028d2f9f0282d5'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq id='f07c0e42f8d633f1f9028d2f9f0282d5' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_delete_room_without_having_a_membership_1717@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='7d450f03c693deba933718e2f998cc89'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq type='result' id='7d450f03c693deba933718e2f998cc89'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:24:22.014 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:24:22.016 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<presence from='kate_delete_room_without_having_a_membership_1717@domain.example.com/res1' to='kate_delete_room_without_having_a_membership_1717@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:24:22.016 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
<iq type='set' id='a265115646e3835abdf62db60bd6e7f7' to='delete_room_without_having_a_membership@muclight2.domain.example.com'>
	<query xmlns='urn:xmpp:muclight:0#create'>
		<configuration>
			<roomname>wonderland</roomname>
		</configuration>
		<occupants>
			<user affiliation='member'>bob_delete_room_without_having_a_membership_1717@domain.example.com</user>
		</occupants>
	</query>
</iq>



*** User 2022-03-04 11:24:22.020 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<message from='delete_room_without_having_a_membership@muclight2.domain.example.com' to='alice_delete_room_without_having_a_membership_1717@domain.example.com' id='a265115646e3835abdf62db60bd6e7f7' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393062-17035</version>
		<user affiliation='owner'>alice_delete_room_without_having_a_membership_1717@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:22.020 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<iq from='delete_room_without_having_a_membership@muclight2.domain.example.com' to='alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1' id='a265115646e3835abdf62db60bd6e7f7' type='result'/>



*** User 2022-03-04 11:24:22.020 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
<message from='delete_room_without_having_a_membership@muclight2.domain.example.com' to='bob_delete_room_without_having_a_membership_1717@domain.example.com' id='a265115646e3835abdf62db60bd6e7f7' type='groupchat'>
	<x xmlns='urn:xmpp:muclight:0#affiliations'>
		<version>1646-393062-17035</version>
		<user affiliation='member'>bob_delete_room_without_having_a_membership_1717@domain.example.com</user>
	</x>
	<body/>
</message>



*** User 2022-03-04 11:24:22.027 ***
REST request fails:
Code: 403
Req: {<0.23152.1>,
      <<"/api/muc-lights/muclight2.domain.example.com/delete_room_without_having_a_membership/kate_delete_room_without_having_a_membership_1717@domain.example.com/management">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3832bac616e5500b">>}],
      <<>>}
Result: {{<<"403">>,<<"Forbidden">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:24:21 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"36">>}],
         <<"Given user does not occupy this room">>,167,5731}
Params: #{body => <<>>,method => <<"DELETE">>,
          path =>
              <<"/api/muc-lights/muclight2.domain.example.com/delete_room_without_having_a_membership/kate_delete_room_without_having_a_membership_1717@domain.example.com/management">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:24:22.027 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:22.027 ***
kate_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:24:22.027 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:22.028 ***
bOb_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:24:22.028 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:24:22.028 ***
alicE_delete_room_without_having_a_membership_1717@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:24:22.039 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_606.html
*** CT 2022-03-04 11:24:22.039 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2344.html



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