=== Test case: muc_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.70043.0>},
{preset,"pgsql_cets"},
{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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.22.03/muc_http_api_suite.send_message_to_room.190594.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-17_15.22.03/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@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:22:03
*** User 2023-11-17 15:22:03.317 ***🔗
alicE_send_message_to_room_2543@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.317 ***🔗
alicE_send_message_to_room_2543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f03ca4186eb41a9' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:03.317 ***🔗
alicE_send_message_to_room_2543@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 2023-11-17 15:22:03.317 ***🔗
alicE_send_message_to_room_2543@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzI1NDMAbWF0eWdyeXNh</auth>
*** User 2023-11-17 15:22:03.318 ***🔗
alicE_send_message_to_room_2543@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:03.318 ***🔗
alicE_send_message_to_room_2543@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.319 ***🔗
alicE_send_message_to_room_2543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bcd7283e39c7b7e7' from='localhost' version='1.0' xml:lang='en' to='alice_send_message_to_room_2543@localhost'>
*** User 2023-11-17 15:22:03.319 ***🔗
alicE_send_message_to_room_2543@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 2023-11-17 15:22:03.319 ***🔗
alicE_send_message_to_room_2543@localhost/res1 out
<iq type='set' id='0aeab997e53ee7bf09276fa8adf48809'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:03.319 ***🔗
alicE_send_message_to_room_2543@localhost/res1 in
<iq id='0aeab997e53ee7bf09276fa8adf48809' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_send_message_to_room_2543@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:03.319 ***🔗
alice_send_message_to_room_2543@localhost/res1 out
<iq type='set' id='63b3bca76fa2c07f9e9768326d27f915'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.320 ***🔗
alice_send_message_to_room_2543@localhost/res1 in
<iq from='localhost' to='alice_send_message_to_room_2543@localhost/res1' id='63b3bca76fa2c07f9e9768326d27f915' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.320 ***🔗
alice_send_message_to_room_2543@localhost/res1 out
<presence/>
*** User 2023-11-17 15:22:03.321 ***🔗
alice_send_message_to_room_2543@localhost/res1 in
<presence from='alice_send_message_to_room_2543@localhost/res1' to='alice_send_message_to_room_2543@localhost/res1'/>
*** User 2023-11-17 15:22:03.321 ***🔗
bOb_send_message_to_room_2543@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.321 ***🔗
bOb_send_message_to_room_2543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33d30f92940e019b' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:03.322 ***🔗
bOb_send_message_to_room_2543@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 2023-11-17 15:22:03.322 ***🔗
bOb_send_message_to_room_2543@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8yNTQzAG1ha3JvbGlrYQ==</auth>
*** User 2023-11-17 15:22:03.323 ***🔗
bOb_send_message_to_room_2543@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:03.323 ***🔗
bOb_send_message_to_room_2543@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.323 ***🔗
bOb_send_message_to_room_2543@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ab8a4452414cfa6' from='localhost' version='1.0' xml:lang='en' to='bob_send_message_to_room_2543@localhost'>
*** User 2023-11-17 15:22:03.323 ***🔗
bOb_send_message_to_room_2543@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 2023-11-17 15:22:03.323 ***🔗
bOb_send_message_to_room_2543@localhost/res1 out
<iq type='set' id='fa7f727aaac1f6785b454ef54445e8e3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:03.323 ***🔗
bOb_send_message_to_room_2543@localhost/res1 in
<iq id='fa7f727aaac1f6785b454ef54445e8e3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_send_message_to_room_2543@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:03.323 ***🔗
bob_send_message_to_room_2543@localhost/res1 out
<iq type='set' id='fcb48d97914b656bb023e87bb0c50eac'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.324 ***🔗
bob_send_message_to_room_2543@localhost/res1 in
<iq from='localhost' to='bob_send_message_to_room_2543@localhost/res1' id='fcb48d97914b656bb023e87bb0c50eac' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.324 ***🔗
bob_send_message_to_room_2543@localhost/res1 out
<presence/>
*** User 2023-11-17 15:22:03.325 ***🔗
bob_send_message_to_room_2543@localhost/res1 in
<presence from='bob_send_message_to_room_2543@localhost/res1' to='bob_send_message_to_room_2543@localhost/res1'/>
*** User 2023-11-17 15:22:03.325 ***🔗
bob_send_message_to_room_2543@localhost/res1 out
<presence to='wonderland-23.309408@muc.localhost/bobcat'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2023-11-17 15:22:03.326 ***🔗
bob_send_message_to_room_2543@localhost/res1 in
<presence from='wonderland-23.309408@muc.localhost/bobcat' to='bob_send_message_to_room_2543@localhost/res1'>
<x xmlns='http://jabber.org/protocol/muc'>
<item affiliation='none' role='participant'/>
<status code='110'/>
<status code='201'/>
</x>
</presence>
*** User 2023-11-17 15:22:03.326 ***🔗
bob_send_message_to_room_2543@localhost/res1 in
<message from='wonderland-23.309408@muc.localhost' to='bob_send_message_to_room_2543@localhost/res1' type='groupchat'>
<subject/>
<body/>
</message>
*** User 2023-11-17 15:22:03.329 ***🔗
REST request:
Code: 204
Req: {<0.70106.0>,<<"/api/mucs/localhost/wonderland-23.309408/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8cba8476ad87f4a7">>}],
<<"{\"body\":\"Greetings!\",\"from\":\"bob_send_message_to_room_2543@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:22:03 GMT">>}],
<<>>,80,839}
Params: #{path => <<"/api/mucs/localhost/wonderland-23.309408/messages">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"body\":\"Greetings!\",\"from\":\"bob_send_message_to_room_2543@localhost\"}">>,
role => admin,return_headers => true}
*** User 2023-11-17 15:22:03.329 ***🔗
bob_send_message_to_room_2543@localhost/res1 in
<message from='wonderland-23.309408@muc.localhost' to='bob_send_message_to_room_2543@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 2023-11-17 15:22:03.329 ***🔗
bob_send_message_to_room_2543@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:22:03.329 ***🔗
bob_send_message_to_room_2543@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:22:03.329 ***🔗
alice_send_message_to_room_2543@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:22:03.329 ***🔗
alice_send_message_to_room_2543@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:22:03
=== successfully completed test case
=== === Returned value: ok