=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.2145.2>},
{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@6949c6250523.2022-05-25_10.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.46.08/muc_http_api_suite.failed_invites.131970.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@6949c6250523.2022-05-25_10.37.44/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.46.08/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@6949c6250523.2022-05-25_10.37.44"
=== Started at 2022-05-25 10:46:13
*** User 2022-05-25 10:46:13.988 ***
alicE_failed_invites_2053@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 10:46:13.988 ***
alicE_failed_invites_2053@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='daa1d6c92a7f6ea7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:13.988 ***
alicE_failed_invites_2053@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 10:46:13.988 ***
alicE_failed_invites_2053@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzIwNTMAbWF0eWdyeXNh</auth>
*** User 2022-05-25 10:46:13.989 ***
alicE_failed_invites_2053@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:46:13.989 ***
alicE_failed_invites_2053@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 10:46:13.990 ***
alicE_failed_invites_2053@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c309b1f56ddfc2d1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:13.990 ***
alicE_failed_invites_2053@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 10:46:13.990 ***
alicE_failed_invites_2053@localhost/res1 out
<iq type='set' id='d72a9e69e4b7af3e29e85e4c81def8bb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:46:13.990 ***
alicE_failed_invites_2053@localhost/res1 in
<iq id='d72a9e69e4b7af3e29e85e4c81def8bb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_invites_2053@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:46:13.990 ***
alice_failed_invites_2053@localhost/res1 out
<iq type='set' id='da87327e951b88c9aaded4e0af2751d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:13.990 ***
alice_failed_invites_2053@localhost/res1 in
<iq type='result' id='da87327e951b88c9aaded4e0af2751d8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:13.990 ***
alice_failed_invites_2053@localhost/res1 out
<presence/>
*** User 2022-05-25 10:46:13.992 ***
alice_failed_invites_2053@localhost/res1 in
<presence from='alice_failed_invites_2053@localhost/res1' to='alice_failed_invites_2053@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:46:13.992 ***
bOb_failed_invites_2053@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 10:46:13.993 ***
bOb_failed_invites_2053@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bd2c98eaf6854975' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:13.993 ***
bOb_failed_invites_2053@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 10:46:13.993 ***
bOb_failed_invites_2053@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18yMDUzAG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 10:46:13.993 ***
bOb_failed_invites_2053@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:46:13.994 ***
bOb_failed_invites_2053@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 10:46:13.994 ***
bOb_failed_invites_2053@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3a6d1001b8380c7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:46:13.994 ***
bOb_failed_invites_2053@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 10:46:13.994 ***
bOb_failed_invites_2053@localhost/res1 out
<iq type='set' id='b17808ce114aa66d4669bd8830a99e9f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:46:13.994 ***
bOb_failed_invites_2053@localhost/res1 in
<iq id='b17808ce114aa66d4669bd8830a99e9f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_invites_2053@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:46:13.994 ***
bob_failed_invites_2053@localhost/res1 out
<iq type='set' id='1f7dcde79646fc637261eaf602425690'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:13.994 ***
bob_failed_invites_2053@localhost/res1 in
<iq type='result' id='1f7dcde79646fc637261eaf602425690'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:46:13.994 ***
bob_failed_invites_2053@localhost/res1 out
<presence/>
*** User 2022-05-25 10:46:13.996 ***
bob_failed_invites_2053@localhost/res1 in
<presence from='bob_failed_invites_2053@localhost/res1' to='bob_failed_invites_2053@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:46:13.999 ***
REST request:
Code: 201
Req: {<0.2174.2>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9d7c7ed7e99f4989">>}],
<<"{\"owner\":\"alice_failed_invites_2053@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-73.983717\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-73.983717">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-73.983717">>,222,2132}
Params: #{body =>
<<"{\"owner\":\"alice_failed_invites_2053@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-73.983717\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:46:14.002 ***
REST request fails:
Code: 404
Req: {<0.2178.2>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"54f86b1bfbc93cb4">>}],
<<"{\"sender\":\"alice_failed_invites_2053@localhost\",\"recipient\":\"bob_failed_invites_2053@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,1302}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_2053@localhost\",\"recipient\":\"bob_failed_invites_2053@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 10:46:14.004 ***
REST request fails:
Code: 400
Req: {<0.2182.2>,<<"/api/mucs/localhost/wonderland-73.983717/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"744281231ec1b2c9">>}],
<<"{\"sender\":\"alice_failed_invites_2053@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,823}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_2053@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-73.983717/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:46:14.005 ***
REST request fails:
Code: 400
Req: {<0.2186.2>,<<"/api/mucs/localhost/wonderland-73.983717/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"19553df7f5e6bfba">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_2053@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:46:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,733}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_2053@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-73.983717/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:46:14.005 ***
bob_failed_invites_2053@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:46:14.006 ***
bob_failed_invites_2053@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:46:14.006 ***
alice_failed_invites_2053@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:46:14.006 ***
alice_failed_invites_2053@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:46:14
=== successfully completed test case
=== === Returned value: ok