=== Test case: muc_light_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.22953.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_light_http_api_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/muc_light_http_api_suite.send_message_to_room.141186.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-03-04_11.24.21/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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:24:21
*** User 2022-03-04 11:24:21.822 ***
alicE_send_message_to_room_1712@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-03-04 11:24:21.822 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='47913582a66acc73' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.823 ***
alicE_send_message_to_room_1712@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-03-04 11:24:21.823 ***
alicE_send_message_to_room_1712@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzE3MTIAbWF0eWdyeXNh</auth>
*** User 2022-03-04 11:24:21.826 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:21.826 ***
alicE_send_message_to_room_1712@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-03-04 11:24:21.827 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6bda9caa47db7480' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.827 ***
alicE_send_message_to_room_1712@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-03-04 11:24:21.827 ***
alicE_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='07645fc739a75039fad743be99fab4f3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:21.827 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<iq id='07645fc739a75039fad743be99fab4f3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_send_message_to_room_1712@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:21.827 ***
alicE_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='2b7bebcd4a7c8a6a138d613a871a67da'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.827 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<iq type='result' id='2b7bebcd4a7c8a6a138d613a871a67da'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.828 ***
alicE_send_message_to_room_1712@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:21.833 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<presence from='alicE_send_message_to_room_1712@domain.example.com/res1' to='alice_send_message_to_room_1712@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:21.833 ***
bOb_send_message_to_room_1712@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-03-04 11:24:21.834 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='87bed1fa3135d25b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.834 ***
bOb_send_message_to_room_1712@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-03-04 11:24:21.834 ***
bOb_send_message_to_room_1712@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8xNzEyAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-04 11:24:21.835 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:21.835 ***
bOb_send_message_to_room_1712@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-03-04 11:24:21.836 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f090449375afe078' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.836 ***
bOb_send_message_to_room_1712@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-03-04 11:24:21.836 ***
bOb_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='8ee72cefff05905db4835e127c113309'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:21.837 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<iq id='8ee72cefff05905db4835e127c113309' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_send_message_to_room_1712@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:21.837 ***
bOb_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='c975081d83a1e5f86af6a7b55538bd0e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.837 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<iq type='result' id='c975081d83a1e5f86af6a7b55538bd0e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.837 ***
bOb_send_message_to_room_1712@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:21.838 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<presence from='bOb_send_message_to_room_1712@domain.example.com/res1' to='bob_send_message_to_room_1712@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:21.839 ***
kate_send_message_to_room_1712@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-03-04 11:24:21.839 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77577e40b2b6ba3e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.839 ***
kate_send_message_to_room_1712@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-03-04 11:24:21.839 ***
kate_send_message_to_room_1712@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfc2VuZF9tZXNzYWdlX3RvX3Jvb21fMTcxMgBtYWtyb3dlO3A=</auth>
*** User 2022-03-04 11:24:21.842 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:21.842 ***
kate_send_message_to_room_1712@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-03-04 11:24:21.842 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3c9d81c560a82f9a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:21.842 ***
kate_send_message_to_room_1712@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-03-04 11:24:21.842 ***
kate_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='8db0b3af68e2ddc0096e4c0a36bba543'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:21.842 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<iq id='8db0b3af68e2ddc0096e4c0a36bba543' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_send_message_to_room_1712@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:21.843 ***
kate_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='133c7bca87b2e8980c706853f55bde4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.843 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<iq type='result' id='133c7bca87b2e8980c706853f55bde4b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:21.843 ***
kate_send_message_to_room_1712@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:21.844 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<presence from='kate_send_message_to_room_1712@domain.example.com/res1' to='kate_send_message_to_room_1712@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:21.844 ***
alicE_send_message_to_room_1712@domain.example.com/res1 out
<iq type='set' id='d287a9e5a5571a9ac80b74a3c1faf307' to='send_message_to_room@muclight2.domain.example.com'>
<query xmlns='urn:xmpp:muclight:0#create'>
<configuration>
<roomname>wonderland</roomname>
</configuration>
<occupants>
<user affiliation='member'>bob_send_message_to_room_1712@domain.example.com</user>
<user affiliation='member'>kate_send_message_to_room_1712@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2022-03-04 11:24:21.849 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<message from='send_message_to_room@muclight2.domain.example.com' to='alice_send_message_to_room_1712@domain.example.com' id='d287a9e5a5571a9ac80b74a3c1faf307' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-393061-845571</version>
<user affiliation='owner'>alice_send_message_to_room_1712@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:24:21.849 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
<iq from='send_message_to_room@muclight2.domain.example.com' to='alicE_send_message_to_room_1712@domain.example.com/res1' id='d287a9e5a5571a9ac80b74a3c1faf307' type='result'/>
*** User 2022-03-04 11:24:21.849 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<message from='send_message_to_room@muclight2.domain.example.com' to='bob_send_message_to_room_1712@domain.example.com' id='d287a9e5a5571a9ac80b74a3c1faf307' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-393061-845571</version>
<user affiliation='member'>bob_send_message_to_room_1712@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:24:21.849 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<message from='send_message_to_room@muclight2.domain.example.com' to='kate_send_message_to_room_1712@domain.example.com' id='d287a9e5a5571a9ac80b74a3c1faf307' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1646-393061-845571</version>
<user affiliation='member'>kate_send_message_to_room_1712@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-03-04 11:24:21.852 ***
REST request:
Code: 204
Req: {<0.23040.1>,
<<"/api/muc-lights/muclight2.domain.example.com/send_message_to_room/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e8d48786ab1f0c33">>}],
<<"{\"from\":\"alicE_send_message_to_room_1712@domain.example.com\",\"body\":\"Hello everyone!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:24:20 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,2256}
Params: #{body =>
<<"{\"from\":\"alicE_send_message_to_room_1712@domain.example.com\",\"body\":\"Hello everyone!\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight2.domain.example.com/send_message_to_room/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:24:21.852 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
<message from='send_message_to_room@muclight2.domain.example.com/alice_send_message_to_room_1712@domain.example.com' to='bob_send_message_to_room_1712@domain.example.com' id='1646-393061-851097' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-03-04 11:24:21.852 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
<message from='send_message_to_room@muclight2.domain.example.com/alice_send_message_to_room_1712@domain.example.com' to='kate_send_message_to_room_1712@domain.example.com' id='1646-393061-851097' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-03-04 11:24:21.852 ***
kate_send_message_to_room_1712@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:21.852 ***
kate_send_message_to_room_1712@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:21.853 ***
bOb_send_message_to_room_1712@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:21.853 ***
bOb_send_message_to_room_1712@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:21.853 ***
alicE_send_message_to_room_1712@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:21.853 ***
alicE_send_message_to_room_1712@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:24:21
=== successfully completed test case
=== === Returned value: ok