=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.31639.1>},
{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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_19.31.44/muc_http_api_suite.invite_online_user_to_room.204418.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.muc_http_api_SUITE.logs/run.2023-11-13_19.31.44/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@1d8001dd39bd.2023-11-13_19.21.09"
=== Started at 2023-11-13 19:31:44
*** User 2023-11-13 19:31:44.353 ***🔗
alicE_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.353 ***🔗
alicE_invite_online_user_to_room_2558@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c08643db9914ab0d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:31:44.353 ***🔗
alicE_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.353 ***🔗
alicE_invite_online_user_to_room_2558@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzI1NTgAbWF0eWdyeXNh</auth>
*** User 2023-11-13 19:31:44.354 ***🔗
alicE_invite_online_user_to_room_2558@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-13 19:31:44.354 ***🔗
alicE_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.354 ***🔗
alicE_invite_online_user_to_room_2558@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f970be5f0162b09' from='domain.example.com' version='1.0' xml:lang='en' to='alice_invite_online_user_to_room_2558@domain.example.com'>
*** User 2023-11-13 19:31:44.354 ***🔗
alicE_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.355 ***🔗
alicE_invite_online_user_to_room_2558@domain.example.com/res1 out
<iq type='set' id='cae66a0c8f8d1e075008fb4ef667ce4e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-13 19:31:44.355 ***🔗
alicE_invite_online_user_to_room_2558@domain.example.com/res1 in
<iq id='cae66a0c8f8d1e075008fb4ef667ce4e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2558@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-13 19:31:44.355 ***🔗
alice_invite_online_user_to_room_2558@domain.example.com/res1 out
<iq type='set' id='38a218a308e04dd12f6edd4fd8ab65e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:31:44.355 ***🔗
alice_invite_online_user_to_room_2558@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_invite_online_user_to_room_2558@domain.example.com/res1' id='38a218a308e04dd12f6edd4fd8ab65e9' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:31:44.355 ***🔗
alice_invite_online_user_to_room_2558@domain.example.com/res1 out
<presence/>
*** User 2023-11-13 19:31:44.356 ***🔗
alice_invite_online_user_to_room_2558@domain.example.com/res1 in
<presence from='alice_invite_online_user_to_room_2558@domain.example.com/res1' to='alice_invite_online_user_to_room_2558@domain.example.com/res1'/>
*** User 2023-11-13 19:31:44.357 ***🔗
bOb_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.357 ***🔗
bOb_invite_online_user_to_room_2558@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dff47d6429c950ef' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:31:44.357 ***🔗
bOb_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.357 ***🔗
bOb_invite_online_user_to_room_2558@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yNTU4AG1ha3JvbGlrYQ==</auth>
*** User 2023-11-13 19:31:44.358 ***🔗
bOb_invite_online_user_to_room_2558@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-13 19:31:44.358 ***🔗
bOb_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.358 ***🔗
bOb_invite_online_user_to_room_2558@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f3fc16fdddd8ad4a' from='domain.example.com' version='1.0' xml:lang='en' to='bob_invite_online_user_to_room_2558@domain.example.com'>
*** User 2023-11-13 19:31:44.358 ***🔗
bOb_invite_online_user_to_room_2558@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 2023-11-13 19:31:44.358 ***🔗
bOb_invite_online_user_to_room_2558@domain.example.com/res1 out
<iq type='set' id='1cc5fb2262b11a06445996ab66b615e9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-13 19:31:44.358 ***🔗
bOb_invite_online_user_to_room_2558@domain.example.com/res1 in
<iq id='1cc5fb2262b11a06445996ab66b615e9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2558@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-13 19:31:44.358 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 out
<iq type='set' id='5ff6e9b5cbaeb7cb2ca3c5e8d077d7af'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:31:44.359 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_invite_online_user_to_room_2558@domain.example.com/res1' id='5ff6e9b5cbaeb7cb2ca3c5e8d077d7af' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:31:44.359 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 out
<presence/>
*** User 2023-11-13 19:31:44.360 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 in
<presence from='bob_invite_online_user_to_room_2558@domain.example.com/res1' to='bob_invite_online_user_to_room_2558@domain.example.com/res1'/>
*** User 2023-11-13 19:31:44.361 ***🔗
REST request fails:
Code: 404
Req: {<0.31698.1>,
<<"/api/mucs/domain.example.com/wonderland-4.344088/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"76d2e4c56b926faf">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_2558@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2558@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"16">>}],
<<"\"Room not found\"">>,140,540}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_2558@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2558@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-4.344088/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:44.363 ***🔗
REST request:
Code: 201
Req: {<0.31702.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"52736ed8a015ab15">>}],
<<"{\"owner\":\"alice_invite_online_user_to_room_2558@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-4.344088\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-4.344088">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:44 GMT">>},
{<<"content-type">>,<<"text/html">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-4.344088">>,222,1199}
Params: #{body =>
<<"{\"owner\":\"alice_invite_online_user_to_room_2558@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-4.344088\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:44.364 ***🔗
REST request:
Code: 204
Req: {<0.31706.1>,
<<"/api/mucs/domain.example.com/wonderland-4.344088/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"91615b202b399587">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_2558@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2558@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:31:44 GMT">>}],
<<>>,80,407}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_2558@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_2558@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-4.344088/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:31:44.365 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 in
<message from='alice_invite_online_user_to_room_2558@domain.example.com' to='bob_invite_online_user_to_room_2558@domain.example.com'>
<x xmlns='jabber:x:conference' jid='wonderland-4.344088@groupchats.domain.example.com' reason="I think you'll like this room!"/>
</message>
*** User 2023-11-13 19:31:44.365 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-13 19:31:44.365 ***🔗
bob_invite_online_user_to_room_2558@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-13 19:31:44.365 ***🔗
alice_invite_online_user_to_room_2558@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-13 19:31:44.366 ***🔗
alice_invite_online_user_to_room_2558@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-13 19:31:44
=== successfully completed test case
=== === Returned value: ok