=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.8340.2>},
{preset,"pgsql_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@37fc7fafefac.2024-04-25_12.00.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.21/muc_http_api_suite.invite_online_user_to_room.211970.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@37fc7fafefac.2024-04-25_12.00.24/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-25_12.13.21/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@37fc7fafefac.2024-04-25_12.00.24"
=== Started at 2024-04-25 12:13:21
*** User 2024-04-25 12:13:21.854 ***🔗
alicE_invite_online_user_to_room_3061@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-25 12:13:21.854 ***🔗
alicE_invite_online_user_to_room_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='568437f5fd72240b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:13:21.854 ***🔗
alicE_invite_online_user_to_room_3061@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-25 12:13:21.854 ***🔗
alicE_invite_online_user_to_room_3061@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzMwNjEAbWF0eWdyeXNh</auth>
*** User 2024-04-25 12:13:21.855 ***🔗
alicE_invite_online_user_to_room_3061@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:13:21.855 ***🔗
alicE_invite_online_user_to_room_3061@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-25 12:13:21.855 ***🔗
alicE_invite_online_user_to_room_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e5cb475897ab13ba' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_3061@localhost'>
*** User 2024-04-25 12:13:21.855 ***🔗
alicE_invite_online_user_to_room_3061@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-25 12:13:21.856 ***🔗
alicE_invite_online_user_to_room_3061@localhost/res1 out
<iq type='set' id='e2c6700dea6ceb4aa9924bdf5d682da9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:13:21.856 ***🔗
alicE_invite_online_user_to_room_3061@localhost/res1 in
<iq id='e2c6700dea6ceb4aa9924bdf5d682da9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_3061@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:13:21.856 ***🔗
alice_invite_online_user_to_room_3061@localhost/res1 out
<iq type='set' id='dfc8b1faab51004fd13ce7bfefe49cd4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:21.856 ***🔗
alice_invite_online_user_to_room_3061@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_3061@localhost/res1' id='dfc8b1faab51004fd13ce7bfefe49cd4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:21.856 ***🔗
alice_invite_online_user_to_room_3061@localhost/res1 out
<presence/>
*** User 2024-04-25 12:13:21.857 ***🔗
alice_invite_online_user_to_room_3061@localhost/res1 in
<presence from='alice_invite_online_user_to_room_3061@localhost/res1' to='alice_invite_online_user_to_room_3061@localhost/res1'/>
*** User 2024-04-25 12:13:21.858 ***🔗
bOb_invite_online_user_to_room_3061@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-25 12:13:21.858 ***🔗
bOb_invite_online_user_to_room_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e2cf5a76ea47f5f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:13:21.858 ***🔗
bOb_invite_online_user_to_room_3061@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-25 12:13:21.858 ***🔗
bOb_invite_online_user_to_room_3061@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8zMDYxAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-25 12:13:21.859 ***🔗
bOb_invite_online_user_to_room_3061@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:13:21.860 ***🔗
bOb_invite_online_user_to_room_3061@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-25 12:13:21.860 ***🔗
bOb_invite_online_user_to_room_3061@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e85cf2dfb97dedd' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_3061@localhost'>
*** User 2024-04-25 12:13:21.860 ***🔗
bOb_invite_online_user_to_room_3061@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-25 12:13:21.860 ***🔗
bOb_invite_online_user_to_room_3061@localhost/res1 out
<iq type='set' id='e63ce99ac6939ae22f02235ed2be2f2a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:13:21.860 ***🔗
bOb_invite_online_user_to_room_3061@localhost/res1 in
<iq id='e63ce99ac6939ae22f02235ed2be2f2a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_3061@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:13:21.861 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 out
<iq type='set' id='c3a58efd8bf98a4c5ca54bf8a899445e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:21.861 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_3061@localhost/res1' id='c3a58efd8bf98a4c5ca54bf8a899445e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:21.861 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 out
<presence/>
*** User 2024-04-25 12:13:21.862 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 in
<presence from='bob_invite_online_user_to_room_3061@localhost/res1' to='bob_invite_online_user_to_room_3061@localhost/res1'/>
*** User 2024-04-25 12:13:21.864 ***🔗
REST request fails:
Code: 404
Req: {<0.8401.2>,<<"/api/mucs/localhost/wonderland-1.844127/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68f7b56536135ba0">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_3061@localhost\",\"recipient\":\"bob_invite_online_user_to_room_3061@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:21 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,761}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_3061@localhost\",\"recipient\":\"bob_invite_online_user_to_room_3061@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-1.844127/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:21.867 ***🔗
REST request:
Code: 201
Req: {<0.8405.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"92e5b6947c56a158">>}],
<<"{\"owner\":\"alice_invite_online_user_to_room_3061@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-1.844127\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-1.844127">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:21 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-1.844127">>,213,2201}
Params: #{body =>
<<"{\"owner\":\"alice_invite_online_user_to_room_3061@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-1.844127\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:21.869 ***🔗
REST request:
Code: 204
Req: {<0.8407.2>,<<"/api/mucs/localhost/wonderland-1.844127/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d10c53c8da2f89ee">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_3061@localhost\",\"recipient\":\"bob_invite_online_user_to_room_3061@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:21 GMT">>}],
<<>>,80,570}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_3061@localhost\",\"recipient\":\"bob_invite_online_user_to_room_3061@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-1.844127/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:21.870 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 in
<message from='alice_invite_online_user_to_room_3061@localhost' to='bob_invite_online_user_to_room_3061@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-1.844127@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2024-04-25 12:13:21.870 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:13:21.870 ***🔗
bob_invite_online_user_to_room_3061@localhost/res1 in
</stream:stream>
*** User 2024-04-25 12:13:21.870 ***🔗
alice_invite_online_user_to_room_3061@localhost/res1 out
</stream:stream>
*** User 2024-04-25 12:13:21.871 ***🔗
alice_invite_online_user_to_room_3061@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-25 12:13:21
=== successfully completed test case
=== === Returned value: ok