=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.26660.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@a4fd8d8e9aae.2022-05-18_09.59.33/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-18_10.07.05/muc_http_api_suite.failed_invites.68228.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@a4fd8d8e9aae.2022-05-18_09.59.33/big_tests.tests.muc_http_api_SUITE.logs/run.2022-05-18_10.07.05/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@a4fd8d8e9aae.2022-05-18_09.59.33"
=== Started at 2022-05-18 10:07:10
*** User 2022-05-18 10:07:10.789 ***
alicE_failed_invites_1789@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-05-18 10:07:10.791 ***
alicE_failed_invites_1789@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3c52db9a7cf7368f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:10.791 ***
alicE_failed_invites_1789@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-05-18 10:07:10.791 ***
alicE_failed_invites_1789@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzE3ODkAbWF0eWdyeXNh</auth>
*** User 2022-05-18 10:07:10.793 ***
alicE_failed_invites_1789@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:07:10.793 ***
alicE_failed_invites_1789@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-05-18 10:07:10.795 ***
alicE_failed_invites_1789@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2a3816f7540ebd6f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:10.795 ***
alicE_failed_invites_1789@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-05-18 10:07:10.795 ***
alicE_failed_invites_1789@domain.example.com/res1 out
<iq type='set' id='c05487217b6bb4159bdff5f2bdee54fb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:07:10.795 ***
alicE_failed_invites_1789@domain.example.com/res1 in
<iq id='c05487217b6bb4159bdff5f2bdee54fb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_failed_invites_1789@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:07:10.796 ***
alice_failed_invites_1789@domain.example.com/res1 out
<iq type='set' id='5b23aecb63d51d0d13687b57b443aafb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:10.796 ***
alice_failed_invites_1789@domain.example.com/res1 in
<iq type='result' id='5b23aecb63d51d0d13687b57b443aafb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:10.797 ***
alice_failed_invites_1789@domain.example.com/res1 out
<presence/>
*** User 2022-05-18 10:07:10.801 ***
alice_failed_invites_1789@domain.example.com/res1 in
<presence from='alice_failed_invites_1789@domain.example.com/res1' to='alice_failed_invites_1789@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-18 10:07:10.802 ***
bOb_failed_invites_1789@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-05-18 10:07:10.802 ***
bOb_failed_invites_1789@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cff4ac0a5a6ddb42' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:10.803 ***
bOb_failed_invites_1789@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-05-18 10:07:10.803 ***
bOb_failed_invites_1789@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xNzg5AG1ha3JvbGlrYQ==</auth>
*** User 2022-05-18 10:07:10.807 ***
bOb_failed_invites_1789@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-18 10:07:10.808 ***
bOb_failed_invites_1789@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-05-18 10:07:10.808 ***
bOb_failed_invites_1789@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f57f915847db3ce9' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-05-18 10:07:10.809 ***
bOb_failed_invites_1789@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-05-18 10:07:10.810 ***
bOb_failed_invites_1789@domain.example.com/res1 out
<iq type='set' id='68756e9b022881088c0d24d1c0ee7611'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-18 10:07:10.810 ***
bOb_failed_invites_1789@domain.example.com/res1 in
<iq id='68756e9b022881088c0d24d1c0ee7611' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_failed_invites_1789@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-05-18 10:07:10.811 ***
bob_failed_invites_1789@domain.example.com/res1 out
<iq type='set' id='98c0e9c0ee07ed95e77d5efb2cccbdba'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:10.811 ***
bob_failed_invites_1789@domain.example.com/res1 in
<iq type='result' id='98c0e9c0ee07ed95e77d5efb2cccbdba'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-18 10:07:10.812 ***
bob_failed_invites_1789@domain.example.com/res1 out
<presence/>
*** User 2022-05-18 10:07:10.814 ***
bob_failed_invites_1789@domain.example.com/res1 in
<presence from='bob_failed_invites_1789@domain.example.com/res1' to='bob_failed_invites_1789@domain.example.com/res1' xml:lang='en'/>
*** User 2022-05-18 10:07:10.819 ***
REST request:
Code: 201
Req: {<0.26689.1>,<<"/api/mucs/domain.example.com">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1404bbbcf314c058">>}],
<<"{\"owner\":\"alice_failed_invites_1789@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-30.783251\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/domain.example.com/wonderland-30.783251">>},
{<<"date">>,<<"Wed, 18 May 2022 10:07:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"20">>}],
<<"wonderland-30.783251">>,231,3172}
Params: #{body =>
<<"{\"owner\":\"alice_failed_invites_1789@domain.example.com\",\"nick\":\"ali\",\"name\":\"wonderland-30.783251\"}">>,
method => <<"POST">>,path => <<"/api/mucs/domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:07:10.821 ***
REST request fails:
Code: 404
Req: {<0.26695.1>,
<<"/api/mucs/domain.example.com/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c441641b9b56e4cc">>}],
<<"{\"sender\":\"alice_failed_invites_1789@domain.example.com\",\"recipient\":\"bob_failed_invites_1789@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:07:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"14">>}],
<<"Room not found">>,145,954}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1789@domain.example.com\",\"recipient\":\"bob_failed_invites_1789@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-05-18 10:07:10.825 ***
REST request fails:
Code: 400
Req: {<0.26699.1>,
<<"/api/mucs/domain.example.com/wonderland-30.783251/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5fab77aaf431a541">>}],
<<"{\"sender\":\"alice_failed_invites_1789@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:07:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1677}
Params: #{body =>
<<"{\"sender\":\"alice_failed_invites_1789@domain.example.com\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-30.783251/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:07:10.829 ***
REST request fails:
Code: 400
Req: {<0.26701.1>,
<<"/api/mucs/domain.example.com/wonderland-30.783251/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6a802ea1a7811f57">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1789@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 18 May 2022 10:07:10 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,1484}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bob_failed_invites_1789@domain.example.com\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path =>
<<"/api/mucs/domain.example.com/wonderland-30.783251/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-05-18 10:07:10.829 ***
bob_failed_invites_1789@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-18 10:07:10.831 ***
bob_failed_invites_1789@domain.example.com/res1 in
</stream:stream>
*** User 2022-05-18 10:07:10.832 ***
alice_failed_invites_1789@domain.example.com/res1 out
</stream:stream>
*** User 2022-05-18 10:07:10.832 ***
alice_failed_invites_1789@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-05-18 10:07:10
=== successfully completed test case
=== === Returned value: ok