=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.70220.0>},
{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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.46.38/muc_http_api_suite.invite_online_user_to_room.150787.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-16_09.46.38/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@079a843f8d8b.2023-11-16_09.33.39"
=== Started at 2023-11-16 09:46:39
*** User 2023-11-16 09:46:39.028 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:46:39.028 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4a874812e1d0fce0' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:46:39.028 ***🔗
alicE_invite_online_user_to_room_2681@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 2023-11-16 09:46:39.028 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI2ODEAbWF0eWdyeXNh</auth>
*** User 2023-11-16 09:46:39.029 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:46:39.029 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:46:39.030 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='063bbfa919491b01' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2681@localhost'>
*** User 2023-11-16 09:46:39.030 ***🔗
alicE_invite_online_user_to_room_2681@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 2023-11-16 09:46:39.030 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 out
<iq type='set' id='3b8c4d081024cbf46e02ca412806a740'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:46:39.030 ***🔗
alicE_invite_online_user_to_room_2681@localhost/res1 in
<iq id='3b8c4d081024cbf46e02ca412806a740' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2681@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:46:39.030 ***🔗
alice_invite_online_user_to_room_2681@localhost/res1 out
<iq type='set' id='6730b9b396a8939c8359ac37c89e1483'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:46:39.031 ***🔗
alice_invite_online_user_to_room_2681@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_2681@localhost/res1' id='6730b9b396a8939c8359ac37c89e1483' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:46:39.031 ***🔗
alice_invite_online_user_to_room_2681@localhost/res1 out
<presence/>
*** User 2023-11-16 09:46:39.032 ***🔗
alice_invite_online_user_to_room_2681@localhost/res1 in
<presence from='alice_invite_online_user_to_room_2681@localhost/res1' to='alice_invite_online_user_to_room_2681@localhost/res1'/>
*** User 2023-11-16 09:46:39.032 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:46:39.033 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='92f7f34ac50c2487' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-16 09:46:39.033 ***🔗
bOb_invite_online_user_to_room_2681@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 2023-11-16 09:46:39.033 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yNjgxAG1ha3JvbGlrYQ==</auth>
*** User 2023-11-16 09:46:39.034 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-16 09:46:39.034 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-16 09:46:39.034 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ff2f6553238b612' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2681@localhost'>
*** User 2023-11-16 09:46:39.034 ***🔗
bOb_invite_online_user_to_room_2681@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 2023-11-16 09:46:39.034 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 out
<iq type='set' id='b5f325b6c2914e3b82a02d74ed27f06f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-16 09:46:39.034 ***🔗
bOb_invite_online_user_to_room_2681@localhost/res1 in
<iq id='b5f325b6c2914e3b82a02d74ed27f06f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2681@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-16 09:46:39.034 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 out
<iq type='set' id='efc4e13ed5b849f6673dae6e8c331610'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:46:39.035 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_2681@localhost/res1' id='efc4e13ed5b849f6673dae6e8c331610' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-16 09:46:39.035 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 out
<presence/>
*** User 2023-11-16 09:46:39.036 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 in
<presence from='bob_invite_online_user_to_room_2681@localhost/res1' to='bob_invite_online_user_to_room_2681@localhost/res1'/>
*** User 2023-11-16 09:46:39.037 ***🔗
REST request fails:
Code: 404
Req: {<0.70279.0>,<<"/api/mucs/localhost/wonderland-99.18560/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"17383298a9f2a502">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2681@localhost\",\"sender\":\"alice_invite_online_user_to_room_2681@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:38 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,594}
Params: #{path => <<"/api/mucs/localhost/wonderland-99.18560/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2681@localhost\",\"sender\":\"alice_invite_online_user_to_room_2681@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:39.040 ***🔗
REST request:
Code: 201
Req: {<0.70283.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86fdb5cc935e7cb4">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2681@localhost\",\"name\":\"wonderland-99.18560\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-99.18560">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:38 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-99.18560">>,213,1654}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2681@localhost\",\"name\":\"wonderland-99.18560\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:39.042 ***🔗
REST request:
Code: 204
Req: {<0.70287.0>,<<"/api/mucs/localhost/wonderland-99.18560/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f42d077fca9b942">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2681@localhost\",\"sender\":\"alice_invite_online_user_to_room_2681@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 16 Nov 2023 09:46:38 GMT">>}],
<<>>,80,402}
Params: #{path => <<"/api/mucs/localhost/wonderland-99.18560/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2681@localhost\",\"sender\":\"alice_invite_online_user_to_room_2681@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
role => admin,return_headers => true}
*** User 2023-11-16 09:46:39.042 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 in
<message from='alice_invite_online_user_to_room_2681@localhost' to='bob_invite_online_user_to_room_2681@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-99.18560@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2023-11-16 09:46:39.042 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:46:39.043 ***🔗
bob_invite_online_user_to_room_2681@localhost/res1 in
</stream:stream>
*** User 2023-11-16 09:46:39.043 ***🔗
alice_invite_online_user_to_room_2681@localhost/res1 out
</stream:stream>
*** User 2023-11-16 09:46:39.043 ***🔗
alice_invite_online_user_to_room_2681@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-16 09:46:39
=== successfully completed test case
=== === Returned value: ok