=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.1479.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-03_10.35.51/muc_http_api_suite.failed_invites.34435.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-03_10.35.51/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@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:35:57
*** User 2022-03-03 10:35:57.219 ***
alicE_failed_invites_948@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-03-03 10:35:57.220 ***
alicE_failed_invites_948@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9f2f549729281d14' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:35:57.220 ***
alicE_failed_invites_948@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>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-03 10:35:57.220 ***
alicE_failed_invites_948@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzk0OABtYXR5Z3J5c2E=</auth>
*** User 2022-03-03 10:35:57.221 ***
alicE_failed_invites_948@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:35:57.221 ***
alicE_failed_invites_948@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-03-03 10:35:57.221 ***
alicE_failed_invites_948@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ea22721f30b4e53' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:35:57.221 ***
alicE_failed_invites_948@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-03-03 10:35:57.221 ***
alicE_failed_invites_948@localhost/res1 out
<iq type='set' id='3aecfe12b3ddd459cafd23eb92aecd89'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:35:57.222 ***
alicE_failed_invites_948@localhost/res1 in
<iq id='3aecfe12b3ddd459cafd23eb92aecd89' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_948@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:35:57.222 ***
alicE_failed_invites_948@localhost/res1 out
<iq type='set' id='4c83a2d6842462272e0187bed6660749'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:35:57.222 ***
alicE_failed_invites_948@localhost/res1 in
<iq type='result' id='4c83a2d6842462272e0187bed6660749'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:35:57.222 ***
alicE_failed_invites_948@localhost/res1 out
<presence/>
*** User 2022-03-03 10:35:57.223 ***
alicE_failed_invites_948@localhost/res1 in
<presence from='alicE_failed_invites_948@localhost/res1' to='alice_failed_invites_948@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:35:57.223 ***
bOb_failed_invites_948@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-03-03 10:35:57.223 ***
bOb_failed_invites_948@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='62e52180908b0cf4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:35:57.224 ***
bOb_failed_invites_948@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>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-03 10:35:57.224 ***
bOb_failed_invites_948@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc185NDgAbWFrcm9saWth</auth>
*** User 2022-03-03 10:35:57.225 ***
bOb_failed_invites_948@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:35:57.225 ***
bOb_failed_invites_948@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-03-03 10:35:57.225 ***
bOb_failed_invites_948@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='866e75f1caa4f4aa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:35:57.225 ***
bOb_failed_invites_948@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-03-03 10:35:57.225 ***
bOb_failed_invites_948@localhost/res1 out
<iq type='set' id='0ff3050d2a2265a3c7f5ce44e0b09dab'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:35:57.225 ***
bOb_failed_invites_948@localhost/res1 in
<iq id='0ff3050d2a2265a3c7f5ce44e0b09dab' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_948@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:35:57.225 ***
bOb_failed_invites_948@localhost/res1 out
<iq type='set' id='877ee417e2bbe1cd91bacdbbff8856a6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:35:57.226 ***
bOb_failed_invites_948@localhost/res1 in
<iq type='result' id='877ee417e2bbe1cd91bacdbbff8856a6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:35:57.226 ***
bOb_failed_invites_948@localhost/res1 out
<presence/>
*** User 2022-03-03 10:35:57.226 ***
bOb_failed_invites_948@localhost/res1 in
<presence from='bOb_failed_invites_948@localhost/res1' to='bob_failed_invites_948@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:35:57.228 ***
REST request:
Code: 201
Req: {<0.1508.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"065054e3c73592c0">>}],
<<"{\"owner\":\"alicE_failed_invites_948@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-57.215076\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-57.215076">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:35:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-57.215076">>,222,1112}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_948@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-57.215076\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:35:57.230 ***
REST request fails:
Code: 404
Req: {<0.1510.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"59f7a4af14b9ff91">>}],
<<"{\"sender\":\"alicE_failed_invites_948@localhost\",\"recipient\":\"bOb_failed_invites_948@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:35:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,701}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_948@localhost\",\"recipient\":\"bOb_failed_invites_948@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:35:57.231 ***
REST request fails:
Code: 400
Req: {<0.1514.1>,<<"/api/mucs/localhost/wonderland-57.215076/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0360c325834eeb57">>}],
<<"{\"sender\":\"alicE_failed_invites_948@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:35:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,753}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_948@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-57.215076/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:35:57.233 ***
REST request fails:
Code: 400
Req: {<0.1518.1>,<<"/api/mucs/localhost/wonderland-57.215076/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"548567f4d10e2676">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_948@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:35:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,613}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_948@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-57.215076/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:35:57.233 ***
bOb_failed_invites_948@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:35:57.233 ***
bOb_failed_invites_948@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:35:57.233 ***
alicE_failed_invites_948@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:35:57.233 ***
alicE_failed_invites_948@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:35:57
=== successfully completed test case
=== === Returned value: ok