=== Test case: muc_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.26534.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@a4fd8d8e9aae.2022-05-18_09.59.33/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-18_10.07.05/muc_http_api_suite.send_message_to_room.139010.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@a4fd8d8e9aae.2022-05-18_09.59.33/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-18_10.07.05/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@a4fd8d8e9aae.2022-05-18_09.59.33"
=== Started at 2022-05-18 10:07:05
*** User 2022-05-18 10:07:05.538 ***
alicE_send_message_to_room_1786@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-05-18 10:07:05.539 ***
alicE_send_message_to_room_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d04d2bb0d8e6e68b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:05.539 ***
alicE_send_message_to_room_1786@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-05-18 10:07:05.539 ***
alicE_send_message_to_room_1786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzE3ODYAbWF0eWdyeXNh</auth>
*** User 2022-05-18 10:07:05.540 ***
alicE_send_message_to_room_1786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:07:05.540 ***
alicE_send_message_to_room_1786@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-05-18 10:07:05.540 ***
alicE_send_message_to_room_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cfbd791d12a3eb19' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:05.540 ***
alicE_send_message_to_room_1786@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-05-18 10:07:05.541 ***
alicE_send_message_to_room_1786@domain.example.com/res1 out
<iq type='set' id='082f84be49d09289b941daf41e0ad1ce'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:07:05.547 ***
alicE_send_message_to_room_1786@domain.example.com/res1 in
<iq id='082f84be49d09289b941daf41e0ad1ce' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_send_message_to_room_1786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:07:05.547 ***
alice_send_message_to_room_1786@domain.example.com/res1 out
<iq type='set' id='67a6f07ba28fe57f77d00c90e883da2c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:05.550 ***
alice_send_message_to_room_1786@domain.example.com/res1 in
<iq type='result' id='67a6f07ba28fe57f77d00c90e883da2c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:05.550 ***
alice_send_message_to_room_1786@domain.example.com/res1 out
<presence/>
*** User 2022-05-18 10:07:05.555 ***
alice_send_message_to_room_1786@domain.example.com/res1 in
<presence from='alice_send_message_to_room_1786@domain.example.com/res1' to='alice_send_message_to_room_1786@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-18 10:07:05.556 ***
bOb_send_message_to_room_1786@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-05-18 10:07:05.557 ***
bOb_send_message_to_room_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74f421118457b0ff' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:05.557 ***
bOb_send_message_to_room_1786@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-05-18 10:07:05.557 ***
bOb_send_message_to_room_1786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8xNzg2AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-18 10:07:05.559 ***
bOb_send_message_to_room_1786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:07:05.559 ***
bOb_send_message_to_room_1786@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-05-18 10:07:05.559 ***
bOb_send_message_to_room_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23378b651effd038' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:05.559 ***
bOb_send_message_to_room_1786@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-05-18 10:07:05.559 ***
bOb_send_message_to_room_1786@domain.example.com/res1 out
<iq type='set' id='3e805e5c55099979952864f323b64f16'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:07:05.560 ***
bOb_send_message_to_room_1786@domain.example.com/res1 in
<iq id='3e805e5c55099979952864f323b64f16' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_send_message_to_room_1786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:07:05.560 ***
bob_send_message_to_room_1786@domain.example.com/res1 out
<iq type='set' id='7c2bedbf93252a13e7c42f4741e3cfee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:05.560 ***
bob_send_message_to_room_1786@domain.example.com/res1 in
<iq type='result' id='7c2bedbf93252a13e7c42f4741e3cfee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:05.560 ***
bob_send_message_to_room_1786@domain.example.com/res1 out
<presence/>
*** User 2022-05-18 10:07:05.568 ***
bob_send_message_to_room_1786@domain.example.com/res1 in
<presence from='bob_send_message_to_room_1786@domain.example.com/res1' to='bob_send_message_to_room_1786@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-18 10:07:05.575 ***
bob_send_message_to_room_1786@domain.example.com/res1 out
<presence to='wonderland-25.529957@groupchats.domain.example.com/bobcat'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
*** User 2022-05-18 10:07:05.577 ***
bob_send_message_to_room_1786@domain.example.com/res1 in
<presence from='wonderland-25.529957@groupchats.domain.example.com/bobcat' to='bob_send_message_to_room_1786@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-05-18 10:07:05.578 ***
bob_send_message_to_room_1786@domain.example.com/res1 in
<message from='wonderland-25.529957@groupchats.domain.example.com' to='bob_send_message_to_room_1786@domain.example.com/res1' type='groupchat'>
<subject/>
<body/>
</message>
*** User 2022-05-18 10:07:05.592 ***
REST request:
Code: 204
Req: {<0.26609.1>,
<<"/api/mucs/domain.example.com/wonderland-25.529957/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c3eee68a49daa0ca">>}],
<<"{\"from\":\"bob_send_message_to_room_1786@domain.example.com\",\"body\":\"Greetings!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:07:05 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,2431}
Params: #{body =>
<<"{\"from\":\"bob_send_message_to_room_1786@domain.example.com\",\"body\":\"Greetings!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-25.529957/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:07:05.592 ***
bob_send_message_to_room_1786@domain.example.com/res1 in
<message from='wonderland-25.529957@groupchats.domain.example.com' to='bob_send_message_to_room_1786@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-05-18 10:07:05.593 ***
bob_send_message_to_room_1786@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-18 10:07:05.595 ***
bob_send_message_to_room_1786@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-18 10:07:05.595 ***
alice_send_message_to_room_1786@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-18 10:07:05.596 ***
alice_send_message_to_room_1786@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-18 10:07:05
=== successfully completed test case
=== === Returned value: ok