=== Test case: muc_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.9176.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.48.34/muc_http_api_suite.send_message_to_room.60674.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.48.34/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@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:48:34
*** User 2022-05-25 10:48:34.705 ***
alicE_send_message_to_room_1191@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:48:34.705 ***
alicE_send_message_to_room_1191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3ae49dcc5cd740cc' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.705 ***
alicE_send_message_to_room_1191@localhost/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-25 10:48:34.705 ***
alicE_send_message_to_room_1191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzExOTEAbWF0eWdyeXNh</auth>
*** User 2022-05-25 10:48:34.707 ***
alicE_send_message_to_room_1191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:48:34.707 ***
alicE_send_message_to_room_1191@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:48:34.708 ***
alicE_send_message_to_room_1191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7a82f6955504e12e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.708 ***
alicE_send_message_to_room_1191@localhost/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-25 10:48:34.708 ***
alicE_send_message_to_room_1191@localhost/res1 out
<iq type='set' id='925af85fdeda1ea35782a2ab950f4efa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:48:34.708 ***
alicE_send_message_to_room_1191@localhost/res1 in
<iq id='925af85fdeda1ea35782a2ab950f4efa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_send_message_to_room_1191@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:48:34.708 ***
alice_send_message_to_room_1191@localhost/res1 out
<iq type='set' id='97b997716d9de275c3df905a3222ac39'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.709 ***
alice_send_message_to_room_1191@localhost/res1 in
<iq type='result' id='97b997716d9de275c3df905a3222ac39'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.709 ***
alice_send_message_to_room_1191@localhost/res1 out
<presence/>
*** User 2022-05-25 10:48:34.775 ***
alice_send_message_to_room_1191@localhost/res1 in
<presence from='alice_send_message_to_room_1191@localhost/res1' to='alice_send_message_to_room_1191@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:48:34.776 ***
bOb_send_message_to_room_1191@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:48:34.776 ***
bOb_send_message_to_room_1191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b8be797eb9b58215' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.777 ***
bOb_send_message_to_room_1191@localhost/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-25 10:48:34.777 ***
bOb_send_message_to_room_1191@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8xMTkxAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 10:48:34.778 ***
bOb_send_message_to_room_1191@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:48:34.778 ***
bOb_send_message_to_room_1191@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:48:34.779 ***
bOb_send_message_to_room_1191@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='961d6a61854bd218' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.779 ***
bOb_send_message_to_room_1191@localhost/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-25 10:48:34.779 ***
bOb_send_message_to_room_1191@localhost/res1 out
<iq type='set' id='a8bde2bb52652977b85199e1d1e6fed8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bOb_send_message_to_room_1191@localhost/res1 in
<iq id='a8bde2bb52652977b85199e1d1e6fed8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_send_message_to_room_1191@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bob_send_message_to_room_1191@localhost/res1 out
<iq type='set' id='28b43e5d01fbb89c22a64254fe144554'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bob_send_message_to_room_1191@localhost/res1 in
<iq type='result' id='28b43e5d01fbb89c22a64254fe144554'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.780 ***
bob_send_message_to_room_1191@localhost/res1 out
<presence/>
*** User 2022-05-25 10:48:34.781 ***
bob_send_message_to_room_1191@localhost/res1 in
<presence from='bob_send_message_to_room_1191@localhost/res1' to='bob_send_message_to_room_1191@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:48:34.782 ***
bob_send_message_to_room_1191@localhost/res1 out
<presence to='wonderland-14.693421@muc.localhost/bobcat'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2022-05-25 10:48:34.783 ***
bob_send_message_to_room_1191@localhost/res1 in
<presence from='wonderland-14.693421@muc.localhost/bobcat' to='bob_send_message_to_room_1191@localhost/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-05-25 10:48:34.783 ***
bob_send_message_to_room_1191@localhost/res1 in
<message from='wonderland-14.693421@muc.localhost' to='bob_send_message_to_room_1191@localhost/res1' type='groupchat'>
<subject/>
<body/>
</message>
*** User 2022-05-25 10:48:34.784 ***
REST request:
Code: 204
Req: {<0.9251.1>,<<"/api/mucs/localhost/wonderland-14.693421/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"187ed6c536042ac8">>}],
<<"{\"from\":\"bob_send_message_to_room_1191@localhost\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:34 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,697}
Params: #{body =>
<<"{\"from\":\"bob_send_message_to_room_1191@localhost\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-14.693421/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:34.785 ***
bob_send_message_to_room_1191@localhost/res1 in
<message from='wonderland-14.693421@muc.localhost' to='bob_send_message_to_room_1191@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 2022-05-25 10:48:34.785 ***
bob_send_message_to_room_1191@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:48:34.785 ***
bob_send_message_to_room_1191@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:48:34.785 ***
alice_send_message_to_room_1191@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:48:34.785 ***
alice_send_message_to_room_1191@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:48:34
=== successfully completed test case
=== === Returned value: ok