=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.26465.1>},
{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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/muc_http_api_suite.failed_invites.141442.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-11_09.03.31/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@df370d24fb6d.2022-05-11_08.56.40"
=== Started at 2022-05-11 09:03:37
*** User 2022-05-11 09:03:37.307 ***
alicE_failed_invites_1900@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-11 09:03:37.308 ***
alicE_failed_invites_1900@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='79fb588f6197b8fd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.308 ***
alicE_failed_invites_1900@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-11 09:03:37.308 ***
alicE_failed_invites_1900@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE5MDAAbWF0eWdyeXNh</auth>
*** User 2022-05-11 09:03:37.309 ***
alicE_failed_invites_1900@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:03:37.309 ***
alicE_failed_invites_1900@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-11 09:03:37.310 ***
alicE_failed_invites_1900@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5cce786be0373a1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_invites_1900@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-11 09:03:37.310 ***
alicE_failed_invites_1900@domain.example.com/res1 out
<iq type='set' id='f30135822bf0753c43802f2fe2e6a8ae'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_invites_1900@domain.example.com/res1 in
<iq id='f30135822bf0753c43802f2fe2e6a8ae' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_1900@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:03:37.310 ***
alicE_failed_invites_1900@domain.example.com/res1 out
<iq type='set' id='f14e4114b4008dac802799cf99b9b22a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.311 ***
alicE_failed_invites_1900@domain.example.com/res1 in
<iq type='result' id='f14e4114b4008dac802799cf99b9b22a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.311 ***
alicE_failed_invites_1900@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:03:37.312 ***
alicE_failed_invites_1900@domain.example.com/res1 in
<presence from='alicE_failed_invites_1900@domain.example.com/res1' to='alice_failed_invites_1900@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:03:37.312 ***
bOb_failed_invites_1900@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-11 09:03:37.313 ***
bOb_failed_invites_1900@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d359a48593f1c435' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.313 ***
bOb_failed_invites_1900@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-11 09:03:37.313 ***
bOb_failed_invites_1900@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xOTAwAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-11 09:03:37.314 ***
bOb_failed_invites_1900@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-11 09:03:37.314 ***
bOb_failed_invites_1900@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-11 09:03:37.314 ***
bOb_failed_invites_1900@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f5d71064037a535' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-11 09:03:37.314 ***
bOb_failed_invites_1900@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-11 09:03:37.314 ***
bOb_failed_invites_1900@domain.example.com/res1 out
<iq type='set' id='9d966e202e4a018e147f8a1b55adc799'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_invites_1900@domain.example.com/res1 in
<iq id='9d966e202e4a018e147f8a1b55adc799' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_1900@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_invites_1900@domain.example.com/res1 out
<iq type='set' id='1527554604b4ace17eeec604918064ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_invites_1900@domain.example.com/res1 in
<iq type='result' id='1527554604b4ace17eeec604918064ef'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-11 09:03:37.315 ***
bOb_failed_invites_1900@domain.example.com/res1 out
<presence/>
*** User 2022-05-11 09:03:37.316 ***
bOb_failed_invites_1900@domain.example.com/res1 in
<presence from='bOb_failed_invites_1900@domain.example.com/res1' to='bob_failed_invites_1900@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-11 09:03:37.320 ***
REST request:
Code: 201
Req: {<0.26492.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c10de7ebc445b4c4">>}],
<<"{\"owner\":\"alicE_failed_invites_1900@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-17.300837\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-17.300837">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-17.300837">>,231,2331}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_1900@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-17.300837\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.322 ***
REST request fails:
Code: 404
Req: {<0.26496.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"138e0aa7c920333c">>}],
<<"{\"sender\":\"alicE_failed_invites_1900@domain.example.com\",\"recipient\":\"bOb_failed_invites_1900@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,968}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1900@domain.example.com\",\"recipient\":\"bOb_failed_invites_1900@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-11 09:03:37.324 ***
REST request fails:
Code: 400
Req: {<0.26500.1>,
<<"/api/mucs/domain.example.com/wonderland-17.300837/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3e14994f4bdb7ea">>}],
<<"{\"sender\":\"alicE_failed_invites_1900@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,744}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1900@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-17.300837/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.327 ***
REST request fails:
Code: 400
Req: {<0.26506.1>,
<<"/api/mucs/domain.example.com/wonderland-17.300837/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c8d81c809cf25ff7">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1900@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 11 May 2022 09:03:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,941}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1900@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-17.300837/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-11 09:03:37.327 ***
bOb_failed_invites_1900@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:03:37.327 ***
bOb_failed_invites_1900@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-11 09:03:37.327 ***
alicE_failed_invites_1900@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-11 09:03:37.327 ***
alicE_failed_invites_1900@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-11 09:03:37
=== successfully completed test case
=== === Returned value: ok