=== Test case: muc_light_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2704.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.33.34/muc_light_http_api_suite.send_message_to_room.52994.html"},
{tc_group_properties,[{name,positive},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/muc_light_http_api_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_15.33.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@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:33:34
*** User 2022-01-27 15:33:34.933 ***
alicE_send_message_to_room_1006@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-01-27 15:33:34.933 ***
alicE_send_message_to_room_1006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9a02d61929010e1d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.934 ***
alicE_send_message_to_room_1006@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-01-27 15:33:34.934 ***
alicE_send_message_to_room_1006@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzEwMDYAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:33:34.934 ***
alicE_send_message_to_room_1006@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:34.934 ***
alicE_send_message_to_room_1006@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-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e57d04871d76daab' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@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-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='fcbf8fc578b3d20d94934e9582fb3e73'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@localhost/res1 in
<iq id='fcbf8fc578b3d20d94934e9582fb3e73' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_send_message_to_room_1006@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='1f8924c38f5418e0975e56f5574d849a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@localhost/res1 in
<iq type='result' id='1f8924c38f5418e0975e56f5574d849a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.935 ***
alicE_send_message_to_room_1006@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:34.936 ***
alicE_send_message_to_room_1006@localhost/res1 in
<presence from='alicE_send_message_to_room_1006@localhost/res1' to='alice_send_message_to_room_1006@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:34.937 ***
bOb_send_message_to_room_1006@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-01-27 15:33:34.937 ***
bOb_send_message_to_room_1006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9301c708691f320f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.937 ***
bOb_send_message_to_room_1006@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-01-27 15:33:34.937 ***
bOb_send_message_to_room_1006@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8xMDA2AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:33:34.938 ***
bOb_send_message_to_room_1006@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:34.938 ***
bOb_send_message_to_room_1006@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-01-27 15:33:34.938 ***
bOb_send_message_to_room_1006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b672ffb8eeb4443d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.938 ***
bOb_send_message_to_room_1006@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-01-27 15:33:34.938 ***
bOb_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='f2c7ff1d97aee0492ad76f28b47e5821'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:34.938 ***
bOb_send_message_to_room_1006@localhost/res1 in
<iq id='f2c7ff1d97aee0492ad76f28b47e5821' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_send_message_to_room_1006@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:34.939 ***
bOb_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='812cb6f5b6def45363b74ac9c059a81a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.939 ***
bOb_send_message_to_room_1006@localhost/res1 in
<iq type='result' id='812cb6f5b6def45363b74ac9c059a81a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.939 ***
bOb_send_message_to_room_1006@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:34.940 ***
bOb_send_message_to_room_1006@localhost/res1 in
<presence from='bOb_send_message_to_room_1006@localhost/res1' to='bob_send_message_to_room_1006@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:34.940 ***
kate_send_message_to_room_1006@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-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c16a0fc43227ede8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@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-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfc2VuZF9tZXNzYWdlX3RvX3Jvb21fMTAwNgBtYWtyb3dlO3A=</auth>
*** User 2022-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@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-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='27cb9d310e6e2deb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@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-01-27 15:33:34.941 ***
kate_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='a005d89b4322ba68da0d62db15419a14'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:34.942 ***
kate_send_message_to_room_1006@localhost/res1 in
<iq id='a005d89b4322ba68da0d62db15419a14' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_send_message_to_room_1006@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:34.942 ***
kate_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='1ce5fb083a990e6fdb7481c9e2f69ccc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.942 ***
kate_send_message_to_room_1006@localhost/res1 in
<iq type='result' id='1ce5fb083a990e6fdb7481c9e2f69ccc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:34.942 ***
kate_send_message_to_room_1006@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:34.943 ***
kate_send_message_to_room_1006@localhost/res1 in
<presence from='kate_send_message_to_room_1006@localhost/res1' to='kate_send_message_to_room_1006@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:34.943 ***
alicE_send_message_to_room_1006@localhost/res1 out
<iq type='set' id='82a3dc4490cdd6272e4b38ce97e69b14' to='muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_send_message_to_room_1006@localhost</user>
<user affiliation='member'>kate_send_message_to_room_1006@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 15:33:34.944 ***
alicE_send_message_to_room_1006@localhost/res1 in
<message from='1643-297614-943765@muclight.localhost' to='alice_send_message_to_room_1006@localhost' id='82a3dc4490cdd6272e4b38ce97e69b14' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297614-943741</version>
<user affiliation='owner'>alice_send_message_to_room_1006@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:34.944 ***
alicE_send_message_to_room_1006@localhost/res1 in
<iq from='muclight.localhost' to='alicE_send_message_to_room_1006@localhost/res1' id='82a3dc4490cdd6272e4b38ce97e69b14' type='result'/>
*** User 2022-01-27 15:33:34.944 ***
bOb_send_message_to_room_1006@localhost/res1 in
<message from='1643-297614-943765@muclight.localhost' to='bob_send_message_to_room_1006@localhost' id='82a3dc4490cdd6272e4b38ce97e69b14' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297614-943741</version>
<user affiliation='member'>bob_send_message_to_room_1006@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:34.944 ***
kate_send_message_to_room_1006@localhost/res1 in
<message from='1643-297614-943765@muclight.localhost' to='kate_send_message_to_room_1006@localhost' id='82a3dc4490cdd6272e4b38ce97e69b14' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-297614-943741</version>
<user affiliation='member'>kate_send_message_to_room_1006@localhost</user>
</x>
<body/>
</message>
*** User 2022-01-27 15:33:34.946 ***
REST request:
Code: 204
Req: {<0.2792.1>,<<"/api/muc-lights/muclight.localhost/wonderland/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ce128c119dbc1c94">>}],
<<"{\"from\":\"alicE_send_message_to_room_1006@localhost\",\"body\":\"Hello everyone!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:34 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,970}
Params: #{body =>
<<"{\"from\":\"alicE_send_message_to_room_1006@localhost\",\"body\":\"Hello everyone!\"}">>,
method => <<"POST">>,
path => <<"/api/muc-lights/muclight.localhost/wonderland/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:34.946 ***
bOb_send_message_to_room_1006@localhost/res1 in
<message from='1643-297614-943765@muclight.localhost/alice_send_message_to_room_1006@localhost' to='bob_send_message_to_room_1006@localhost' id='1643-297614-946049' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-01-27 15:33:34.946 ***
kate_send_message_to_room_1006@localhost/res1 in
<message from='1643-297614-943765@muclight.localhost/alice_send_message_to_room_1006@localhost' to='kate_send_message_to_room_1006@localhost' id='1643-297614-946049' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-01-27 15:33:34.946 ***
kate_send_message_to_room_1006@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:34.947 ***
kate_send_message_to_room_1006@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:34.947 ***
bOb_send_message_to_room_1006@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:34.947 ***
bOb_send_message_to_room_1006@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:34.947 ***
alicE_send_message_to_room_1006@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:34.947 ***
alicE_send_message_to_room_1006@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:34
=== successfully completed test case
=== === Returned value: ok