=== Test case: muc_http_api_SUITE:invite_online_user_to_room/1 (click for source code)
=== Config value:
[{watchdog,<0.26575.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.13/muc_http_api_suite.invite_online_user_to_room.129282.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.13/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@f0b09cc3aef4.2022-05-25_09.03.38"
=== Started at 2022-05-25 09:12:14
*** User 2022-05-25 09:12:14.113 ***
alicE_invite_online_user_to_room_1933@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 2022-05-25 09:12:14.114 ***
alicE_invite_online_user_to_room_1933@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa99126df630ec15' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:14.114 ***
alicE_invite_online_user_to_room_1933@domain.example.com/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 09:12:14.114 ***
alicE_invite_online_user_to_room_1933@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ludml0ZV9vbmxpbmVfdXNlcl90b19yb29tXzE5MzMAbWF0eWdyeXNh</auth>
*** User 2022-05-25 09:12:14.115 ***
alicE_invite_online_user_to_room_1933@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:14.115 ***
alicE_invite_online_user_to_room_1933@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 2022-05-25 09:12:14.115 ***
alicE_invite_online_user_to_room_1933@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6dfdf670c1153d86' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:14.115 ***
alicE_invite_online_user_to_room_1933@domain.example.com/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 09:12:14.115 ***
alicE_invite_online_user_to_room_1933@domain.example.com/res1 out
<iq type='set' id='55a09ea0a9541e2cc6f0a1ce4039a6be'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:14.115 ***
alicE_invite_online_user_to_room_1933@domain.example.com/res1 in
<iq id='55a09ea0a9541e2cc6f0a1ce4039a6be' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_invite_online_user_to_room_1933@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:14.116 ***
alice_invite_online_user_to_room_1933@domain.example.com/res1 out
<iq type='set' id='8b311fd329a6abd18c95d04eb86c74c4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:14.116 ***
alice_invite_online_user_to_room_1933@domain.example.com/res1 in
<iq type='result' id='8b311fd329a6abd18c95d04eb86c74c4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:14.116 ***
alice_invite_online_user_to_room_1933@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:12:14.117 ***
alice_invite_online_user_to_room_1933@domain.example.com/res1 in
<presence from='alice_invite_online_user_to_room_1933@domain.example.com/res1' to='alice_invite_online_user_to_room_1933@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:14.118 ***
bOb_invite_online_user_to_room_1933@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 2022-05-25 09:12:14.118 ***
bOb_invite_online_user_to_room_1933@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='864583da9a834b00' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:14.118 ***
bOb_invite_online_user_to_room_1933@domain.example.com/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 09:12:14.118 ***
bOb_invite_online_user_to_room_1933@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9pbnZpdGVfb25saW5lX3VzZXJfdG9fcm9vbV8xOTMzAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 09:12:14.119 ***
bOb_invite_online_user_to_room_1933@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:14.119 ***
bOb_invite_online_user_to_room_1933@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 2022-05-25 09:12:14.120 ***
bOb_invite_online_user_to_room_1933@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9373f0e43d04e2b2' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:14.120 ***
bOb_invite_online_user_to_room_1933@domain.example.com/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 09:12:14.120 ***
bOb_invite_online_user_to_room_1933@domain.example.com/res1 out
<iq type='set' id='4882c66d36b2dbb03426419249180939'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:14.120 ***
bOb_invite_online_user_to_room_1933@domain.example.com/res1 in
<iq id='4882c66d36b2dbb03426419249180939' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_invite_online_user_to_room_1933@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:14.120 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 out
<iq type='set' id='e84a628ef2cf73a98f106b0da0cc2dfb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:14.120 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 in
<iq type='result' id='e84a628ef2cf73a98f106b0da0cc2dfb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:14.120 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:12:14.122 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 in
<presence from='bob_invite_online_user_to_room_1933@domain.example.com/res1' to='bob_invite_online_user_to_room_1933@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:14.124 ***
REST request fails:
Code: 404
Req: {<0.26644.1>,
<<"/api/mucs/domain.example.com/wonderland-34.103679/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a54d937e06c54e4b">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_1933@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_1933@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,925}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_1933@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_1933@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-34.103679/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:14.127 ***
REST request:
Code: 201
Req: {<0.26647.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e4229a5467c62439">>}],
<<"{\"owner\":\"alice_invite_online_user_to_room_1933@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-34.103679\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-34.103679">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-34.103679">>,231,2012}
Params: #{body =>
<<"{\"owner\":\"alice_invite_online_user_to_room_1933@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-34.103679\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:14.128 ***
REST request:
Code: 204
Req: {<0.26652.1>,
<<"/api/mucs/domain.example.com/wonderland-34.103679/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"50d4d3da47eab496">>}],
<<"{\"sender\":\"alice_invite_online_user_to_room_1933@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_1933@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:13 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,580}
Params: #{body =>
<<"{\"sender\":\"alice_invite_online_user_to_room_1933@domain.example.com\",\"recipient\":\"bob_invite_online_user_to_room_1933@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-34.103679/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:14.128 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 in
<message from='alice_invite_online_user_to_room_1933@domain.example.com' to='bob_invite_online_user_to_room_1933@domain.example.com'>
<x xmlns='jabber:x:conference' jid='wonderland-34.103679@groupchats.domain.example.com' reason="I think you'll like this room!"/>
</message>
*** User 2022-05-25 09:12:14.129 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:12:14.129 ***
bob_invite_online_user_to_room_1933@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-25 09:12:14.129 ***
alice_invite_online_user_to_room_1933@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:12:14.129 ***
alice_invite_online_user_to_room_1933@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-25 09:12:14
=== successfully completed test case
=== === Returned value: ok