=== Test case: muc_http_api_SUITE:create_room/1 (click for source code)

=== Config value:

    [{watchdog,<0.26339.1>},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/muc_http_api_suite.create_room.140930.html"},
     {tc_group_properties,[{name,positive},{repeat_until_all_ok,3},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_http_api_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/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@df370d24fb6d.2022-05-11_08.56.40"

=== Started at 2022-05-11 09:03:32


*** CT 2022-05-11 09:03:32.150 *** View log from node mongooseim@localhost when started mongooseim@localhost_2344.html
*** CT 2022-05-11 09:03:32.151 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_492.html

*** User 2022-05-11 09:03:32.161 ***
alicE_create_room_1896@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-05-11 09:03:32.162 ***
alicE_create_room_1896@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0049475a2d27e09a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:03:32.162 ***
alicE_create_room_1896@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-05-11 09:03:32.162 ***
alicE_create_room_1896@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2NyZWF0ZV9yb29tXzE4OTYAbWF0eWdyeXNh</auth>



*** User 2022-05-11 09:03:32.163 ***
alicE_create_room_1896@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:03:32.163 ***
alicE_create_room_1896@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-05-11 09:03:32.164 ***
alicE_create_room_1896@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e4a57a173dceca16' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:03:32.164 ***
alicE_create_room_1896@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-05-11 09:03:32.164 ***
alicE_create_room_1896@domain.example.com/res1 out
<iq type='set' id='93a981c32803d587c067952ec8d0fe2c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:03:32.164 ***
alicE_create_room_1896@domain.example.com/res1 in
<iq id='93a981c32803d587c067952ec8d0fe2c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_create_room_1896@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:03:32.164 ***
alicE_create_room_1896@domain.example.com/res1 out
<iq type='set' id='f02356fed56ebff9665702488da79233'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:03:32.164 ***
alicE_create_room_1896@domain.example.com/res1 in
<iq type='result' id='f02356fed56ebff9665702488da79233'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:03:32.165 ***
alicE_create_room_1896@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:03:32.166 ***
alicE_create_room_1896@domain.example.com/res1 in
<presence from='alicE_create_room_1896@domain.example.com/res1' to='alice_create_room_1896@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:03:32.169 ***
REST request:
Code: 201
Req: {<0.26402.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"45f4f5f0423e8a05">>}],
      <<"{\"owner\":\"alicE_create_room_1896@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-12.151548\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-12.151548">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:03:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-12.151548">>,231,2140}
Params: #{body =>
              <<"{\"owner\":\"alicE_create_room_1896@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-12.151548\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:03:32.169 ***
alicE_create_room_1896@domain.example.com/res1 in
<presence from='wonderland-12.151548@groupchats.domain.example.com/ali' to='alicE_create_room_1896@domain.example.com/res1'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='alicE_create_room_1896@domain.example.com' affiliation='owner' role='moderator'/>
		<status code='110'/>
		<status code='201'/>
	</x>
</presence>



*** User 2022-05-11 09:03:32.170 ***
alicE_create_room_1896@domain.example.com/res1 in
<message from='wonderland-12.151548@groupchats.domain.example.com' to='alicE_create_room_1896@domain.example.com' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-05-11 09:03:37.171 ***
alicE_create_room_1896@domain.example.com/res1 out
<iq type='get' id='bc9731c7f94f64df57370ff7ff22fee3' to='groupchats.domain.example.com'>
	<query xmlns='http://jabber.org/protocol/disco#items'/>
</iq>



*** User 2022-05-11 09:03:37.172 ***
alicE_create_room_1896@domain.example.com/res1 in
<iq from='groupchats.domain.example.com' to='alicE_create_room_1896@domain.example.com/res1' id='bc9731c7f94f64df57370ff7ff22fee3' type='result'>
	<query xmlns='http://jabber.org/protocol/disco#items'>
		<item jid='wonderland-12.151548@groupchats.domain.example.com' name='wonderland-12.151548 (1)'/>
		<item jid='wonderland-12.155794@groupchats.domain.example.com' name='wonderland-12.155794 (1)'/>
		<item jid='wonderland-12.157779@groupchats.domain.example.com' name='wonderland-12.157779 (1)'/>
	</query>
</iq>



*** User 2022-05-11 09:03:37.172 ***
alicE_create_room_1896@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:03:37.173 ***
alicE_create_room_1896@domain.example.com/res1 in
</stream:stream>
*** CT 2022-05-11 09:03:37.175 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_492.html
*** CT 2022-05-11 09:03:37.176 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2346.html



=== Ended at 2022-05-11 09:03:37
=== successfully completed test case
=== === Returned value: ok