=== Test case: rest_client_SUITE:break_stuff/1 (click for source code)
=== Config value:
[{watchdog,<0.14172.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.33.55/rest_client_suite.break_stuff.74370.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@d66972e2ee88.2022-01-27_15.24.27/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.33.55/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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 => [],mod_sic => [],mod_stream_management => [],
mod_vcard =>
[{backend,ldap},
{host,{prefix,<<"vjud.">>}},
{ldap_base,"ou=Users,dc=esl,dc=com"},
{ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d66972e2ee88.2022-01-27_15.24.27"
=== Started at 2022-01-27 15:33:57
*** User 2022-01-27 15:33:57.475 ***
alicE_break_stuff_1138@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-01-27 15:33:57.475 ***
alicE_break_stuff_1138@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a084556ca067118b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.475 ***
alicE_break_stuff_1138@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-01-27 15:33:57.475 ***
alicE_break_stuff_1138@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JyZWFrX3N0dWZmXzExMzgAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:33:57.477 ***
alicE_break_stuff_1138@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:57.477 ***
alicE_break_stuff_1138@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-01-27 15:33:57.478 ***
alicE_break_stuff_1138@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='868b7d348f4a3193' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.478 ***
alicE_break_stuff_1138@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-01-27 15:33:57.478 ***
alicE_break_stuff_1138@localhost/res1 out
<iq type='set' id='e2e82bcc34d4ebdaa789a71d1885a54e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_break_stuff_1138@localhost/res1 in
<iq id='e2e82bcc34d4ebdaa789a71d1885a54e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_break_stuff_1138@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_break_stuff_1138@localhost/res1 out
<iq type='set' id='177f55f815ed5f572934d61e3e1513f4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_break_stuff_1138@localhost/res1 in
<iq type='result' id='177f55f815ed5f572934d61e3e1513f4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.478 ***
alicE_break_stuff_1138@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:57.479 ***
alicE_break_stuff_1138@localhost/res1 in
<presence from='alicE_break_stuff_1138@localhost/res1' to='alice_break_stuff_1138@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:57.479 ***
bOb_break_stuff_1138@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-01-27 15:33:57.480 ***
bOb_break_stuff_1138@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2b461a34bf12568e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.480 ***
bOb_break_stuff_1138@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-01-27 15:33:57.480 ***
bOb_break_stuff_1138@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9icmVha19zdHVmZl8xMTM4AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:33:57.481 ***
bOb_break_stuff_1138@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:33:57.481 ***
bOb_break_stuff_1138@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-01-27 15:33:57.481 ***
bOb_break_stuff_1138@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ed708cf8fa7b715b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:33:57.481 ***
bOb_break_stuff_1138@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-01-27 15:33:57.481 ***
bOb_break_stuff_1138@localhost/res1 out
<iq type='set' id='0b0ff70bc5b3121411f02df68d779637'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_break_stuff_1138@localhost/res1 in
<iq id='0b0ff70bc5b3121411f02df68d779637' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_break_stuff_1138@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_break_stuff_1138@localhost/res1 out
<iq type='set' id='017b3135dda2df79aa87475fe5394436'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_break_stuff_1138@localhost/res1 in
<iq type='result' id='017b3135dda2df79aa87475fe5394436'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:33:57.482 ***
bOb_break_stuff_1138@localhost/res1 out
<presence/>
*** User 2022-01-27 15:33:57.483 ***
bOb_break_stuff_1138@localhost/res1 in
<presence from='bOb_break_stuff_1138@localhost/res1' to='bob_break_stuff_1138@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:33:57.493 ***
REST request:
Code: 204
Req: {<0.14259.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6516d8eebc4eef23">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzExMzhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_break_stuff_1138@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>}],
<<>>,80,1547}
Params: #{body => <<"{\"jid\":\"alice_break_stuff_1138@localhost\"}">>,
creds => {<<"bob_break_stuff_1138@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.503 ***
REST request fails:
Code: 501
Req: {<0.14290.1>,<<"/api/contacts/alice_break_stuff_1138@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3f78a13ccd1a296">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzExMzhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"501">>,<<"Not Implemented">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,136,2473}
Params: #{body => <<"{\"action\":\"nosuchaction\"}">>,
creds => {<<"bob_break_stuff_1138@localhost">>,<<"makrolika">>},
method => <<"PUT">>,
path => <<"/api/contacts/alice_break_stuff_1138@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.514 ***
REST request fails:
Code: 404
Req: {<0.14323.1>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee03c41eecf2e4e4">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzExMzhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,130,1139}
Params: #{body => <<"{\"action\":\"invite\"}">>,
creds => {<<"bob_break_stuff_1138@localhost">>,<<"makrolika">>},
method => <<"PUT">>,path => <<"/api/contacts/zorro@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.570 ***
REST request fails:
Code: 404
Req: {<0.14359.1>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1e2dcabf11bce56a">>},
{<<"authorization">>,
<<"Basic Ym9iX2JyZWFrX3N0dWZmXzExMzhAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"404">>,<<"Not Found">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:33:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"0">>}],
<<>>,130,1960}
Params: #{body => <<>>,
creds => {<<"bob_break_stuff_1138@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts/zorro@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:33:57.571 ***
bOb_break_stuff_1138@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:57.571 ***
bOb_break_stuff_1138@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:33:57.571 ***
alicE_break_stuff_1138@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:33:57.572 ***
alicE_break_stuff_1138@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:33:57
=== successfully completed test case
=== === Returned value: ok