=== Test case: rest_client_SUITE:break_stuff/1 (click for source code)
=== Config value:
[{watchdog,<0.14396.2>},
{muc_light_host,<<"muclight.localhost">>},
{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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_client_SUITE.logs/run.2022-04-04_15.15.12/rest_client_suite.break_stuff.69380.html"},
{tc_group_properties,[{name,roster},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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_client_SUITE.logs/run.2022-04-04_15.15.12/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => [],
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
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,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== 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:15:16
*** User 2022-04-04 15:15:16.126 ***
alicE_break_stuff_2370@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:15:16.126 ***
alicE_break_stuff_2370@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1eb8af7fd9364b0f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.126 ***
alicE_break_stuff_2370@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:15:16.126 ***
alicE_break_stuff_2370@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JyZWFrX3N0dWZmXzIzNzAAbWF0eWdyeXNh</auth>
*** User 2022-04-04 15:15:16.127 ***
alicE_break_stuff_2370@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:16.127 ***
alicE_break_stuff_2370@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:15:16.128 ***
alicE_break_stuff_2370@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb6d223272e80c28' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.128 ***
alicE_break_stuff_2370@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:15:16.128 ***
alicE_break_stuff_2370@localhost/res1 out
<iq type='set' id='48b712aef0ad41d2b3616aa01d91f2c8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:16.128 ***
alicE_break_stuff_2370@localhost/res1 in
<iq id='48b712aef0ad41d2b3616aa01d91f2c8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_break_stuff_2370@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:16.128 ***
alicE_break_stuff_2370@localhost/res1 out
<iq type='set' id='0d4e9fefa05d7e06c25c10b7fb6bd81b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.129 ***
alicE_break_stuff_2370@localhost/res1 in
<iq type='result' id='0d4e9fefa05d7e06c25c10b7fb6bd81b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.129 ***
alicE_break_stuff_2370@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:16.132 ***
alicE_break_stuff_2370@localhost/res1 in
<presence from='alicE_break_stuff_2370@localhost/res1' to='alice_break_stuff_2370@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:16.132 ***
bOb_break_stuff_2370@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:15:16.133 ***
bOb_break_stuff_2370@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cff923145ead0e5f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.133 ***
bOb_break_stuff_2370@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:15:16.133 ***
bOb_break_stuff_2370@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9icmVha19zdHVmZl8yMzcwAG1ha3JvbGlrYQ==</auth>
*** User 2022-04-04 15:15:16.144 ***
bOb_break_stuff_2370@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:16.144 ***
bOb_break_stuff_2370@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:15:16.145 ***
bOb_break_stuff_2370@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2d487a284378f0e8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.145 ***
bOb_break_stuff_2370@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:15:16.145 ***
bOb_break_stuff_2370@localhost/res1 out
<iq type='set' id='97702dd445c544b6ec2ae9568c2e4135'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:16.145 ***
bOb_break_stuff_2370@localhost/res1 in
<iq id='97702dd445c544b6ec2ae9568c2e4135' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_break_stuff_2370@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:16.145 ***
bOb_break_stuff_2370@localhost/res1 out
<iq type='set' id='c9d917a870c9dedd55ac001b865c943d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.146 ***
bOb_break_stuff_2370@localhost/res1 in
<iq type='result' id='c9d917a870c9dedd55ac001b865c943d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.146 ***
bOb_break_stuff_2370@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:16.149 ***
bOb_break_stuff_2370@localhost/res1 in
<presence from='bOb_break_stuff_2370@localhost/res1' to='bob_break_stuff_2370@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:16.162 ***
REST request:
Code: 204
Req: {<0.14491.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8a0ae92c3fec155">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzIzNzBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_break_stuff_2370@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>}],
<<>>,80,6136}
Params: #{body => <<"{\"jid\":\"alice_break_stuff_2370@localhost\"}">>,
creds => {<<"bob_break_stuff_2370@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.175 ***
REST request fails:
Code: 501
Req: {<0.14510.2>,<<"/api/contacts/alice_break_stuff_2370@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fe56400bc25208fb">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzIzNzBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"501">>,<<"Not Implemented">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,136,3522}
Params: #{body => <<"{\"action\":\"nosuchaction\"}">>,
creds => {<<"bob_break_stuff_2370@localhost">>,<<"makrolika">>},
method => <<"PUT">>,
path => <<"/api/contacts/alice_break_stuff_2370@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.236 ***
REST request fails:
Code: 404
Req: {<0.14539.2>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"74ce9da59d42e39a">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzIzNzBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,130,49390}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds => {<<"bob_break_stuff_2370@localhost">>,<<"makrolika">>},
method => <<"PUT">>,path => <<"/api/contacts/zorro@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.248 ***
REST request fails:
Code: 404
Req: {<0.14558.2>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07eb09fb72ff62fe">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzIzNzBAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,130,1273}
Params: #{body => <<>>,
creds => {<<"bob_break_stuff_2370@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts/zorro@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.249 ***
bOb_break_stuff_2370@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:16.249 ***
bOb_break_stuff_2370@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:15:16.249 ***
alicE_break_stuff_2370@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:16.249 ***
alicE_break_stuff_2370@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-04 15:15:16
=== successfully completed test case
=== === Returned value: ok