=== Test case: muc_light_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2780.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/muc_light_http_api_suite.send_message_to_room.45314.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-03_10.36.06/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@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:36:06
*** User 2022-03-03 10:36:06.806 ***
alicE_send_message_to_room_953@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-03-03 10:36:06.806 ***
alicE_send_message_to_room_953@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1309b86481810a43' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.807 ***
alicE_send_message_to_room_953@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>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-03-03 10:36:06.807 ***
alicE_send_message_to_room_953@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzk1MwBtYXR5Z3J5c2E=</auth>
*** User 2022-03-03 10:36:06.808 ***
alicE_send_message_to_room_953@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.808 ***
alicE_send_message_to_room_953@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-03-03 10:36:06.808 ***
alicE_send_message_to_room_953@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='74e6b62e00ea4964' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.808 ***
alicE_send_message_to_room_953@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-03-03 10:36:06.808 ***
alicE_send_message_to_room_953@localhost/res1 out
<iq type='set' id='6b180ce538a00c70cd61e590da968f92'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.809 ***
alicE_send_message_to_room_953@localhost/res1 in
<iq id='6b180ce538a00c70cd61e590da968f92' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_send_message_to_room_953@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.809 ***
alicE_send_message_to_room_953@localhost/res1 out
<iq type='set' id='944bcb5f437cf535d954341fdb912aca'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.809 ***
alicE_send_message_to_room_953@localhost/res1 in
<iq type='result' id='944bcb5f437cf535d954341fdb912aca'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.809 ***
alicE_send_message_to_room_953@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.810 ***
alicE_send_message_to_room_953@localhost/res1 in
<presence from='alicE_send_message_to_room_953@localhost/res1' to='alice_send_message_to_room_953@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.811 ***
bOb_send_message_to_room_953@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-03-03 10:36:06.811 ***
bOb_send_message_to_room_953@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bae90cf96b08cf3c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.811 ***
bOb_send_message_to_room_953@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>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-03-03 10:36:06.811 ***
bOb_send_message_to_room_953@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV85NTMAbWFrcm9saWth</auth>
*** User 2022-03-03 10:36:06.813 ***
bOb_send_message_to_room_953@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.813 ***
bOb_send_message_to_room_953@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-03-03 10:36:06.813 ***
bOb_send_message_to_room_953@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5f0a54a7424cc8e3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.813 ***
bOb_send_message_to_room_953@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-03-03 10:36:06.813 ***
bOb_send_message_to_room_953@localhost/res1 out
<iq type='set' id='5b3419e4a58ce637dae29a2c2e76f32a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.813 ***
bOb_send_message_to_room_953@localhost/res1 in
<iq id='5b3419e4a58ce637dae29a2c2e76f32a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_send_message_to_room_953@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.814 ***
bOb_send_message_to_room_953@localhost/res1 out
<iq type='set' id='831c813e7b0f6a784b5c93a853f1b062'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.814 ***
bOb_send_message_to_room_953@localhost/res1 in
<iq type='result' id='831c813e7b0f6a784b5c93a853f1b062'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.814 ***
bOb_send_message_to_room_953@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.815 ***
bOb_send_message_to_room_953@localhost/res1 in
<presence from='bOb_send_message_to_room_953@localhost/res1' to='bob_send_message_to_room_953@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.815 ***
kate_send_message_to_room_953@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-03-03 10:36:06.816 ***
kate_send_message_to_room_953@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='47ec5aa79481dae7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.816 ***
kate_send_message_to_room_953@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>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-03-03 10:36:06.816 ***
kate_send_message_to_room_953@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfc2VuZF9tZXNzYWdlX3RvX3Jvb21fOTUzAG1ha3Jvd2U7cA==</auth>
*** User 2022-03-03 10:36:06.817 ***
kate_send_message_to_room_953@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:36:06.817 ***
kate_send_message_to_room_953@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-03-03 10:36:06.817 ***
kate_send_message_to_room_953@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='356bdee055eb7fe5' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:36:06.817 ***
kate_send_message_to_room_953@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-03-03 10:36:06.817 ***
kate_send_message_to_room_953@localhost/res1 out
<iq type='set' id='869ec0a172bac99fc4ae91da75741f01'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:36:06.818 ***
kate_send_message_to_room_953@localhost/res1 in
<iq id='869ec0a172bac99fc4ae91da75741f01' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_send_message_to_room_953@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:36:06.818 ***
kate_send_message_to_room_953@localhost/res1 out
<iq type='set' id='90aaddc53949ebb6be69d8ac33235736'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.818 ***
kate_send_message_to_room_953@localhost/res1 in
<iq type='result' id='90aaddc53949ebb6be69d8ac33235736'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:36:06.818 ***
kate_send_message_to_room_953@localhost/res1 out
<presence/>
*** User 2022-03-03 10:36:06.819 ***
kate_send_message_to_room_953@localhost/res1 in
<presence from='kate_send_message_to_room_953@localhost/res1' to='kate_send_message_to_room_953@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:36:06.819 ***
alicE_send_message_to_room_953@localhost/res1 out
<iq type='set' id='f80b3c044c6f00707613eae3a32f2836' to='send_message_to_room@muclight.localhost'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_send_message_to_room_953@localhost</user>
<user affiliation='member'>kate_send_message_to_room_953@localhost</user>
</occupants>
</query>
</iq>
*** User 2022-03-03 10:36:06.820 ***
alicE_send_message_to_room_953@localhost/res1 in
<message from='send_message_to_room@muclight.localhost' to='alice_send_message_to_room_953@localhost' id='f80b3c044c6f00707613eae3a32f2836' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-819717</version>
<user affiliation='owner'>alice_send_message_to_room_953@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.820 ***
alicE_send_message_to_room_953@localhost/res1 in
<iq from='send_message_to_room@muclight.localhost' to='alicE_send_message_to_room_953@localhost/res1' id='f80b3c044c6f00707613eae3a32f2836' type='result'/>
*** User 2022-03-03 10:36:06.820 ***
bOb_send_message_to_room_953@localhost/res1 in
<message from='send_message_to_room@muclight.localhost' to='bob_send_message_to_room_953@localhost' id='f80b3c044c6f00707613eae3a32f2836' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-819717</version>
<user affiliation='member'>bob_send_message_to_room_953@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.820 ***
kate_send_message_to_room_953@localhost/res1 in
<message from='send_message_to_room@muclight.localhost' to='kate_send_message_to_room_953@localhost' id='f80b3c044c6f00707613eae3a32f2836' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-303766-819717</version>
<user affiliation='member'>kate_send_message_to_room_953@localhost</user>
</x>
<body/>
</message>
*** User 2022-03-03 10:36:06.822 ***
REST request:
Code: 204
Req: {<0.2868.1>,
<<"/api/muc-lights/muclight.localhost/send_message_to_room/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"08770893aef2e786">>}],
<<"{\"from\":\"alicE_send_message_to_room_953@localhost\",\"body\":\"Hello everyone!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:36:06 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,992}
Params: #{body =>
<<"{\"from\":\"alicE_send_message_to_room_953@localhost\",\"body\":\"Hello everyone!\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight.localhost/send_message_to_room/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:36:06.822 ***
bOb_send_message_to_room_953@localhost/res1 in
<message from='send_message_to_room@muclight.localhost/alice_send_message_to_room_953@localhost' to='bob_send_message_to_room_953@localhost' id='1646-303766-821926' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-03-03 10:36:06.822 ***
kate_send_message_to_room_953@localhost/res1 in
<message from='send_message_to_room@muclight.localhost/alice_send_message_to_room_953@localhost' to='kate_send_message_to_room_953@localhost' id='1646-303766-821926' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-03-03 10:36:06.822 ***
kate_send_message_to_room_953@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.823 ***
kate_send_message_to_room_953@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:36:06.823 ***
bOb_send_message_to_room_953@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.823 ***
bOb_send_message_to_room_953@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:36:06.823 ***
alicE_send_message_to_room_953@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:36:06.823 ***
alicE_send_message_to_room_953@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:36:06
=== successfully completed test case
=== === Returned value: ok