=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.26339.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/muc_http_api_suite.invite_online_user_to_room.141058.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/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@df370d24fb6d.2022-05-11_08.56.40"
=== Started at 2022-05-11 09:03:32
*** User 2022-05-11 09:03:32.164 ***
alicE_invite_online_user_to_room_1898@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-11 09:03:32.164 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='62e046516bcfa043' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:32.164 ***
alicE_invite_online_user_to_room_1898@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-11 09:03:32.164 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzE4OTgAbWF0eWdyeXNh</auth>
*** User 2022-05-11 09:03:32.165 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:03:32.165 ***
alicE_invite_online_user_to_room_1898@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-11 09:03:32.165 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f17ddf05a5fee3ac' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:32.166 ***
alicE_invite_online_user_to_room_1898@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-11 09:03:32.166 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 out
<iq type='set' id='898f3b049c371cfa2e4aa1eafe66f0b3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:03:32.166 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
<iq id='898f3b049c371cfa2e4aa1eafe66f0b3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_invite_online_user_to_room_1898@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:03:32.166 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 out
<iq type='set' id='5f9f0bb6f14dcadb02169b9d0d8cec8d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:32.166 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
<iq type='result' id='5f9f0bb6f14dcadb02169b9d0d8cec8d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:32.167 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:03:32.167 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
<presence from='alicE_invite_online_user_to_room_1898@domain.example.com/res1' to='alice_invite_online_user_to_room_1898@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:03:32.168 ***
bOb_invite_online_user_to_room_1898@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-11 09:03:32.168 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fcf817ace4a072b9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:32.168 ***
bOb_invite_online_user_to_room_1898@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-11 09:03:32.169 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8xODk4AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-11 09:03:32.169 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:03:32.169 ***
bOb_invite_online_user_to_room_1898@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-11 09:03:32.170 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fcd8ac4c75a6e946' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:32.170 ***
bOb_invite_online_user_to_room_1898@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-11 09:03:32.170 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 out
<iq type='set' id='42a9c81f96814451a5a33294b55c1636'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:03:32.170 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<iq id='42a9c81f96814451a5a33294b55c1636' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_invite_online_user_to_room_1898@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:03:32.170 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 out
<iq type='set' id='9b10f722fff236abb66ba214a1e42381'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:32.171 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<iq type='result' id='9b10f722fff236abb66ba214a1e42381'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:32.171 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:03:32.172 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<presence from='bOb_invite_online_user_to_room_1898@domain.example.com/res1' to='bob_invite_online_user_to_room_1898@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:03:32.174 ***
REST request fails:
Code: 404
Req: {<0.26409.1>,
<<"/api/mucs/domain.example.com/wonderland-12.155794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8e3b98ce6d3356a4">>}],
<<"{\"sender\":\"alicE_invite_online_user_to_room_1898@domain.example.com\",\"recipient\":\"bOb_invite_online_user_to_room_1898@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,1056}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_online_user_to_room_1898@domain.example.com\",\"recipient\":\"bOb_invite_online_user_to_room_1898@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.155794/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:32.178 ***
REST request:
Code: 201
Req: {<0.26412.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cce3444dbd1effc0">>}],
<<"{\"owner\":\"alicE_invite_online_user_to_room_1898@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-12.155794\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-12.155794">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-12.155794">>,231,2256}
Params: #{body =>
<<"{\"owner\":\"alicE_invite_online_user_to_room_1898@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-12.155794\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:32.180 ***
REST request:
Code: 204
Req: {<0.26416.1>,
<<"/api/mucs/domain.example.com/wonderland-12.155794/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9156b72c4543bc7f">>}],
<<"{\"sender\":\"alicE_invite_online_user_to_room_1898@domain.example.com\",\"recipient\":\"bOb_invite_online_user_to_room_1898@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:32 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,578}
Params: #{body =>
<<"{\"sender\":\"alicE_invite_online_user_to_room_1898@domain.example.com\",\"recipient\":\"bOb_invite_online_user_to_room_1898@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-12.155794/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:32.180 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
<message from='alicE_invite_online_user_to_room_1898@domain.example.com' to='bOb_invite_online_user_to_room_1898@domain.example.com'>
<x xmlns='jabber:x:conference' jid='wonderland-12.155794@groupchats.domain.example.com' reason="I think you'll like this room!"/>
</message>
*** User 2022-05-11 09:03:32.180 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:03:32.180 ***
bOb_invite_online_user_to_room_1898@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-11 09:03:32.180 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:03:32.181 ***
alicE_invite_online_user_to_room_1898@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-11 09:03:32
=== successfully completed test case
=== === Returned value: ok