=== Test case: muc_light_http_api_SUITE:send_message_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.20820.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/muc_light_http_api_suite.send_message_to_room.116098.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.muc_light_http_api_SUITE.logs/run.2022-01-27_12.35.40/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@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:35:40
*** User 2022-01-27 12:35:40.337 ***
alicE_send_message_to_room_1654@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-01-27 12:35:40.337 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8abaae03904ef167' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.337 ***
alicE_send_message_to_room_1654@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-01-27 12:35:40.338 ***
alicE_send_message_to_room_1654@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NlbmRfbWVzc2FnZV90b19yb29tXzE2NTQAbWF0eWdyeXNh</auth>
*** User 2022-01-27 12:35:40.339 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.339 ***
alicE_send_message_to_room_1654@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-01-27 12:35:40.340 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a485fbf30558217f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.340 ***
alicE_send_message_to_room_1654@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-01-27 12:35:40.340 ***
alicE_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='6b12796068b2798d3116e20eea71fb4c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.340 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<iq id='6b12796068b2798d3116e20eea71fb4c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_send_message_to_room_1654@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.340 ***
alicE_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='3450bbeb48b04373ff070cd26302a86f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.340 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<iq type='result' id='3450bbeb48b04373ff070cd26302a86f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.341 ***
alicE_send_message_to_room_1654@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.346 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<presence from='alicE_send_message_to_room_1654@domain.example.com/res1' to='alice_send_message_to_room_1654@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.347 ***
bOb_send_message_to_room_1654@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-01-27 12:35:40.347 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ebcf2f36bb5921d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.348 ***
bOb_send_message_to_room_1654@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-01-27 12:35:40.348 ***
bOb_send_message_to_room_1654@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9zZW5kX21lc3NhZ2VfdG9fcm9vbV8xNjU0AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 12:35:40.349 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.349 ***
bOb_send_message_to_room_1654@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-01-27 12:35:40.349 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='788c55c955e98e35' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.349 ***
bOb_send_message_to_room_1654@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-01-27 12:35:40.350 ***
bOb_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='63c3dd83e371ddd3543d4b17cb2a176a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.350 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<iq id='63c3dd83e371ddd3543d4b17cb2a176a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_send_message_to_room_1654@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.350 ***
bOb_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='8cb31ac638038680d69505061466560e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.350 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<iq type='result' id='8cb31ac638038680d69505061466560e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.350 ***
bOb_send_message_to_room_1654@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.352 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<presence from='bOb_send_message_to_room_1654@domain.example.com/res1' to='bob_send_message_to_room_1654@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.353 ***
kate_send_message_to_room_1654@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-01-27 12:35:40.353 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d09cdf52de1d6cb' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.353 ***
kate_send_message_to_room_1654@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-01-27 12:35:40.353 ***
kate_send_message_to_room_1654@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfc2VuZF9tZXNzYWdlX3RvX3Jvb21fMTY1NABtYWtyb3dlO3A=</auth>
*** User 2022-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@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-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='215660062b7fff5a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@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-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='b6b08f6ebaf07b33bf6a8d7bc9ba0262'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<iq id='b6b08f6ebaf07b33bf6a8d7bc9ba0262' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_send_message_to_room_1654@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:35:40.355 ***
kate_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='19dcea2d1ff7414faeca41d34ca1a231'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.356 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<iq type='result' id='19dcea2d1ff7414faeca41d34ca1a231'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:35:40.356 ***
kate_send_message_to_room_1654@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:35:40.357 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<presence from='kate_send_message_to_room_1654@domain.example.com/res1' to='kate_send_message_to_room_1654@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:35:40.358 ***
alicE_send_message_to_room_1654@domain.example.com/res1 out
<iq type='set' id='15aba0e34652d836b2c8e258ff388bb1' to='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_1654@domain.example.com</user>
<user affiliation='member'>kate_send_message_to_room_1654@domain.example.com</user>
</occupants>
</query>
</iq>
*** User 2022-01-27 12:35:40.365 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<message from='1643-286940-360177@muclight2.domain.example.com' to='alice_send_message_to_room_1654@domain.example.com' id='15aba0e34652d836b2c8e258ff388bb1' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-360165</version>
<user affiliation='owner'>alice_send_message_to_room_1654@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.365 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
<iq from='muclight2.domain.example.com' to='alicE_send_message_to_room_1654@domain.example.com/res1' id='15aba0e34652d836b2c8e258ff388bb1' type='result'/>
*** User 2022-01-27 12:35:40.366 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<message from='1643-286940-360177@muclight2.domain.example.com' to='bob_send_message_to_room_1654@domain.example.com' id='15aba0e34652d836b2c8e258ff388bb1' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-360165</version>
<user affiliation='member'>bob_send_message_to_room_1654@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.366 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<message from='1643-286940-360177@muclight2.domain.example.com' to='kate_send_message_to_room_1654@domain.example.com' id='15aba0e34652d836b2c8e258ff388bb1' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1643-286940-360165</version>
<user affiliation='member'>kate_send_message_to_room_1654@domain.example.com</user>
</x>
<body/>
</message>
*** User 2022-01-27 12:35:40.377 ***
REST request:
Code: 204
Req: {<0.20905.1>,
<<"/api/muc-lights/muclight2.domain.example.com/wonderland/messages">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5dd373191e79ea7b">>}],
<<"{\"from\":\"alicE_send_message_to_room_1654@domain.example.com\",\"body\":\"Hello everyone!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:35:40 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,9943}
Params: #{body =>
<<"{\"from\":\"alicE_send_message_to_room_1654@domain.example.com\",\"body\":\"Hello everyone!\"}">>,
method => <<"POST">>,
path =>
<<"/api/muc-lights/muclight2.domain.example.com/wonderland/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:35:40.377 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
<message from='1643-286940-360177@muclight2.domain.example.com/alice_send_message_to_room_1654@domain.example.com' to='bob_send_message_to_room_1654@domain.example.com' id='1643-286940-371250' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-01-27 12:35:40.377 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
<message from='1643-286940-360177@muclight2.domain.example.com/alice_send_message_to_room_1654@domain.example.com' to='kate_send_message_to_room_1654@domain.example.com' id='1643-286940-371250' type='groupchat'>
<body>Hello everyone!</body>
</message>
*** User 2022-01-27 12:35:40.377 ***
kate_send_message_to_room_1654@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.377 ***
kate_send_message_to_room_1654@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:35:40.377 ***
bOb_send_message_to_room_1654@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.378 ***
bOb_send_message_to_room_1654@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:35:40.378 ***
alicE_send_message_to_room_1654@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:35:40.378 ***
alicE_send_message_to_room_1654@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:35:40
=== successfully completed test case
=== === Returned value: ok