=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.9304.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.48.34/muc_http_api_suite.failed_invites.61186.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-25_10.48.34/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@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:48:39
*** User 2022-05-25 10:48:39.908 ***
alicE_failed_invites_1194@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:48:39.909 ***
alicE_failed_invites_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bbbd77a7588864f0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:39.909 ***
alicE_failed_invites_1194@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:48:39.909 ***
alicE_failed_invites_1194@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzExOTQAbWF0eWdyeXNh</auth>
*** User 2022-05-25 10:48:39.910 ***
alicE_failed_invites_1194@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:48:39.911 ***
alicE_failed_invites_1194@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:48:39.911 ***
alicE_failed_invites_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f77ff6ebc30e42b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:39.911 ***
alicE_failed_invites_1194@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:48:39.911 ***
alicE_failed_invites_1194@localhost/res1 out
<iq type='set' id='d73dfabbcae60a93a4082c2a3b122f6a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:48:39.911 ***
alicE_failed_invites_1194@localhost/res1 in
<iq id='d73dfabbcae60a93a4082c2a3b122f6a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_invites_1194@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:48:39.911 ***
alice_failed_invites_1194@localhost/res1 out
<iq type='set' id='a1ad231ab7834d81068c6a265e9e1c81'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:39.911 ***
alice_failed_invites_1194@localhost/res1 in
<iq type='result' id='a1ad231ab7834d81068c6a265e9e1c81'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:39.912 ***
alice_failed_invites_1194@localhost/res1 out
<presence/>
*** User 2022-05-25 10:48:39.913 ***
alice_failed_invites_1194@localhost/res1 in
<presence from='alice_failed_invites_1194@localhost/res1' to='alice_failed_invites_1194@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:48:39.914 ***
bOb_failed_invites_1194@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:48:39.914 ***
bOb_failed_invites_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ba3ab8925adcb187' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:39.914 ***
bOb_failed_invites_1194@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:48:39.914 ***
bOb_failed_invites_1194@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xMTk0AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-25 10:48:39.915 ***
bOb_failed_invites_1194@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:48:39.916 ***
bOb_failed_invites_1194@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:48:39.916 ***
bOb_failed_invites_1194@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d24a41e61d23bfa8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:48:39.916 ***
bOb_failed_invites_1194@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:48:39.916 ***
bOb_failed_invites_1194@localhost/res1 out
<iq type='set' id='7214a9232ef6806d5c331a5cfd9e4ff9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:48:39.916 ***
bOb_failed_invites_1194@localhost/res1 in
<iq id='7214a9232ef6806d5c331a5cfd9e4ff9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_invites_1194@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:48:39.916 ***
bob_failed_invites_1194@localhost/res1 out
<iq type='set' id='dd2bef6621d6596aecb789ad1fcd4d38'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:39.916 ***
bob_failed_invites_1194@localhost/res1 in
<iq type='result' id='dd2bef6621d6596aecb789ad1fcd4d38'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:48:39.917 ***
bob_failed_invites_1194@localhost/res1 out
<presence/>
*** User 2022-05-25 10:48:39.920 ***
bob_failed_invites_1194@localhost/res1 in
<presence from='bob_failed_invites_1194@localhost/res1' to='bob_failed_invites_1194@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:48:39.923 ***
REST request:
Code: 201
Req: {<0.9333.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb99e57effed89a8">>}],
<<"{\"owner\":\"alice_failed_invites_1194@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-19.900405\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-19.900405">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-19.900405">>,222,2117}
Params: #{body =>
<<"{\"owner\":\"alice_failed_invites_1194@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-19.900405\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:39.925 ***
REST request fails:
Code: 404
Req: {<0.9337.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2bf5aab390d5c6fb">>}],
<<"{\"sender\":\"alice_failed_invites_1194@localhost\",\"recipient\":\"bob_failed_invites_1194@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,667}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1194@localhost\",\"recipient\":\"bob_failed_invites_1194@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:48:39.926 ***
REST request fails:
Code: 400
Req: {<0.9341.1>,<<"/api/mucs/localhost/wonderland-19.900405/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b190461b22c710e">>}],
<<"{\"sender\":\"alice_failed_invites_1194@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,575}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1194@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-19.900405/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:39.928 ***
REST request fails:
Code: 400
Req: {<0.9345.1>,<<"/api/mucs/localhost/wonderland-19.900405/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6dd8eee9faf67a39">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1194@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:48:39 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,772}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1194@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-19.900405/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:48:39.928 ***
bob_failed_invites_1194@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:48:39.928 ***
bob_failed_invites_1194@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:48:39.928 ***
alice_failed_invites_1194@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:48:39.928 ***
alice_failed_invites_1194@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:48:39
=== successfully completed test case
=== === Returned value: ok