=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.68447.0>},
{preset,"pgsql_cets"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-18_11.07.41/muc_http_api_suite.invite_online_user_to_room.189058.html"},
{tc_group_properties,[{name,positive},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@2ed2b07c4324.2024-04-18_10.56.18/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-18_11.07.41/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@2ed2b07c4324.2024-04-18_10.56.18"
=== Started at 2024-04-18 11:07:41
*** User 2024-04-18 11:07:41.326 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-18 11:07:41.326 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e88556338c0cd92d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:07:41.326 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-18 11:07:41.326 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI1ODIAbWF0eWdyeXNh</auth>
*** User 2024-04-18 11:07:41.327 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:07:41.327 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-18 11:07:41.327 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4466e83fec0b1af4' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2582@localhost'>
*** User 2024-04-18 11:07:41.327 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-18 11:07:41.327 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 out
<iq type='set' id='069b1565c82aa4e0ab1ca73bd3381b89'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:07:41.328 ***🔗
alicE_invite_online_user_to_room_2582@localhost/res1 in
<iq id='069b1565c82aa4e0ab1ca73bd3381b89' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2582@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:07:41.328 ***🔗
alice_invite_online_user_to_room_2582@localhost/res1 out
<iq type='set' id='d2ccc7ee14891282768edc20effe9ff4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:07:41.328 ***🔗
alice_invite_online_user_to_room_2582@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_2582@localhost/res1' id='d2ccc7ee14891282768edc20effe9ff4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:07:41.329 ***🔗
alice_invite_online_user_to_room_2582@localhost/res1 out
<presence/>
*** User 2024-04-18 11:07:41.330 ***🔗
alice_invite_online_user_to_room_2582@localhost/res1 in
<presence from='alice_invite_online_user_to_room_2582@localhost/res1' to='alice_invite_online_user_to_room_2582@localhost/res1'/>
*** User 2024-04-18 11:07:41.330 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-18 11:07:41.330 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5760fd0c8896f862' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-18 11:07:41.330 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-18 11:07:41.330 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yNTgyAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-18 11:07:41.331 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-18 11:07:41.331 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-18 11:07:41.331 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ac6686c4db48fdd' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2582@localhost'>
*** User 2024-04-18 11:07:41.331 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-18 11:07:41.331 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 out
<iq type='set' id='0946e3fed934b8e416c9adf9b24c4794'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-18 11:07:41.332 ***🔗
bOb_invite_online_user_to_room_2582@localhost/res1 in
<iq id='0946e3fed934b8e416c9adf9b24c4794' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2582@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-18 11:07:41.332 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 out
<iq type='set' id='22e8b39c00526b97bf71a4979df11bc0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:07:41.332 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_2582@localhost/res1' id='22e8b39c00526b97bf71a4979df11bc0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-18 11:07:41.332 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 out
<presence/>
*** User 2024-04-18 11:07:41.333 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 in
<presence from='bob_invite_online_user_to_room_2582@localhost/res1' to='bob_invite_online_user_to_room_2582@localhost/res1'/>
*** User 2024-04-18 11:07:41.335 ***🔗
REST request fails:
Code: 404
Req: {<0.68506.0>,<<"/api/mucs/localhost/wonderland-61.318411/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9e706bbf1526d6af">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2582@localhost\",\"sender\":\"alice_invite_online_user_to_room_2582@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:41 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,733}
Params: #{path => <<"/api/mucs/localhost/wonderland-61.318411/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2582@localhost\",\"sender\":\"alice_invite_online_user_to_room_2582@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:41.337 ***🔗
REST request:
Code: 201
Req: {<0.68510.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2831a65dc6660145">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2582@localhost\",\"name\":\"wonderland-61.318411\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-61.318411">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:41 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-61.318411">>,215,1630}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2582@localhost\",\"name\":\"wonderland-61.318411\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:41.339 ***🔗
REST request:
Code: 204
Req: {<0.68514.0>,<<"/api/mucs/localhost/wonderland-61.318411/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"84fc80a717d690e7">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2582@localhost\",\"sender\":\"alice_invite_online_user_to_room_2582@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 18 Apr 2024 11:07:41 GMT">>}],
<<>>,80,656}
Params: #{path => <<"/api/mucs/localhost/wonderland-61.318411/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2582@localhost\",\"sender\":\"alice_invite_online_user_to_room_2582@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
role => admin,return_headers => true}
*** User 2024-04-18 11:07:41.339 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 in
<message from='alice_invite_online_user_to_room_2582@localhost' to='bob_invite_online_user_to_room_2582@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-61.318411@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2024-04-18 11:07:41.339 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:07:41.340 ***🔗
bob_invite_online_user_to_room_2582@localhost/res1 in
</stream:stream>
*** User 2024-04-18 11:07:41.340 ***🔗
alice_invite_online_user_to_room_2582@localhost/res1 out
</stream:stream>
*** User 2024-04-18 11:07:41.340 ***🔗
alice_invite_online_user_to_room_2582@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-18 11:07:41
=== successfully completed test case
=== === Returned value: ok