=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.73492.0>},
{preset,"odbc_mssql_mnesia"},
{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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.09.49/muc_http_api_suite.invite_online_user_to_room.138243.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_11.09.49/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@96ddc50d3205.2024-04-23_10.53.40"
=== Started at 2024-04-23 11:09:50
*** User 2024-04-23 11:09:50.196 ***🔗
alicE_invite_online_user_to_room_2972@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-23 11:09:50.196 ***🔗
alicE_invite_online_user_to_room_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cf9671bd3c6365f6' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:50.196 ***🔗
alicE_invite_online_user_to_room_2972@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-23 11:09:50.196 ***🔗
alicE_invite_online_user_to_room_2972@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI5NzIAbWF0eWdyeXNh</auth>
*** User 2024-04-23 11:09:50.198 ***🔗
alicE_invite_online_user_to_room_2972@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:50.198 ***🔗
alicE_invite_online_user_to_room_2972@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-23 11:09:50.198 ***🔗
alicE_invite_online_user_to_room_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='16dbc169362c4417' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2972@localhost'>
*** User 2024-04-23 11:09:50.198 ***🔗
alicE_invite_online_user_to_room_2972@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-23 11:09:50.198 ***🔗
alicE_invite_online_user_to_room_2972@localhost/res1 out
<iq type='set' id='bfe1d8d6919a7f7589bd7d40e3ceee98'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:50.199 ***🔗
alicE_invite_online_user_to_room_2972@localhost/res1 in
<iq id='bfe1d8d6919a7f7589bd7d40e3ceee98' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2972@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:50.199 ***🔗
alice_invite_online_user_to_room_2972@localhost/res1 out
<iq type='set' id='4789c7febd3b3a5f320f9c08b2e9a632'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:50.199 ***🔗
alice_invite_online_user_to_room_2972@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_2972@localhost/res1' id='4789c7febd3b3a5f320f9c08b2e9a632' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:50.199 ***🔗
alice_invite_online_user_to_room_2972@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:50.201 ***🔗
alice_invite_online_user_to_room_2972@localhost/res1 in
<presence from='alice_invite_online_user_to_room_2972@localhost/res1' to='alice_invite_online_user_to_room_2972@localhost/res1'/>
*** User 2024-04-23 11:09:50.201 ***🔗
bOb_invite_online_user_to_room_2972@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-23 11:09:50.201 ***🔗
bOb_invite_online_user_to_room_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ea091d5f0234c864' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:09:50.201 ***🔗
bOb_invite_online_user_to_room_2972@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-23 11:09:50.202 ***🔗
bOb_invite_online_user_to_room_2972@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yOTcyAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-23 11:09:50.203 ***🔗
bOb_invite_online_user_to_room_2972@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:09:50.203 ***🔗
bOb_invite_online_user_to_room_2972@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-23 11:09:50.203 ***🔗
bOb_invite_online_user_to_room_2972@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01698c558c2f6bdc' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2972@localhost'>
*** User 2024-04-23 11:09:50.203 ***🔗
bOb_invite_online_user_to_room_2972@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-23 11:09:50.203 ***🔗
bOb_invite_online_user_to_room_2972@localhost/res1 out
<iq type='set' id='11305c8f81a2b272fda36ed6f4271016'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:09:50.203 ***🔗
bOb_invite_online_user_to_room_2972@localhost/res1 in
<iq id='11305c8f81a2b272fda36ed6f4271016' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2972@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:09:50.204 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 out
<iq type='set' id='343ed4a3d38d26ae83ce63527874f45f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:50.204 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_2972@localhost/res1' id='343ed4a3d38d26ae83ce63527874f45f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:09:50.204 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 out
<presence/>
*** User 2024-04-23 11:09:50.205 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 in
<presence from='bob_invite_online_user_to_room_2972@localhost/res1' to='bob_invite_online_user_to_room_2972@localhost/res1'/>
*** User 2024-04-23 11:09:50.207 ***🔗
REST request fails:
Code: 404
Req: {<0.73551.0>,<<"/api/mucs/localhost/wonderland-90.185549/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"017e417d0f8e8479">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2972@localhost\",\"sender\":\"alice_invite_online_user_to_room_2972@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,649}
Params: #{path => <<"/api/mucs/localhost/wonderland-90.185549/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2972@localhost\",\"sender\":\"alice_invite_online_user_to_room_2972@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:50.211 ***🔗
REST request:
Code: 201
Req: {<0.73557.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"624e5c56fa9aa3aa">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2972@localhost\",\"name\":\"wonderland-90.185549\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-90.185549">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:49 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-90.185549">>,215,2770}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2972@localhost\",\"name\":\"wonderland-90.185549\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:50.213 ***🔗
REST request:
Code: 204
Req: {<0.73559.0>,<<"/api/mucs/localhost/wonderland-90.185549/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5049fd7082f23513">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2972@localhost\",\"sender\":\"alice_invite_online_user_to_room_2972@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:09:49 GMT">>}],
<<>>,80,571}
Params: #{path => <<"/api/mucs/localhost/wonderland-90.185549/participants">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2972@localhost\",\"sender\":\"alice_invite_online_user_to_room_2972@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-23 11:09:50.213 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 in
<message from='alice_invite_online_user_to_room_2972@localhost' to='bob_invite_online_user_to_room_2972@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-90.185549@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2024-04-23 11:09:50.213 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:50.213 ***🔗
bob_invite_online_user_to_room_2972@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:09:50.213 ***🔗
alice_invite_online_user_to_room_2972@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:09:50.214 ***🔗
alice_invite_online_user_to_room_2972@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:09:50
=== successfully completed test case
=== === Returned value: ok