=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.67857.0>},
{preset,"mysql_redis"},
{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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.21.10/muc_http_api_suite.invite_online_user_to_room.229250.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@699c7e574a5d.2024-04-26_13.09.59/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-26_13.21.10/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@699c7e574a5d.2024-04-26_13.09.59"
=== Started at 2024-04-26 13:21:10
*** User 2024-04-26 13:21:10.526 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 13:21:10.526 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='967b6205fd5d58b7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:21:10.526 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/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-26 13:21:10.526 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI2ODMAbWF0eWdyeXNh</auth>
*** User 2024-04-26 13:21:10.527 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:21:10.527 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 13:21:10.527 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce621fe3858ac64d' from='domain.example.com' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2683@domain.example.com'>
*** User 2024-04-26 13:21:10.527 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/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-26 13:21:10.527 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 out
<iq type='set' id='dd5440bca0ef3d9e29ea341ec2075ec8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:21:10.527 ***🔗
alicE_invite_online_user_to_room_2683@domain.example.com/res1 in
<iq id='dd5440bca0ef3d9e29ea341ec2075ec8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2683@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:21:10.527 ***🔗
alice_invite_online_user_to_room_2683@domain.example.com/res1 out
<iq type='set' id='fcb33497078aa6ddad40d37316e82cbe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:21:10.528 ***🔗
alice_invite_online_user_to_room_2683@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_invite_online_user_to_room_2683@domain.example.com/res1' id='fcb33497078aa6ddad40d37316e82cbe' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:21:10.528 ***🔗
alice_invite_online_user_to_room_2683@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:21:10.529 ***🔗
alice_invite_online_user_to_room_2683@domain.example.com/res1 in
<presence from='alice_invite_online_user_to_room_2683@domain.example.com/res1' to='alice_invite_online_user_to_room_2683@domain.example.com/res1'/>
*** User 2024-04-26 13:21:10.530 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 13:21:10.530 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ee5e5f66a9cb311' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:21:10.530 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/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-26 13:21:10.530 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yNjgzAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-26 13:21:10.530 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:21:10.531 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 13:21:10.531 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b2c59fb0533e00b7' from='domain.example.com' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2683@domain.example.com'>
*** User 2024-04-26 13:21:10.531 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/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-26 13:21:10.531 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 out
<iq type='set' id='3ccf0046ae655a457c6e90e20094f2a2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:21:10.531 ***🔗
bOb_invite_online_user_to_room_2683@domain.example.com/res1 in
<iq id='3ccf0046ae655a457c6e90e20094f2a2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2683@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:21:10.531 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 out
<iq type='set' id='6c5fdb2d04b67f4929c63cf4a82d2506'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:21:10.532 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_invite_online_user_to_room_2683@domain.example.com/res1' id='6c5fdb2d04b67f4929c63cf4a82d2506' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:21:10.532 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:21:10.533 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 in
<presence from='bob_invite_online_user_to_room_2683@domain.example.com/res1' to='bob_invite_online_user_to_room_2683@domain.example.com/res1'/>
*** User 2024-04-26 13:21:10.534 ***🔗
REST request fails:
Code: 404
Req: {<0.67917.0>,
<<"/api/mucs/domain.example.com/wonderland-70.512056/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"baec4ae4ddf3b4bf">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_2683@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2683@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,567}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-70.512056/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_2683@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2683@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:10.537 ***🔗
REST request:
Code: 201
Req: {<0.67921.0>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fdfce69284d6725f">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2683@domain.example.com\",\"name\":\"wonderland-70.512056\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-70.512056">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:10 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-70.512056">>,224,2097}
Params: #{path => <<"/api/mucs/domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2683@domain.example.com\",\"name\":\"wonderland-70.512056\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:10.538 ***🔗
REST request:
Code: 204
Req: {<0.67927.0>,
<<"/api/mucs/domain.example.com/wonderland-70.512056/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"543d63c3fd1bad16">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_2683@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2683@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:21:10 GMT">>}],
<<>>,80,448}
Params: #{path =>
<<"/api/mucs/domain.example.com/wonderland-70.512056/participants">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_2683@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2683@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
return_headers => true}
*** User 2024-04-26 13:21:10.538 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 in
<message from='alice_invite_online_user_to_room_2683@domain.example.com' to='bob_invite_online_user_to_room_2683@domain.example.com'>
<x xmlns='jabber:x:conference' jid='wonderland-70.512056@groupchats.domain.example.com' reason="I think you'll like this room!"/>
</message>
*** User 2024-04-26 13:21:10.538 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:21:10.539 ***🔗
bob_invite_online_user_to_room_2683@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-26 13:21:10.539 ***🔗
alice_invite_online_user_to_room_2683@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:21:10.539 ***🔗
alice_invite_online_user_to_room_2683@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-26 13:21:10
=== successfully completed test case
=== === Returned value: ok