=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.12207.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"elasticsearch_and_cassandra_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1d2c55569403.2022-05-25_09.03.50/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.49/muc_http_api_suite.failed_invites.67586.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@1d2c55569403.2022-05-25_09.03.50/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_09.12.49/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@1d2c55569403.2022-05-25_09.03.50"
=== Started at 2022-05-25 09:12:55
*** User 2022-05-25 09:12:55.190 ***
alicE_failed_invites_1228@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-05-25 09:12:55.190 ***
alicE_failed_invites_1228@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8a92e2980b6631bb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.190 ***
alicE_failed_invites_1228@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>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:55.191 ***
alicE_failed_invites_1228@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzEyMjgAbWF0eWdyeXNh</auth>
*** User 2022-05-25 09:12:55.191 ***
alicE_failed_invites_1228@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:55.191 ***
alicE_failed_invites_1228@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-05-25 09:12:55.192 ***
alicE_failed_invites_1228@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='78316357310f71d2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.192 ***
alicE_failed_invites_1228@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-05-25 09:12:55.192 ***
alicE_failed_invites_1228@localhost/res1 out
<iq type='set' id='52d731275998b57952a9bce1db94570e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alicE_failed_invites_1228@localhost/res1 in
<iq id='52d731275998b57952a9bce1db94570e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_invites_1228@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alice_failed_invites_1228@localhost/res1 out
<iq type='set' id='941fe934c2ed4fa9176b862a500053fe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alice_failed_invites_1228@localhost/res1 in
<iq type='result' id='941fe934c2ed4fa9176b862a500053fe'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.192 ***
alice_failed_invites_1228@localhost/res1 out
<presence/>
*** User 2022-05-25 09:12:55.193 ***
alice_failed_invites_1228@localhost/res1 in
<presence from='alice_failed_invites_1228@localhost/res1' to='alice_failed_invites_1228@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:55.194 ***
bOb_failed_invites_1228@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-05-25 09:12:55.194 ***
bOb_failed_invites_1228@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1df552878e97a074' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.194 ***
bOb_failed_invites_1228@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>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:55.194 ***
bOb_failed_invites_1228@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xMjI4AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 09:12:55.195 ***
bOb_failed_invites_1228@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 09:12:55.195 ***
bOb_failed_invites_1228@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-05-25 09:12:55.195 ***
bOb_failed_invites_1228@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0e8ab5e9791c762' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 09:12:55.195 ***
bOb_failed_invites_1228@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-05-25 09:12:55.195 ***
bOb_failed_invites_1228@localhost/res1 out
<iq type='set' id='b2b920fc83ae0143d31257c688b9a1a0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bOb_failed_invites_1228@localhost/res1 in
<iq id='b2b920fc83ae0143d31257c688b9a1a0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_invites_1228@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bob_failed_invites_1228@localhost/res1 out
<iq type='set' id='8debd9c4ccbc49a5509d5acd0b6f10d4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bob_failed_invites_1228@localhost/res1 in
<iq type='result' id='8debd9c4ccbc49a5509d5acd0b6f10d4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 09:12:55.196 ***
bob_failed_invites_1228@localhost/res1 out
<presence/>
*** User 2022-05-25 09:12:55.197 ***
bob_failed_invites_1228@localhost/res1 in
<presence from='bob_failed_invites_1228@localhost/res1' to='bob_failed_invites_1228@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 09:12:55.199 ***
REST request:
Code: 201
Req: {<0.12236.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d2283d3bedf3858f">>}],
<<"{\"owner\":\"alice_failed_invites_1228@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-75.185608\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-75.185608">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-75.185608">>,222,1251}
Params: #{body =>
<<"{\"owner\":\"alice_failed_invites_1228@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-75.185608\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:55.201 ***
REST request fails:
Code: 404
Req: {<0.12238.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3802f2ba675bd464">>}],
<<"{\"sender\":\"alice_failed_invites_1228@localhost\",\"recipient\":\"bob_failed_invites_1228@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,844}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1228@localhost\",\"recipient\":\"bob_failed_invites_1228@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-05-25 09:12:55.203 ***
REST request fails:
Code: 400
Req: {<0.12242.1>,<<"/api/mucs/localhost/wonderland-75.185608/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2889cd32f6f11f1c">>}],
<<"{\"sender\":\"alice_failed_invites_1228@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,850}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1228@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-75.185608/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:55.205 ***
REST request fails:
Code: 400
Req: {<0.12246.1>,<<"/api/mucs/localhost/wonderland-75.185608/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"25495d1e67a5d272">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1228@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 09:12:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,857}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1228@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-75.185608/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 09:12:55.205 ***
bob_failed_invites_1228@localhost/res1 out
</stream:stream>
*** User 2022-05-25 09:12:55.205 ***
bob_failed_invites_1228@localhost/res1 in
</stream:stream>
*** User 2022-05-25 09:12:55.206 ***
alice_failed_invites_1228@localhost/res1 out
</stream:stream>
*** User 2022-05-25 09:12:55.206 ***
alice_failed_invites_1228@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 09:12:55
=== successfully completed test case
=== === Returned value: ok