=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.9176.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.48.34/muc_http_api_suite.invite_online_user_to_room.60546.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.48.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@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:48:34
*** User 2022-05-25 10:48:34.705 ***
alicE_invite_online_user_to_room_1193@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-05-25 10:48:34.706 ***
alicE_invite_online_user_to_room_1193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2d76541447302d3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.706 ***
alicE_invite_online_user_to_room_1193@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-05-25 10:48:34.706 ***
alicE_invite_online_user_to_room_1193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzExOTMAbWF0eWdyeXNh</auth>
*** User 2022-05-25 10:48:34.707 ***
alicE_invite_online_user_to_room_1193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:48:34.707 ***
alicE_invite_online_user_to_room_1193@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-05-25 10:48:34.708 ***
alicE_invite_online_user_to_room_1193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8fc3ea235811a54d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.708 ***
alicE_invite_online_user_to_room_1193@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-05-25 10:48:34.708 ***
alicE_invite_online_user_to_room_1193@localhost/res1 out
<iq type='set' id='352b498dc8ca6acc6b198a6262cd7a72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:48:34.708 ***
alicE_invite_online_user_to_room_1193@localhost/res1 in
<iq id='352b498dc8ca6acc6b198a6262cd7a72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_1193@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:48:34.708 ***
alice_invite_online_user_to_room_1193@localhost/res1 out
<iq type='set' id='400fb646821082a0ca33dc6ea1db6d91'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.708 ***
alice_invite_online_user_to_room_1193@localhost/res1 in
<iq type='result' id='400fb646821082a0ca33dc6ea1db6d91'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.709 ***
alice_invite_online_user_to_room_1193@localhost/res1 out
<presence/>
*** User 2022-05-25 10:48:34.775 ***
alice_invite_online_user_to_room_1193@localhost/res1 in
<presence from='alice_invite_online_user_to_room_1193@localhost/res1' to='alice_invite_online_user_to_room_1193@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:48:34.776 ***
bOb_invite_online_user_to_room_1193@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-05-25 10:48:34.776 ***
bOb_invite_online_user_to_room_1193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='324e2ab3c0a22a4d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.777 ***
bOb_invite_online_user_to_room_1193@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-05-25 10:48:34.777 ***
bOb_invite_online_user_to_room_1193@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8xMTkzAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 10:48:34.778 ***
bOb_invite_online_user_to_room_1193@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:48:34.778 ***
bOb_invite_online_user_to_room_1193@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-05-25 10:48:34.778 ***
bOb_invite_online_user_to_room_1193@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d4d61c05923ce4e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:34.779 ***
bOb_invite_online_user_to_room_1193@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-05-25 10:48:34.779 ***
bOb_invite_online_user_to_room_1193@localhost/res1 out
<iq type='set' id='70b590385abd6122249978ac69df2b8e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bOb_invite_online_user_to_room_1193@localhost/res1 in
<iq id='70b590385abd6122249978ac69df2b8e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_1193@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bob_invite_online_user_to_room_1193@localhost/res1 out
<iq type='set' id='381e0896e31c3094e4b846d87c7552cf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bob_invite_online_user_to_room_1193@localhost/res1 in
<iq type='result' id='381e0896e31c3094e4b846d87c7552cf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:34.779 ***
bob_invite_online_user_to_room_1193@localhost/res1 out
<presence/>
*** User 2022-05-25 10:48:34.781 ***
bob_invite_online_user_to_room_1193@localhost/res1 in
<presence from='bob_invite_online_user_to_room_1193@localhost/res1' to='bob_invite_online_user_to_room_1193@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:48:34.783 ***
REST request fails:
Code: 404
Req: {<0.9248.1>,<<"/api/mucs/localhost/wonderland-14.697408/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4229b63091bbb0eb">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_1193@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1193@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,951}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_1193@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1193@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-14.697408/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:34.786 ***
REST request:
Code: 201
Req: {<0.9253.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"698148cab897c09b">>}],
<<"{\"owner\":\"alice_invite_online_user_to_room_1193@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-14.697408\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-14.697408">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:34 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-14.697408">>,222,1916}
Params: #{body =>
<<"{\"owner\":\"alice_invite_online_user_to_room_1193@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-14.697408\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:34.787 ***
REST request:
Code: 204
Req: {<0.9256.1>,<<"/api/mucs/localhost/wonderland-14.697408/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"abda362c017b5331">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_1193@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1193@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:34 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,607}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_1193@localhost\",\"recipient\":\"bob_invite_online_user_to_room_1193@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-14.697408/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:34.788 ***
bob_invite_online_user_to_room_1193@localhost/res1 in
<message from='alice_invite_online_user_to_room_1193@localhost' to='bob_invite_online_user_to_room_1193@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-14.697408@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2022-05-25 10:48:34.788 ***
bob_invite_online_user_to_room_1193@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:48:34.788 ***
bob_invite_online_user_to_room_1193@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:48:34.788 ***
alice_invite_online_user_to_room_1193@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:48:34.788 ***
alice_invite_online_user_to_room_1193@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:48:34
=== successfully completed test case
=== === Returned value: ok