=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.42482.0>},
{preset,"internal_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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.45.04/muc_http_api_suite.invite_online_user_to_room.56835.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@8f270c211212.2024-04-22_14.32.33/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-22_14.45.04/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@8f270c211212.2024-04-22_14.32.33"
=== Started at 2024-04-22 14:45:04
*** User 2024-04-22 14:45:04.814 ***🔗
alicE_invite_online_user_to_room_1471@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-22 14:45:04.818 ***🔗
alicE_invite_online_user_to_room_1471@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='260edcd8b3760318' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:45:04.818 ***🔗
alicE_invite_online_user_to_room_1471@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-22 14:45:04.818 ***🔗
alicE_invite_online_user_to_room_1471@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzE0NzEAbWF0eWdyeXNh</auth>
*** User 2024-04-22 14:45:04.820 ***🔗
alicE_invite_online_user_to_room_1471@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:45:04.820 ***🔗
alicE_invite_online_user_to_room_1471@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-22 14:45:04.820 ***🔗
alicE_invite_online_user_to_room_1471@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bc1d547ceb2704b0' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_1471@localhost'>
*** User 2024-04-22 14:45:04.820 ***🔗
alicE_invite_online_user_to_room_1471@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-22 14:45:04.820 ***🔗
alicE_invite_online_user_to_room_1471@localhost/res1 out
<iq type='set' id='129fd746853ab4ae4bd4ee20b1ec442a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:45:04.821 ***🔗
alicE_invite_online_user_to_room_1471@localhost/res1 in
<iq id='129fd746853ab4ae4bd4ee20b1ec442a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_1471@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:45:04.821 ***🔗
alice_invite_online_user_to_room_1471@localhost/res1 out
<iq type='set' id='eee8f1dab03f7981deb27212e270f901'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:45:04.822 ***🔗
alice_invite_online_user_to_room_1471@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_1471@localhost/res1' id='eee8f1dab03f7981deb27212e270f901' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:45:04.822 ***🔗
alice_invite_online_user_to_room_1471@localhost/res1 out
<presence/>
*** User 2024-04-22 14:45:04.823 ***🔗
alice_invite_online_user_to_room_1471@localhost/res1 in
<presence from='alice_invite_online_user_to_room_1471@localhost/res1' to='alice_invite_online_user_to_room_1471@localhost/res1'/>
*** User 2024-04-22 14:45:04.823 ***🔗
bOb_invite_online_user_to_room_1471@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-22 14:45:04.824 ***🔗
bOb_invite_online_user_to_room_1471@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a882c53434280dc3' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:45:04.825 ***🔗
bOb_invite_online_user_to_room_1471@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-22 14:45:04.825 ***🔗
bOb_invite_online_user_to_room_1471@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8xNDcxAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-22 14:45:04.825 ***🔗
bOb_invite_online_user_to_room_1471@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:45:04.825 ***🔗
bOb_invite_online_user_to_room_1471@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-22 14:45:04.826 ***🔗
bOb_invite_online_user_to_room_1471@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='281dd68d53c8ed11' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_1471@localhost'>
*** User 2024-04-22 14:45:04.826 ***🔗
bOb_invite_online_user_to_room_1471@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-22 14:45:04.826 ***🔗
bOb_invite_online_user_to_room_1471@localhost/res1 out
<iq type='set' id='b79e52bffd8348bea19550662ad3d39a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:45:04.826 ***🔗
bOb_invite_online_user_to_room_1471@localhost/res1 in
<iq id='b79e52bffd8348bea19550662ad3d39a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_1471@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:45:04.827 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 out
<iq type='set' id='b6eb86a48bb1bbcb635a8ba5121dad10'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:45:04.827 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_1471@localhost/res1' id='b6eb86a48bb1bbcb635a8ba5121dad10' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:45:04.828 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 out
<presence/>
*** User 2024-04-22 14:45:04.829 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 in
<presence from='bob_invite_online_user_to_room_1471@localhost/res1' to='bob_invite_online_user_to_room_1471@localhost/res1'/>
*** User 2024-04-22 14:45:04.833 ***🔗
REST request fails:
Code: 404
Req: {<0.42545.0>,<<"/api/mucs/localhost/wonderland-4.804017/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"33615e90f2f6e6fc">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_1471@localhost\",\"sender\":\"alice_invite_online_user_to_room_1471@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,998}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.804017/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_1471@localhost\",\"sender\":\"alice_invite_online_user_to_room_1471@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:04.844 ***🔗
REST request:
Code: 201
Req: {<0.42549.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fc3be3d225f5e3a6">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_1471@localhost\",\"name\":\"wonderland-4.804017\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-4.804017">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:04 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-4.804017">>,213,8469}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_1471@localhost\",\"name\":\"wonderland-4.804017\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:04.852 ***🔗
REST request:
Code: 204
Req: {<0.42557.0>,<<"/api/mucs/localhost/wonderland-4.804017/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d23b99f118cdb2d">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_1471@localhost\",\"sender\":\"alice_invite_online_user_to_room_1471@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:45:04 GMT">>}],
<<>>,80,1284}
Params: #{path => <<"/api/mucs/localhost/wonderland-4.804017/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_1471@localhost\",\"sender\":\"alice_invite_online_user_to_room_1471@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
return_headers => true}
*** User 2024-04-22 14:45:04.853 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 in
<message from='alice_invite_online_user_to_room_1471@localhost' to='bob_invite_online_user_to_room_1471@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-4.804017@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2024-04-22 14:45:04.853 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:45:04.853 ***🔗
bob_invite_online_user_to_room_1471@localhost/res1 in
</stream:stream>
*** User 2024-04-22 14:45:04.853 ***🔗
alice_invite_online_user_to_room_1471@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:45:04.858 ***🔗
alice_invite_online_user_to_room_1471@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 14:45:04
=== successfully completed test case
=== === Returned value: ok