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

=== Config value:

    [{watchdog,<0.74402.0>},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.07/muc_http_api_suite.send_message_to_room.156291.html"},
     {tc_group_properties,[{name,positive},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@f2e0a288de76.2024-03-21_07.46.09/big_tests.tests.muc_http_api_SUITE.logs/run.2024-03-21_07.59.07/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@f2e0a288de76.2024-03-21_07.46.09"

=== Started at 2024-03-21 07:59:07


*** CT 2024-03-21 07:59:07.959 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5445.html

*** User 2024-03-21 07:59:07.973 ***🔗
alicE_send_message_to_room_2809@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.973 ***🔗
alicE_send_message_to_room_2809@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ef8857a1002c93c7' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:59:07.973 ***🔗
alicE_send_message_to_room_2809@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.973 ***🔗
alicE_send_message_to_room_2809@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzI4MDkAbWF0eWdyeXNh</auth>



*** User 2024-03-21 07:59:07.974 ***🔗
alicE_send_message_to_room_2809@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:59:07.974 ***🔗
alicE_send_message_to_room_2809@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.974 ***🔗
alicE_send_message_to_room_2809@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='691c7d17448fc0ab' from='localhost' version='1.0' xml:lang='en' to='alice_send_message_to_room_2809@localhost'>

*** User 2024-03-21 07:59:07.974 ***🔗
alicE_send_message_to_room_2809@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.975 ***🔗
alicE_send_message_to_room_2809@localhost/res1 out
<iq type='set' id='addbd459fadfa932f131a91b3309f85b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.975 ***🔗
alicE_send_message_to_room_2809@localhost/res1 in
<iq id='addbd459fadfa932f131a91b3309f85b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_send_message_to_room_2809@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.975 ***🔗
alice_send_message_to_room_2809@localhost/res1 out
<iq type='set' id='84d594e35db669841bc246cf98c0c938'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.975 ***🔗
alice_send_message_to_room_2809@localhost/res1 in
<iq from='localhost' to='alice_send_message_to_room_2809@localhost/res1' id='84d594e35db669841bc246cf98c0c938' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.976 ***🔗
alice_send_message_to_room_2809@localhost/res1 out
<presence/>



*** User 2024-03-21 07:59:07.977 ***🔗
alice_send_message_to_room_2809@localhost/res1 in
<presence from='alice_send_message_to_room_2809@localhost/res1' to='alice_send_message_to_room_2809@localhost/res1'/>



*** User 2024-03-21 07:59:07.977 ***🔗
bOb_send_message_to_room_2809@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.978 ***🔗
bOb_send_message_to_room_2809@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='35e679303e8d720a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:59:07.978 ***🔗
bOb_send_message_to_room_2809@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.978 ***🔗
bOb_send_message_to_room_2809@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8yODA5AG1ha3JvbGlrYQ==</auth>



*** User 2024-03-21 07:59:07.979 ***🔗
bOb_send_message_to_room_2809@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:59:07.979 ***🔗
bOb_send_message_to_room_2809@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:59:07.980 ***🔗
bOb_send_message_to_room_2809@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='89a9e4d8fb4fcf37' from='localhost' version='1.0' xml:lang='en' to='bob_send_message_to_room_2809@localhost'>

*** User 2024-03-21 07:59:07.980 ***🔗
bOb_send_message_to_room_2809@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:59:07.980 ***🔗
bOb_send_message_to_room_2809@localhost/res1 out
<iq type='set' id='5a334e1bb0cafe206bf325778f29a22b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.980 ***🔗
bOb_send_message_to_room_2809@localhost/res1 in
<iq id='5a334e1bb0cafe206bf325778f29a22b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_send_message_to_room_2809@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:59:07.980 ***🔗
bob_send_message_to_room_2809@localhost/res1 out
<iq type='set' id='6f7f6e6613b20fc71850662e5c476ed7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.981 ***🔗
bob_send_message_to_room_2809@localhost/res1 in
<iq from='localhost' to='bob_send_message_to_room_2809@localhost/res1' id='6f7f6e6613b20fc71850662e5c476ed7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:59:07.981 ***🔗
bob_send_message_to_room_2809@localhost/res1 out
<presence/>



*** User 2024-03-21 07:59:07.983 ***🔗
bob_send_message_to_room_2809@localhost/res1 in
<presence from='bob_send_message_to_room_2809@localhost/res1' to='bob_send_message_to_room_2809@localhost/res1'/>



*** User 2024-03-21 07:59:07.984 ***🔗
bob_send_message_to_room_2809@localhost/res1 out
<presence to='wonderland-47.959936@muc.localhost/bobcat'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2024-03-21 07:59:07.985 ***🔗
bob_send_message_to_room_2809@localhost/res1 in
<presence from='wonderland-47.959936@muc.localhost/bobcat' to='bob_send_message_to_room_2809@localhost/res1'>
	<x xmlns='http://jabber.org/protocol/muc'>
		<item affiliation='none' role='participant'/>
		<status code='110'/>
		<status code='201'/>
	</x>
</presence>



*** User 2024-03-21 07:59:07.985 ***🔗
bob_send_message_to_room_2809@localhost/res1 in
<message from='wonderland-47.959936@muc.localhost' to='bob_send_message_to_room_2809@localhost/res1' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2024-03-21 07:59:07.987 ***🔗
REST request:
Code: 204
Req: {<0.74469.0>,<<"/api/mucs/localhost/wonderland-47.959936/messages">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2b966a3004300f7c">>}],
      <<"{\"body\":\"Greetings!\",\"from\":\"bob_send_message_to_room_2809@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:59:07 GMT">>}],
         <<>>,80,521}
Params: #{path => <<"/api/mucs/localhost/wonderland-47.959936/messages">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => admin,
          body =>
              <<"{\"body\":\"Greetings!\",\"from\":\"bob_send_message_to_room_2809@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 07:59:07.987 ***🔗
bob_send_message_to_room_2809@localhost/res1 in
<message from='wonderland-47.959936@muc.localhost' to='bob_send_message_to_room_2809@localhost' 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 2024-03-21 07:59:07.987 ***🔗
bob_send_message_to_room_2809@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:59:07.988 ***🔗
bob_send_message_to_room_2809@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:59:07.988 ***🔗
alice_send_message_to_room_2809@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:59:07.988 ***🔗
alice_send_message_to_room_2809@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:59:07.992 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5446.html



=== Ended at 2024-03-21 07:59:08
=== successfully completed test case
=== === Returned value: ok