=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.20993.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-04_11.23.59/muc_http_api_suite.failed_invites.32389.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-04_11.23.59/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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:24:05
*** User 2022-03-04 11:24:05.241 ***
alicE_failed_invites_1700@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-03-04 11:24:05.241 ***
alicE_failed_invites_1700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4988d8bb4ceb9ff1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:05.241 ***
alicE_failed_invites_1700@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-03-04 11:24:05.241 ***
alicE_failed_invites_1700@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE3MDAAbWF0eWdyeXNh</auth>
*** User 2022-03-04 11:24:05.242 ***
alicE_failed_invites_1700@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:05.243 ***
alicE_failed_invites_1700@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-03-04 11:24:05.243 ***
alicE_failed_invites_1700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e277cf381b0fabf6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:05.243 ***
alicE_failed_invites_1700@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-03-04 11:24:05.243 ***
alicE_failed_invites_1700@domain.example.com/res1 out
<iq type='set' id='e9c1b5c3951ffee94de18b3b65b85a47'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:05.243 ***
alicE_failed_invites_1700@domain.example.com/res1 in
<iq id='e9c1b5c3951ffee94de18b3b65b85a47' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_1700@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:05.243 ***
alicE_failed_invites_1700@domain.example.com/res1 out
<iq type='set' id='652de7b43da1b5ffeabb9e444905728f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:05.244 ***
alicE_failed_invites_1700@domain.example.com/res1 in
<iq type='result' id='652de7b43da1b5ffeabb9e444905728f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:05.244 ***
alicE_failed_invites_1700@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:05.245 ***
alicE_failed_invites_1700@domain.example.com/res1 in
<presence from='alicE_failed_invites_1700@domain.example.com/res1' to='alice_failed_invites_1700@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:05.245 ***
bOb_failed_invites_1700@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-03-04 11:24:05.246 ***
bOb_failed_invites_1700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81b1ea6972d630de' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:05.246 ***
bOb_failed_invites_1700@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-03-04 11:24:05.246 ***
bOb_failed_invites_1700@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xNzAwAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-04 11:24:05.247 ***
bOb_failed_invites_1700@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:24:05.247 ***
bOb_failed_invites_1700@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-03-04 11:24:05.247 ***
bOb_failed_invites_1700@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='01cbf30c4d26f0d7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:24:05.247 ***
bOb_failed_invites_1700@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-03-04 11:24:05.247 ***
bOb_failed_invites_1700@domain.example.com/res1 out
<iq type='set' id='11c483cb78c337f9e477d4e0b5524750'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:24:05.247 ***
bOb_failed_invites_1700@domain.example.com/res1 in
<iq id='11c483cb78c337f9e477d4e0b5524750' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_1700@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:24:05.247 ***
bOb_failed_invites_1700@domain.example.com/res1 out
<iq type='set' id='f977b9a454bd15f7e507c49d6c3055bd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:05.248 ***
bOb_failed_invites_1700@domain.example.com/res1 in
<iq type='result' id='f977b9a454bd15f7e507c49d6c3055bd'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:24:05.248 ***
bOb_failed_invites_1700@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:24:05.249 ***
bOb_failed_invites_1700@domain.example.com/res1 in
<presence from='bOb_failed_invites_1700@domain.example.com/res1' to='bob_failed_invites_1700@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:24:05.252 ***
REST request:
Code: 201
Req: {<0.21020.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a688d2389a2fcc9d">>}],
<<"{\"owner\":\"alicE_failed_invites_1700@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-45.195310\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-45.195310">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:24:04 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-45.195310">>,231,1890}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_1700@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-45.195310\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:24:05.255 ***
REST request fails:
Code: 404
Req: {<0.21024.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"834aec5e0500ab25">>}],
<<"{\"sender\":\"alicE_failed_invites_1700@domain.example.com\",\"recipient\":\"bOb_failed_invites_1700@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:24:04 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,722}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1700@domain.example.com\",\"recipient\":\"bOb_failed_invites_1700@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-03-04 11:24:05.256 ***
REST request fails:
Code: 400
Req: {<0.21028.1>,
<<"/api/mucs/domain.example.com/wonderland-45.195310/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6fee7c1115a9acc8">>}],
<<"{\"sender\":\"alicE_failed_invites_1700@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:24:04 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,629}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1700@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-45.195310/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:24:05.258 ***
REST request fails:
Code: 400
Req: {<0.21032.1>,
<<"/api/mucs/domain.example.com/wonderland-45.195310/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3fb1932fd3961966">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1700@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:24:04 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,579}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1700@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-45.195310/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:24:05.258 ***
bOb_failed_invites_1700@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:05.258 ***
bOb_failed_invites_1700@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:24:05.258 ***
alicE_failed_invites_1700@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:24:05.259 ***
alicE_failed_invites_1700@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:24:05
=== successfully completed test case
=== === Returned value: ok