=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.26701.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.failed_invites.129922.html"},
{tc_group_properties,[{name,negative},{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:19
*** User 2022-05-25 09:12:19.293 ***
alicE_failed_invites_1937@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:19.293 ***
alicE_failed_invites_1937@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa82c1b8f56b2acf' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.293 ***
alicE_failed_invites_1937@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:19.293 ***
alicE_failed_invites_1937@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE5MzcAbWF0eWdyeXNh</auth>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_invites_1937@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_invites_1937@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:19.295 ***
alicE_failed_invites_1937@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1c18c0e8acde5861' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_invites_1937@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:19.295 ***
alicE_failed_invites_1937@domain.example.com/res1 out
<iq type='set' id='56dd746cf488ea0c2c133ffec176df8c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:19.295 ***
alicE_failed_invites_1937@domain.example.com/res1 in
<iq id='56dd746cf488ea0c2c133ffec176df8c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_invites_1937@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:19.296 ***
alice_failed_invites_1937@domain.example.com/res1 out
<iq type='set' id='c1686a0ca4414ce0db778b4a6b2c18fb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.296 ***
alice_failed_invites_1937@domain.example.com/res1 in
<iq type='result' id='c1686a0ca4414ce0db778b4a6b2c18fb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.296 ***
alice_failed_invites_1937@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:12:19.297 ***
alice_failed_invites_1937@domain.example.com/res1 in
<presence from='alice_failed_invites_1937@domain.example.com/res1' to='alice_failed_invites_1937@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:19.298 ***
bOb_failed_invites_1937@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:19.298 ***
bOb_failed_invites_1937@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='842b5308039492e3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.298 ***
bOb_failed_invites_1937@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:19.298 ***
bOb_failed_invites_1937@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xOTM3AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 09:12:19.300 ***
bOb_failed_invites_1937@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:19.300 ***
bOb_failed_invites_1937@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:19.300 ***
bOb_failed_invites_1937@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0cf090c54e48d11b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:19.300 ***
bOb_failed_invites_1937@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:19.300 ***
bOb_failed_invites_1937@domain.example.com/res1 out
<iq type='set' id='11f758cc616fc181f3e305f672864d05'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:19.300 ***
bOb_failed_invites_1937@domain.example.com/res1 in
<iq id='11f758cc616fc181f3e305f672864d05' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_invites_1937@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:19.300 ***
bob_failed_invites_1937@domain.example.com/res1 out
<iq type='set' id='270e654dae013974a9ee4857a8a3b23f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.301 ***
bob_failed_invites_1937@domain.example.com/res1 in
<iq type='result' id='270e654dae013974a9ee4857a8a3b23f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:19.301 ***
bob_failed_invites_1937@domain.example.com/res1 out
<presence/>
*** User 2022-05-25 09:12:19.302 ***
bob_failed_invites_1937@domain.example.com/res1 in
<presence from='bob_failed_invites_1937@domain.example.com/res1' to='bob_failed_invites_1937@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:19.305 ***
REST request:
Code: 201
Req: {<0.26730.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d65aca63c36a725a">>}],
<<"{\"owner\":\"alice_failed_invites_1937@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-39.274007\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-39.274007">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-39.274007">>,231,1982}
Params: #{body =>
<<"{\"owner\":\"alice_failed_invites_1937@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-39.274007\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.306 ***
REST request fails:
Code: 404
Req: {<0.26734.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6d310251bd55e272">>}],
<<"{\"sender\":\"alice_failed_invites_1937@domain.example.com\",\"recipient\":\"bob_failed_invites_1937@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,623}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1937@domain.example.com\",\"recipient\":\"bob_failed_invites_1937@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.308 ***
REST request fails:
Code: 400
Req: {<0.26738.1>,
<<"/api/mucs/domain.example.com/wonderland-39.274007/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dc88e1e8cdd92c71">>}],
<<"{\"sender\":\"alice_failed_invites_1937@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,670}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1937@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-39.274007/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.310 ***
REST request fails:
Code: 400
Req: {<0.26742.1>,
<<"/api/mucs/domain.example.com/wonderland-39.274007/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d28fc1dc31533957">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1937@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:19 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,751}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1937@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-39.274007/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:19.311 ***
bob_failed_invites_1937@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:12:19.311 ***
bob_failed_invites_1937@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-25 09:12:19.311 ***
alice_failed_invites_1937@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-25 09:12:19.311 ***
alice_failed_invites_1937@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-25 09:12:19
=== successfully completed test case
=== === Returned value: ok