=== Test case: muc_http_api_SUITE:failed_invites/1 (click for source code)
=== Config value:
[{watchdog,<0.2158.1>},
{mim_data_dir,"/home/circleci/project/big_tests/tests/muc_http_api_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fbe05ecb9552.2022-03-18_10.50.03/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-18_10.57.43/muc_http_api_suite.failed_invites.18052.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@fbe05ecb9552.2022-03-18_10.50.03/big_tests.tests.muc_http_api_SUITE.logs/run.2022-03-18_10.57.43/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@fbe05ecb9552.2022-03-18_10.50.03"
=== Started at 2022-03-18 10:57:49
*** User 2022-03-18 10:57:49.027 ***
alicE_failed_invites_1132@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-03-18 10:57:49.027 ***
alicE_failed_invites_1132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20a4b38ab63c13fa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:49.027 ***
alicE_failed_invites_1132@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>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:49.027 ***
alicE_failed_invites_1132@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2ZhaWxlZF9pbnZpdGVzXzExMzIAbWF0eWdyeXNh</auth>
*** User 2022-03-18 10:57:49.028 ***
alicE_failed_invites_1132@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:49.028 ***
alicE_failed_invites_1132@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-03-18 10:57:49.028 ***
alicE_failed_invites_1132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cf013baa7d17562f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:49.029 ***
alicE_failed_invites_1132@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-03-18 10:57:49.029 ***
alicE_failed_invites_1132@localhost/res1 out
<iq type='set' id='a000d59567888b115b31eda91dff819a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:49.029 ***
alicE_failed_invites_1132@localhost/res1 in
<iq id='a000d59567888b115b31eda91dff819a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_failed_invites_1132@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:49.029 ***
alicE_failed_invites_1132@localhost/res1 out
<iq type='set' id='d1f22f81ef3f5b8bfd491ae4e83842d9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:49.029 ***
alicE_failed_invites_1132@localhost/res1 in
<iq type='result' id='d1f22f81ef3f5b8bfd491ae4e83842d9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:49.029 ***
alicE_failed_invites_1132@localhost/res1 out
<presence/>
*** User 2022-03-18 10:57:49.030 ***
alicE_failed_invites_1132@localhost/res1 in
<presence from='alicE_failed_invites_1132@localhost/res1' to='alice_failed_invites_1132@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:49.030 ***
bOb_failed_invites_1132@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-03-18 10:57:49.030 ***
bOb_failed_invites_1132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='80fb58f20e6d32be' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:49.031 ***
bOb_failed_invites_1132@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>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:49.031 ***
bOb_failed_invites_1132@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9mYWlsZWRfaW52aXRlc18xMTMyAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-18 10:57:49.032 ***
bOb_failed_invites_1132@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:57:49.032 ***
bOb_failed_invites_1132@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-03-18 10:57:49.032 ***
bOb_failed_invites_1132@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a0d484859447fd3a' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:57:49.032 ***
bOb_failed_invites_1132@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-03-18 10:57:49.032 ***
bOb_failed_invites_1132@localhost/res1 out
<iq type='set' id='6a86bfa432d4105f437bcad96c5db87b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:57:49.032 ***
bOb_failed_invites_1132@localhost/res1 in
<iq id='6a86bfa432d4105f437bcad96c5db87b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_failed_invites_1132@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:57:49.033 ***
bOb_failed_invites_1132@localhost/res1 out
<iq type='set' id='a1d7e4c20b1293d45ee27f9c1b91ca39'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:49.033 ***
bOb_failed_invites_1132@localhost/res1 in
<iq type='result' id='a1d7e4c20b1293d45ee27f9c1b91ca39'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:57:49.033 ***
bOb_failed_invites_1132@localhost/res1 out
<presence/>
*** User 2022-03-18 10:57:49.033 ***
bOb_failed_invites_1132@localhost/res1 in
<presence from='bOb_failed_invites_1132@localhost/res1' to='bob_failed_invites_1132@localhost/res1' xml:lang='en'/>
*** User 2022-03-18 10:57:49.035 ***
REST request:
Code: 201
Req: {<0.2187.1>,<<"/api/mucs/localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"565949461c0c266b">>}],
<<"{\"owner\":\"alicE_failed_invites_1132@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-69.22162\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"location">>,
<<"http://localhost:8088/api/mucs/localhost/wonderland-69.22162">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"wonderland-69.22162">>,220,1209}
Params: #{body =>
<<"{\"owner\":\"alicE_failed_invites_1132@localhost\",\"nick\":\"ali\",\"name\":\"wonderland-69.22162\"}">>,
method => <<"POST">>,path => <<"/api/mucs/localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:49.036 ***
REST request fails:
Code: 404
Req: {<0.2191.1>,<<"/api/mucs/localhost/thisroomdoesnotexist/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c814ee33b0077221">>}],
<<"{\"sender\":\"alicE_failed_invites_1132@localhost\",\"recipient\":\"bOb_failed_invites_1132@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"19">>}],
<<"room does not exist">>,150,572}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1132@localhost\",\"recipient\":\"bOb_failed_invites_1132@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-03-18 10:57:49.038 ***
REST request fails:
Code: 400
Req: {<0.2193.1>,<<"/api/mucs/localhost/wonderland-69.22162/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dca12805c2d2a791">>}],
<<"{\"sender\":\"alicE_failed_invites_1132@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,612}
Params: #{body =>
<<"{\"sender\":\"alicE_failed_invites_1132@localhost\",\"recipient\":\"@badjid\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-69.22162/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:49.039 ***
REST request fails:
Code: 400
Req: {<0.2199.1>,<<"/api/mucs/localhost/wonderland-69.22162/participants">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"20d252aaa2b10a33">>}],
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1132@localhost\",\"reason\":\"I think you'll like this room!\"}">>}
Result: {{<<"400">>,<<"Bad Request">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:57:48 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"26">>}],
<<"Invalid jid: <<\"@badjid\">>">>,159,605}
Params: #{body =>
<<"{\"sender\":\"@badjid\",\"recipient\":\"bOb_failed_invites_1132@localhost\",\"reason\":\"I think you'll like this room!\"}">>,
method => <<"POST">>,
path => <<"/api/mucs/localhost/wonderland-69.22162/participants">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:57:49.040 ***
bOb_failed_invites_1132@localhost/res1 out
</stream:stream>
*** User 2022-03-18 10:57:49.040 ***
bOb_failed_invites_1132@localhost/res1 in
</stream:stream>
*** User 2022-03-18 10:57:49.040 ***
alicE_failed_invites_1132@localhost/res1 out
</stream:stream>
*** User 2022-03-18 10:57:49.040 ***
alicE_failed_invites_1132@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-18 10:57:49
=== successfully completed test case
=== === Returned value: ok