=== Test case: rest_client_SUITE:break_stuff/1 (click for source code)
=== Config value:
[{watchdog,<0.26880.1>},
{muc_light_host,<<"muclight2.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/rest_client_suite.break_stuff.122754.html"},
{tc_group_properties,[{name,roster},{repeat_until_all_ok,3},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_12.36.44/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:48
*** User 2022-01-27 12:36:48.085 ***
alicE_break_stuff_1778@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-01-27 12:36:48.085 ***
alicE_break_stuff_1778@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b5cfb7eea2a57052' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.086 ***
alicE_break_stuff_1778@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-01-27 12:36:48.086 ***
alicE_break_stuff_1778@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JyZWFrX3N0dWZmXzE3NzgAbWF0eWdyeXNh</auth>
*** User 2022-01-27 12:36:48.087 ***
alicE_break_stuff_1778@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.087 ***
alicE_break_stuff_1778@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-01-27 12:36:48.087 ***
alicE_break_stuff_1778@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7f5c20a339781d69' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.087 ***
alicE_break_stuff_1778@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-01-27 12:36:48.087 ***
alicE_break_stuff_1778@domain.example.com/res1 out
<iq type='set' id='326a8557eddbb867001cad5d15715365'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.088 ***
alicE_break_stuff_1778@domain.example.com/res1 in
<iq id='326a8557eddbb867001cad5d15715365' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_break_stuff_1778@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.088 ***
alicE_break_stuff_1778@domain.example.com/res1 out
<iq type='set' id='068ee8454cc2f0df0429e093f0d1dea3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.088 ***
alicE_break_stuff_1778@domain.example.com/res1 in
<iq type='result' id='068ee8454cc2f0df0429e093f0d1dea3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.088 ***
alicE_break_stuff_1778@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.092 ***
alicE_break_stuff_1778@domain.example.com/res1 in
<presence from='alicE_break_stuff_1778@domain.example.com/res1' to='alice_break_stuff_1778@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.093 ***
bOb_break_stuff_1778@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-01-27 12:36:48.093 ***
bOb_break_stuff_1778@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8d7769a73404e5be' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.093 ***
bOb_break_stuff_1778@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-01-27 12:36:48.093 ***
bOb_break_stuff_1778@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9icmVha19zdHVmZl8xNzc4AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 12:36:48.095 ***
bOb_break_stuff_1778@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:48.095 ***
bOb_break_stuff_1778@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-01-27 12:36:48.095 ***
bOb_break_stuff_1778@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='883730c44948bf60' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:48.095 ***
bOb_break_stuff_1778@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-01-27 12:36:48.095 ***
bOb_break_stuff_1778@domain.example.com/res1 out
<iq type='set' id='41b752a6a55f3424d0d2a7e837ecba11'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:48.095 ***
bOb_break_stuff_1778@domain.example.com/res1 in
<iq id='41b752a6a55f3424d0d2a7e837ecba11' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_break_stuff_1778@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:48.096 ***
bOb_break_stuff_1778@domain.example.com/res1 out
<iq type='set' id='7489339315241fd9421d4737bda4276b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.096 ***
bOb_break_stuff_1778@domain.example.com/res1 in
<iq type='result' id='7489339315241fd9421d4737bda4276b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:48.096 ***
bOb_break_stuff_1778@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:48.101 ***
bOb_break_stuff_1778@domain.example.com/res1 in
<presence from='bOb_break_stuff_1778@domain.example.com/res1' to='bob_break_stuff_1778@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:48.136 ***
REST request:
Code: 204
Req: {<0.26967.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"895921cc139da75a">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzE3NzhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_break_stuff_1778@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>}],
<<>>,80,21941}
Params: #{body =>
<<"{\"jid\":\"alice_break_stuff_1778@domain.example.com\"}">>,
creds =>
{<<"bob_break_stuff_1778@domain.example.com">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.155 ***
REST request fails:
Code: 501
Req: {<0.26990.1>,
<<"/api/contacts/alice_break_stuff_1778@domain.example.com">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c90edfd13758197">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzE3NzhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"501">>,<<"Not Implemented">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,136,4809}
Params: #{body => <<"{\"action\":\"nosuchaction\"}">>,
creds =>
{<<"bob_break_stuff_1778@domain.example.com">>,<<"makrolika">>},
method => <<"PUT">>,
path =>
<<"/api/contacts/alice_break_stuff_1778@domain.example.com">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.182 ***
REST request fails:
Code: 404
Req: {<0.26998.1>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c7cd8516282f596f">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzE3NzhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,130,10903}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds =>
{<<"bob_break_stuff_1778@domain.example.com">>,<<"makrolika">>},
method => <<"PUT">>,path => <<"/api/contacts/zorro@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.205 ***
REST request fails:
Code: 404
Req: {<0.27025.1>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"00840a9472adf706">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzE3NzhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:47 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,130,11506}
Params: #{body => <<>>,
creds =>
{<<"bob_break_stuff_1778@domain.example.com">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts/zorro@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:48.206 ***
bOb_break_stuff_1778@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.206 ***
bOb_break_stuff_1778@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:48.206 ***
alicE_break_stuff_1778@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:48.206 ***
alicE_break_stuff_1778@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:48
=== successfully completed test case
=== === Returned value: ok