=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.22955.1>},
{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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-18_10.57.12/muc_http_api_suite.failed_invites.39429.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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-18_10.57.12/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]},
{kate,[{username,<<"kate">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrowe;p">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04"
=== Started at 2022-03-18 10:57:18
*** User 2022-03-18 10:57:18.164 ***
alicE_failed_invites_1891@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:18.165 ***
alicE_failed_invites_1891@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='973620712e0a2d52' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:18.165 ***
alicE_failed_invites_1891@domain.example.com/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-03-18 10:57:18.165 ***
alicE_failed_invites_1891@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE4OTEAbWF0eWdyeXNh</auth>
*** User 2022-03-18 10:57:18.167 ***
alicE_failed_invites_1891@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:18.167 ***
alicE_failed_invites_1891@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:18.168 ***
alicE_failed_invites_1891@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb7ff843704aa765' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:18.168 ***
alicE_failed_invites_1891@domain.example.com/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-18 10:57:18.168 ***
alicE_failed_invites_1891@domain.example.com/res1 out
<iq type='set' id='ce9bc08d1441cbcc805e095ef10a5ab2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:18.168 ***
alicE_failed_invites_1891@domain.example.com/res1 in
<iq id='ce9bc08d1441cbcc805e095ef10a5ab2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_1891@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:18.169 ***
alicE_failed_invites_1891@domain.example.com/res1 out
<iq type='set' id='b76983756e4ec8f922c23327999579a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:18.170 ***
alicE_failed_invites_1891@domain.example.com/res1 in
<iq type='result' id='b76983756e4ec8f922c23327999579a0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:18.171 ***
alicE_failed_invites_1891@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:57:18.172 ***
alicE_failed_invites_1891@domain.example.com/res1 in
<presence from='alicE_failed_invites_1891@domain.example.com/res1' to='alice_failed_invites_1891@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:18.172 ***
bOb_failed_invites_1891@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:18.174 ***
bOb_failed_invites_1891@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='55c040e273543c4b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:18.174 ***
bOb_failed_invites_1891@domain.example.com/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-03-18 10:57:18.174 ***
bOb_failed_invites_1891@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xODkxAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-18 10:57:18.177 ***
bOb_failed_invites_1891@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:18.177 ***
bOb_failed_invites_1891@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-18 10:57:18.178 ***
bOb_failed_invites_1891@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f847896548831277' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:18.178 ***
bOb_failed_invites_1891@domain.example.com/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-18 10:57:18.178 ***
bOb_failed_invites_1891@domain.example.com/res1 out
<iq type='set' id='3c77e09ebdd283fe97837e5823c0eb0e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:18.178 ***
bOb_failed_invites_1891@domain.example.com/res1 in
<iq id='3c77e09ebdd283fe97837e5823c0eb0e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_1891@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:18.179 ***
bOb_failed_invites_1891@domain.example.com/res1 out
<iq type='set' id='e3a89976fa9cf170d46a2d4d264d186c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:18.179 ***
bOb_failed_invites_1891@domain.example.com/res1 in
<iq type='result' id='e3a89976fa9cf170d46a2d4d264d186c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:18.179 ***
bOb_failed_invites_1891@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:57:18.181 ***
bOb_failed_invites_1891@domain.example.com/res1 in
<presence from='bOb_failed_invites_1891@domain.example.com/res1' to='bob_failed_invites_1891@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:18.185 ***
REST request:
Code: 201
Req: {<0.22982.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cd92db9a965ba737">>}],
<<"{\"owner\":\"alicE_failed_invites_1891@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-38.155373\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-38.155373">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-38.155373">>,231,2688}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_1891@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-38.155373\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:18.189 ***
REST request fails:
Code: 404
Req: {<0.22986.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"98b6f2e3ed9dbd5a">>}],
<<"{\"sender\":\"alicE_failed_invites_1891@domain.example.com\",\"recipient\":\"bOb_failed_invites_1891@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,1188}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1891@domain.example.com\",\"recipient\":\"bOb_failed_invites_1891@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:18.194 ***
REST request fails:
Code: 400
Req: {<0.22992.1>,
<<"/api/mucs/domain.example.com/wonderland-38.155373/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d5e8c0dd123fe929">>}],
<<"{\"sender\":\"alicE_failed_invites_1891@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1712}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1891@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-38.155373/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:18.197 ***
REST request fails:
Code: 400
Req: {<0.22994.1>,
<<"/api/mucs/domain.example.com/wonderland-38.155373/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f773a2e50b0ddb75">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1891@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1200}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1891@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-38.155373/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:18.197 ***
bOb_failed_invites_1891@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:57:18.198 ***
bOb_failed_invites_1891@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-18 10:57:18.198 ***
alicE_failed_invites_1891@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:57:18.198 ***
alicE_failed_invites_1891@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-18 10:57:18
=== successfully completed test case
=== === Returned value: ok