=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.73901.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@08c829d1eb2f.2024-04-23_10.18.15/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_10.32.00/muc_http_api_suite.invite_online_user_to_room.155395.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@08c829d1eb2f.2024-04-23_10.18.15/big_tests.tests.muc_http_api_SUITE.logs/run.2024-04-23_10.32.00/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@08c829d1eb2f.2024-04-23_10.18.15"
=== Started at 2024-04-23 10:32:00
*** User 2024-04-23 10:32:00.554 ***🔗
alicE_invite_online_user_to_room_2962@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 10:32:00.555 ***🔗
alicE_invite_online_user_to_room_2962@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b82e7a5f9d4ddc5b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 10:32:00.555 ***🔗
alicE_invite_online_user_to_room_2962@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 10:32:00.555 ***🔗
alicE_invite_online_user_to_room_2962@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI5NjIAbWF0eWdyeXNh</auth>
*** User 2024-04-23 10:32:00.556 ***🔗
alicE_invite_online_user_to_room_2962@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 10:32:00.556 ***🔗
alicE_invite_online_user_to_room_2962@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 10:32:00.556 ***🔗
alicE_invite_online_user_to_room_2962@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='96e54d71d1313ff3' from='localhost' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2962@localhost'>
*** User 2024-04-23 10:32:00.556 ***🔗
alicE_invite_online_user_to_room_2962@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 10:32:00.556 ***🔗
alicE_invite_online_user_to_room_2962@localhost/res1 out
<iq type='set' id='f8d0effdffd9bd496c281e82620b5b98'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 10:32:00.557 ***🔗
alicE_invite_online_user_to_room_2962@localhost/res1 in
<iq id='f8d0effdffd9bd496c281e82620b5b98' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2962@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 10:32:00.557 ***🔗
alice_invite_online_user_to_room_2962@localhost/res1 out
<iq type='set' id='90dca78ef38a3c9d317e4ddb224b4d3f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 10:32:00.557 ***🔗
alice_invite_online_user_to_room_2962@localhost/res1 in
<iq from='localhost' to='alice_invite_online_user_to_room_2962@localhost/res1' id='90dca78ef38a3c9d317e4ddb224b4d3f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 10:32:00.557 ***🔗
alice_invite_online_user_to_room_2962@localhost/res1 out
<presence/>
*** User 2024-04-23 10:32:00.559 ***🔗
alice_invite_online_user_to_room_2962@localhost/res1 in
<presence from='alice_invite_online_user_to_room_2962@localhost/res1' to='alice_invite_online_user_to_room_2962@localhost/res1'/>
*** User 2024-04-23 10:32:00.559 ***🔗
bOb_invite_online_user_to_room_2962@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 10:32:00.560 ***🔗
bOb_invite_online_user_to_room_2962@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9c0eaf7bb3e51c0f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 10:32:00.560 ***🔗
bOb_invite_online_user_to_room_2962@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 10:32:00.560 ***🔗
bOb_invite_online_user_to_room_2962@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yOTYyAG1ha3JvbGlrYQ==</auth>
*** User 2024-04-23 10:32:00.561 ***🔗
bOb_invite_online_user_to_room_2962@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 10:32:00.561 ***🔗
bOb_invite_online_user_to_room_2962@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 10:32:00.561 ***🔗
bOb_invite_online_user_to_room_2962@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4eaf787b7c8a0143' from='localhost' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2962@localhost'>
*** User 2024-04-23 10:32:00.561 ***🔗
bOb_invite_online_user_to_room_2962@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 10:32:00.561 ***🔗
bOb_invite_online_user_to_room_2962@localhost/res1 out
<iq type='set' id='dd3b4867a2796a0260a15bb4b11485a9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 10:32:00.562 ***🔗
bOb_invite_online_user_to_room_2962@localhost/res1 in
<iq id='dd3b4867a2796a0260a15bb4b11485a9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2962@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 10:32:00.562 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 out
<iq type='set' id='ac8d5c18c6bdfe41e548ed8aabfde49e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 10:32:00.562 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 in
<iq from='localhost' to='bob_invite_online_user_to_room_2962@localhost/res1' id='ac8d5c18c6bdfe41e548ed8aabfde49e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 10:32:00.562 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 out
<presence/>
*** User 2024-04-23 10:32:00.563 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 in
<presence from='bob_invite_online_user_to_room_2962@localhost/res1' to='bob_invite_online_user_to_room_2962@localhost/res1'/>
*** User 2024-04-23 10:32:00.565 ***🔗
REST request fails:
Code: 404
Req: {<0.73961.0>,<<"/api/mucs/localhost/wonderland-20.545329/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a4c9cf746057121">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2962@localhost\",\"sender\":\"alice_invite_online_user_to_room_2962@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 10:31:59 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,646}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.545329/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2962@localhost\",\"sender\":\"alice_invite_online_user_to_room_2962@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
return_headers => true}
*** User 2024-04-23 10:32:00.571 ***🔗
REST request:
Code: 201
Req: {<0.73964.0>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b164f641b56f4eed">>}],
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2962@localhost\",\"name\":\"wonderland-20.545329\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-20.545329">>},
{<<"date">>,<<"Tue, 23 Apr 2024 10:31:59 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-20.545329">>,215,4091}
Params: #{path => <<"/api/mucs/localhost">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"nick\":\"ali\",\"owner\":\"alice_invite_online_user_to_room_2962@localhost\",\"name\":\"wonderland-20.545329\"}">>,
return_headers => true}
*** User 2024-04-23 10:32:00.572 ***🔗
REST request:
Code: 204
Req: {<0.73968.0>,<<"/api/mucs/localhost/wonderland-20.545329/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ab065de1f90e1611">>}],
<<"{\"recipient\":\"bob_invite_online_user_to_room_2962@localhost\",\"sender\":\"alice_invite_online_user_to_room_2962@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 10:31:59 GMT">>}],
<<>>,80,591}
Params: #{path => <<"/api/mucs/localhost/wonderland-20.545329/participants">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"POST">>,
body =>
<<"{\"recipient\":\"bob_invite_online_user_to_room_2962@localhost\",\"sender\":\"alice_invite_online_user_to_room_2962@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
return_headers => true}
*** User 2024-04-23 10:32:00.572 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 in
<message from='alice_invite_online_user_to_room_2962@localhost' to='bob_invite_online_user_to_room_2962@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-20.545329@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2024-04-23 10:32:00.573 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 out
</stream:stream>
*** User 2024-04-23 10:32:00.573 ***🔗
bob_invite_online_user_to_room_2962@localhost/res1 in
</stream:stream>
*** User 2024-04-23 10:32:00.573 ***🔗
alice_invite_online_user_to_room_2962@localhost/res1 out
</stream:stream>
*** User 2024-04-23 10:32:00.574 ***🔗
alice_invite_online_user_to_room_2962@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 10:32:00
=== successfully completed test case
=== === Returned value: ok