=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.2017.2>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@6949c6250523.2022-05-25_10.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.46.08/muc_http_api_suite.invite_online_user_to_room.131714.html"},
{tc_group_properties,[{name,positive},{repeat_until_all_ok,3},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@6949c6250523.2022-05-25_10.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.46.08/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@6949c6250523.2022-05-25_10.37.44"
=== Started at 2022-05-25 10:46:08
*** User 2022-05-25 10:46:08.856 ***
alicE_invite_online_user_to_room_2050@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:46:08.856 ***
alicE_invite_online_user_to_room_2050@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76ff583b15bf7318' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:08.856 ***
alicE_invite_online_user_to_room_2050@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:46:08.856 ***
alicE_invite_online_user_to_room_2050@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzIwNTAAbWF0eWdyeXNh</auth>
*** User 2022-05-25 10:46:08.857 ***
alicE_invite_online_user_to_room_2050@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:46:08.857 ***
alicE_invite_online_user_to_room_2050@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:46:08.857 ***
alicE_invite_online_user_to_room_2050@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3757d5a0b0deb921' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:08.857 ***
alicE_invite_online_user_to_room_2050@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:46:08.858 ***
alicE_invite_online_user_to_room_2050@localhost/res1 out
<iq type='set' id='02da74660e0e6207560522568ce25d16'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:46:08.858 ***
alicE_invite_online_user_to_room_2050@localhost/res1 in
<iq id='02da74660e0e6207560522568ce25d16' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_2050@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:46:08.858 ***
alice_invite_online_user_to_room_2050@localhost/res1 out
<iq type='set' id='3017c018700abfcf81b8945d0ff55d55'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:08.858 ***
alice_invite_online_user_to_room_2050@localhost/res1 in
<iq type='result' id='3017c018700abfcf81b8945d0ff55d55'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:08.858 ***
alice_invite_online_user_to_room_2050@localhost/res1 out
<presence/>
*** User 2022-05-25 10:46:08.859 ***
alice_invite_online_user_to_room_2050@localhost/res1 in
<presence from='alice_invite_online_user_to_room_2050@localhost/res1' to='alice_invite_online_user_to_room_2050@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:46:08.859 ***
bOb_invite_online_user_to_room_2050@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:46:08.860 ***
bOb_invite_online_user_to_room_2050@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce95ddbcae78d3e3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:08.860 ***
bOb_invite_online_user_to_room_2050@localhost/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:46:08.860 ***
bOb_invite_online_user_to_room_2050@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8yMDUwAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 10:46:08.861 ***
bOb_invite_online_user_to_room_2050@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:46:08.861 ***
bOb_invite_online_user_to_room_2050@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:46:08.861 ***
bOb_invite_online_user_to_room_2050@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='212dfb630d965e59' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:08.861 ***
bOb_invite_online_user_to_room_2050@localhost/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-05-25 10:46:08.861 ***
bOb_invite_online_user_to_room_2050@localhost/res1 out
<iq type='set' id='18b323ca4ad5f046fa2093dd4d468407'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:46:08.861 ***
bOb_invite_online_user_to_room_2050@localhost/res1 in
<iq id='18b323ca4ad5f046fa2093dd4d468407' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_2050@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:46:08.861 ***
bob_invite_online_user_to_room_2050@localhost/res1 out
<iq type='set' id='d65af0df1da53bac611a9e23301639d2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:08.862 ***
bob_invite_online_user_to_room_2050@localhost/res1 in
<iq type='result' id='d65af0df1da53bac611a9e23301639d2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:08.862 ***
bob_invite_online_user_to_room_2050@localhost/res1 out
<presence/>
*** User 2022-05-25 10:46:08.863 ***
bob_invite_online_user_to_room_2050@localhost/res1 in
<presence from='bob_invite_online_user_to_room_2050@localhost/res1' to='bob_invite_online_user_to_room_2050@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:46:08.865 ***
REST request fails:
Code: 404
Req: {<0.2089.2>,<<"/api/mucs/localhost/wonderland-68.849283/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c66e43e8b4d545bd">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_2050@localhost\",\"recipient\":\"bob_invite_online_user_to_room_2050@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,1271}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_2050@localhost\",\"recipient\":\"bob_invite_online_user_to_room_2050@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-68.849283/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:46:08.868 ***
REST request:
Code: 201
Req: {<0.2094.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"348aa488782c9a9e">>}],
<<"{\"owner\":\"alice_invite_online_user_to_room_2050@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-68.849283\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-68.849283">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-68.849283">>,222,2007}
Params: #{body =>
<<"{\"owner\":\"alice_invite_online_user_to_room_2050@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-68.849283\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:46:08.869 ***
REST request:
Code: 204
Req: {<0.2103.2>,<<"/api/mucs/localhost/wonderland-68.849283/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0e259627e3df4012">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_2050@localhost\",\"recipient\":\"bob_invite_online_user_to_room_2050@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:08 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,605}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_2050@localhost\",\"recipient\":\"bob_invite_online_user_to_room_2050@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-68.849283/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:46:08.869 ***
bob_invite_online_user_to_room_2050@localhost/res1 in
<message from='alice_invite_online_user_to_room_2050@localhost' to='bob_invite_online_user_to_room_2050@localhost'>
<x xmlns='jabber:x:conference' jid='wonderland-68.849283@muc.localhost' reason="I think you'll like this room!"/>
</message>
*** User 2022-05-25 10:46:08.869 ***
bob_invite_online_user_to_room_2050@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:46:08.869 ***
bob_invite_online_user_to_room_2050@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:46:08.869 ***
alice_invite_online_user_to_room_2050@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:46:08.870 ***
alice_invite_online_user_to_room_2050@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:46:08
=== successfully completed test case
=== === Returned value: ok