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

=== Config value:

    [{watchdog,<0.19398.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.muc_http_api_SUITE.logs/run.2022-02-02_15.14.00/muc_http_api_suite.create_room.127874.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.muc_http_api_SUITE.logs/run.2022-02-02_15.14.00/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@7a520fcf4274.2022-02-02_15.07.36"

=== Started at 2022-02-02 15:14:00


*** CT 2022-02-02 15:14:00.582 *** View log from node mongooseim@localhost when started mongooseim@localhost_2243.html
*** CT 2022-02-02 15:14:00.582 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_591.html

*** User 2022-02-02 15:14:00.591 ***
alicE_create_room_1516@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-02-02 15:14:00.591 ***
alicE_create_room_1516@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f90481145542af19' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:14:00.591 ***
alicE_create_room_1516@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-02-02 15:14:00.591 ***
alicE_create_room_1516@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2NyZWF0ZV9yb29tXzE1MTYAbWF0eWdyeXNh</auth>



*** User 2022-02-02 15:14:00.592 ***
alicE_create_room_1516@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:14:00.592 ***
alicE_create_room_1516@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-02-02 15:14:00.592 ***
alicE_create_room_1516@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5725bd3bf843f280' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:14:00.593 ***
alicE_create_room_1516@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-02-02 15:14:00.593 ***
alicE_create_room_1516@domain.example.com/res1 out
<iq type='set' id='8a3d4de64c6747c5e5a2176646fff778'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:14:00.593 ***
alicE_create_room_1516@domain.example.com/res1 in
<iq id='8a3d4de64c6747c5e5a2176646fff778' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_create_room_1516@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:14:00.593 ***
alicE_create_room_1516@domain.example.com/res1 out
<iq type='set' id='2e42068bec97a2c3ee53f573395dd8e3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:00.593 ***
alicE_create_room_1516@domain.example.com/res1 in
<iq type='result' id='2e42068bec97a2c3ee53f573395dd8e3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:14:00.594 ***
alicE_create_room_1516@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:14:00.594 ***
alicE_create_room_1516@domain.example.com/res1 in
<presence from='alicE_create_room_1516@domain.example.com/res1' to='alice_create_room_1516@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:14:00.602 ***
REST request:
Code: 201
Req: {<0.19462.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a8781d7c3b7a2900">>}],
      <<"{\"owner\":\"alicE_create_room_1516@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-40.582878\"}">>}
Result: {{<<"201">>,<<"Created">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"location">>,
           <<"http://localhost:8088/api/mucs/domain.example.com/wonderland-40.582878">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:14:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"20">>}],
         <<"wonderland-40.582878">>,231,6523}
Params: #{body =>
              <<"{\"owner\":\"alicE_create_room_1516@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-40.582878\"}">>,
          method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:14:00.602 ***
alicE_create_room_1516@domain.example.com/res1 in
<presence from='wonderland-40.582878@groupchats.domain.example.com/ali' to='alicE_create_room_1516@domain.example.com/res1'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='alicE_create_room_1516@domain.example.com' affiliation='owner' role='moderator'/>
		<status code='110'/>
		<status code='201'/>
	</x>
</presence>



*** User 2022-02-02 15:14:00.602 ***
alicE_create_room_1516@domain.example.com/res1 in
<message from='wonderland-40.582878@groupchats.domain.example.com' to='alicE_create_room_1516@domain.example.com' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-02-02 15:14:05.603 ***
alicE_create_room_1516@domain.example.com/res1 out
<iq type='get' id='599fd61439c2348279a10d70faa04dab' to='groupchats.domain.example.com'>
	<query xmlns='http://jabber.org/protocol/disco#items'/>
</iq>



*** User 2022-02-02 15:14:05.604 ***
alicE_create_room_1516@domain.example.com/res1 in
<iq from='groupchats.domain.example.com' to='alicE_create_room_1516@domain.example.com/res1' id='599fd61439c2348279a10d70faa04dab' type='result'>
	<query xmlns='http://jabber.org/protocol/disco#items'>
		<item jid='wonderland-40.582878@groupchats.domain.example.com' name='wonderland-40.582878 (1)'/>
		<item jid='wonderland-40.584652@groupchats.domain.example.com' name='wonderland-40.584652 (1)'/>
		<item jid='wonderland-40.586352@groupchats.domain.example.com' name='wonderland-40.586352 (1)'/>
	</query>
</iq>



*** User 2022-02-02 15:14:05.604 ***
alicE_create_room_1516@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:14:05.605 ***
alicE_create_room_1516@domain.example.com/res1 in
</stream:stream>
*** CT 2022-02-02 15:14:05.607 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_591.html
*** CT 2022-02-02 15:14:05.607 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2244.html



=== Ended at 2022-02-02 15:14:05
=== successfully completed test case
=== === Returned value: ok