=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.31478.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-04_15.12.16/muc_http_api_suite.failed_invites.148098.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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.muc_http_api_SUITE.logs/run.2022-04-04_15.12.16/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@cb94372a8ea7.2022-04-04_15.02.36"
=== Started at 2022-04-04 15:12:22
*** User 2022-04-04 15:12:22.114 ***
alicE_failed_invites_1968@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-04-04 15:12:22.114 ***
alicE_failed_invites_1968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88b377049699a859' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:12:22.114 ***
alicE_failed_invites_1968@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-04-04 15:12:22.114 ***
alicE_failed_invites_1968@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE5NjgAbWF0eWdyeXNh</auth>
*** User 2022-04-04 15:12:22.115 ***
alicE_failed_invites_1968@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:12:22.115 ***
alicE_failed_invites_1968@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-04-04 15:12:22.115 ***
alicE_failed_invites_1968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='50a43f3e633597c2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:12:22.115 ***
alicE_failed_invites_1968@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-04-04 15:12:22.115 ***
alicE_failed_invites_1968@localhost/res1 out
<iq type='set' id='e28b8bdf9bd6a49ac2956f9972fcfac6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:12:22.116 ***
alicE_failed_invites_1968@localhost/res1 in
<iq id='e28b8bdf9bd6a49ac2956f9972fcfac6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_1968@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:12:22.116 ***
alicE_failed_invites_1968@localhost/res1 out
<iq type='set' id='a2a2f6759e128dade9480859cea4be59'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:12:22.116 ***
alicE_failed_invites_1968@localhost/res1 in
<iq type='result' id='a2a2f6759e128dade9480859cea4be59'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:12:22.116 ***
alicE_failed_invites_1968@localhost/res1 out
<presence/>
*** User 2022-04-04 15:12:22.117 ***
alicE_failed_invites_1968@localhost/res1 in
<presence from='alicE_failed_invites_1968@localhost/res1' to='alice_failed_invites_1968@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:12:22.118 ***
bOb_failed_invites_1968@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-04-04 15:12:22.118 ***
bOb_failed_invites_1968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e9d86b4441662655' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:12:22.118 ***
bOb_failed_invites_1968@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-04-04 15:12:22.119 ***
bOb_failed_invites_1968@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xOTY4AG1ha3JvbGlrYQ==</auth>
*** User 2022-04-04 15:12:22.120 ***
bOb_failed_invites_1968@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:12:22.120 ***
bOb_failed_invites_1968@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-04-04 15:12:22.120 ***
bOb_failed_invites_1968@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a0498bb5c064dc7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:12:22.120 ***
bOb_failed_invites_1968@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-04-04 15:12:22.120 ***
bOb_failed_invites_1968@localhost/res1 out
<iq type='set' id='46872dc1b07b1a654785b038277c5017'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:12:22.120 ***
bOb_failed_invites_1968@localhost/res1 in
<iq id='46872dc1b07b1a654785b038277c5017' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_1968@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:12:22.120 ***
bOb_failed_invites_1968@localhost/res1 out
<iq type='set' id='e03468e9d6c759dff13a2bf78920fe5b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:12:22.121 ***
bOb_failed_invites_1968@localhost/res1 in
<iq type='result' id='e03468e9d6c759dff13a2bf78920fe5b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:12:22.121 ***
bOb_failed_invites_1968@localhost/res1 out
<presence/>
*** User 2022-04-04 15:12:22.122 ***
bOb_failed_invites_1968@localhost/res1 in
<presence from='bOb_failed_invites_1968@localhost/res1' to='bob_failed_invites_1968@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:12:22.124 ***
REST request:
Code: 201
Req: {<0.31507.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f552c800325a979a">>}],
<<"{\"owner\":\"alicE_failed_invites_1968@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-42.104992\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-42.104992">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-42.104992">>,222,1707}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_1968@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-42.104992\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:12:22.126 ***
REST request fails:
Code: 404
Req: {<0.31509.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44f64d2c0f08f12b">>}],
<<"{\"sender\":\"alicE_failed_invites_1968@localhost\",\"recipient\":\"bOb_failed_invites_1968@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,704}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1968@localhost\",\"recipient\":\"bOb_failed_invites_1968@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-04-04 15:12:22.128 ***
REST request fails:
Code: 400
Req: {<0.31513.1>,<<"/api/mucs/localhost/wonderland-42.104992/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f672b9005af9a46e">>}],
<<"{\"sender\":\"alicE_failed_invites_1968@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,702}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1968@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-42.104992/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:12:22.130 ***
REST request fails:
Code: 400
Req: {<0.31519.1>,<<"/api/mucs/localhost/wonderland-42.104992/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b70a0656235c1070">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1968@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:12:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1095}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1968@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-42.104992/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:12:22.130 ***
bOb_failed_invites_1968@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:12:22.130 ***
bOb_failed_invites_1968@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:12:22.130 ***
alicE_failed_invites_1968@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:12:22.131 ***
alicE_failed_invites_1968@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-04 15:12:22
=== successfully completed test case
=== === Returned value: ok