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

=== Config value:

    [{watchdog,<0.21588.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@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-07_16.04.13/muc_http_api_suite.send_message_to_room.155522.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@333794cb5a72.2022-03-07_15.57.24/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-07_16.04.13/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@333794cb5a72.2022-03-07_15.57.24"

=== Started at 2022-03-07 16:04:13


*** CT 2022-03-07 16:04:13.216 *** View log from node mongooseim@localhost when started mongooseim@localhost_1379.html
*** CT 2022-03-07 16:04:13.216 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_502.html

*** User 2022-03-07 16:04:13.227 ***
alicE_send_message_to_room_1656@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-07 16:04:13.227 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3880c233a669d5bc' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:04:13.227 ***
alicE_send_message_to_room_1656@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-07 16:04:13.227 ***
alicE_send_message_to_room_1656@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzE2NTYAbWF0eWdyeXNh</auth>



*** User 2022-03-07 16:04:13.228 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-07 16:04:13.228 ***
alicE_send_message_to_room_1656@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-07 16:04:13.229 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81c989ae4a1f7bcc' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:04:13.229 ***
alicE_send_message_to_room_1656@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-07 16:04:13.229 ***
alicE_send_message_to_room_1656@domain.example.com/res1 out
<iq type='set' id='ecf85e1148f058a1fbb2f2af54a9bdee'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:04:13.229 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
<iq id='ecf85e1148f058a1fbb2f2af54a9bdee' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_send_message_to_room_1656@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:04:13.229 ***
alicE_send_message_to_room_1656@domain.example.com/res1 out
<iq type='set' id='6a8fab1ce689655350edaf2671307c23'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:04:13.229 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
<iq type='result' id='6a8fab1ce689655350edaf2671307c23'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:04:13.230 ***
alicE_send_message_to_room_1656@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:04:13.231 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
<presence from='alicE_send_message_to_room_1656@domain.example.com/res1' to='alice_send_message_to_room_1656@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:04:13.231 ***
bOb_send_message_to_room_1656@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-07 16:04:13.232 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9ccb0cff194b5a5d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-07 16:04:13.232 ***
bOb_send_message_to_room_1656@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-07 16:04:13.232 ***
bOb_send_message_to_room_1656@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8xNjU2AG1ha3JvbGlrYQ==</auth>



*** User 2022-03-07 16:04:13.233 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



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

*** User 2022-03-07 16:04:13.233 ***
bOb_send_message_to_room_1656@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-07 16:04:13.233 ***
bOb_send_message_to_room_1656@domain.example.com/res1 out
<iq type='set' id='9d7fe0ba995121ac5e408c239f87dd0d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-07 16:04:13.234 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<iq id='9d7fe0ba995121ac5e408c239f87dd0d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_send_message_to_room_1656@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-07 16:04:13.234 ***
bOb_send_message_to_room_1656@domain.example.com/res1 out
<iq type='set' id='9c07d2fde9b5476317112af70bf27518'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:04:13.234 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<iq type='result' id='9c07d2fde9b5476317112af70bf27518'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-07 16:04:13.234 ***
bOb_send_message_to_room_1656@domain.example.com/res1 out
<presence/>



*** User 2022-03-07 16:04:13.235 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<presence from='bOb_send_message_to_room_1656@domain.example.com/res1' to='bob_send_message_to_room_1656@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-07 16:04:13.236 ***
bOb_send_message_to_room_1656@domain.example.com/res1 out
<presence to='wonderland-53.217108@groupchats.domain.example.com/bobcat'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2022-03-07 16:04:13.244 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<presence from='wonderland-53.217108@groupchats.domain.example.com/bobcat' to='bOb_send_message_to_room_1656@domain.example.com/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='none' role='participant'/>
		<status code='110'/>
		<status code='201'/>
	</x>
</presence>



*** User 2022-03-07 16:04:13.244 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<message from='wonderland-53.217108@groupchats.domain.example.com' to='bOb_send_message_to_room_1656@domain.example.com/res1' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-03-07 16:04:13.249 ***
REST request:
Code: 204
Req: {<0.21661.1>,
      <<"/api/mucs/domain.example.com/wonderland-53.217108/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"046e88475843a51a">>}],
      <<"{\"from\":\"bOb_send_message_to_room_1656@domain.example.com\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 07 Mar 2022 16:04:12 GMT">>},
          {<<"content-type">>,<<"application/json">>}],
         <<>>,112,3266}
Params: #{body =>
              <<"{\"from\":\"bOb_send_message_to_room_1656@domain.example.com\",\"body\":\"Greetings!\"}">>,
          method => <<"POST">>,
          path =>
              <<"/api/mucs/domain.example.com/wonderland-53.217108/messages">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-07 16:04:13.249 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
<message from='wonderland-53.217108@groupchats.domain.example.com' to='bOb_send_message_to_room_1656@domain.example.com' type='error'>
	<body>Greetings!</body>
	<error code='406' type='modify'>
		<not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
		<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Only occupants are allowed to send messages to the conference</text>
	</error>
</message>



*** User 2022-03-07 16:04:13.249 ***
bOb_send_message_to_room_1656@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:04:13.249 ***
bOb_send_message_to_room_1656@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-07 16:04:13.249 ***
alicE_send_message_to_room_1656@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-07 16:04:13.250 ***
alicE_send_message_to_room_1656@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-07 16:04:13.253 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_502.html
*** CT 2022-03-07 16:04:13.254 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1379.html



=== Ended at 2022-03-07 16:04:13
=== successfully completed test case
=== === Returned value: ok