=== Test case: rest_client_SUITE:break_stuff/1 (click for source code)

=== Config value:

    [{watchdog,<0.27651.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,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/rest_client_suite.break_stuff.138498.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_client_SUITE.logs/run.2022-02-02_15.15.09/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@7a520fcf4274.2022-02-02_15.07.36"

=== Started at 2022-02-02 15:15:11


*** CT 2022-02-02 15:15:11.757 *** View log from node mongooseim@localhost when started mongooseim@localhost_2445.html
*** CT 2022-02-02 15:15:11.758 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_628.html

*** User 2022-02-02 15:15:11.767 ***
alicE_break_stuff_1648@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-02-02 15:15:11.768 ***
alicE_break_stuff_1648@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='721a3eba490369de' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:11.768 ***
alicE_break_stuff_1648@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-02-02 15:15:11.768 ***
alicE_break_stuff_1648@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JyZWFrX3N0dWZmXzE2NDgAbWF0eWdyeXNh</auth>



*** User 2022-02-02 15:15:11.769 ***
alicE_break_stuff_1648@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:15:11.769 ***
alicE_break_stuff_1648@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-02-02 15:15:11.769 ***
alicE_break_stuff_1648@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9f38d4a946505588' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:11.769 ***
alicE_break_stuff_1648@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-02-02 15:15:11.769 ***
alicE_break_stuff_1648@domain.example.com/res1 out
<iq type='set' id='ac5c3a91846a4cf5b731319703843a82'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:15:11.769 ***
alicE_break_stuff_1648@domain.example.com/res1 in
<iq id='ac5c3a91846a4cf5b731319703843a82' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_break_stuff_1648@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:15:11.769 ***
alicE_break_stuff_1648@domain.example.com/res1 out
<iq type='set' id='ba295354132dd8347094fe7b70b4536c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:11.769 ***
alicE_break_stuff_1648@domain.example.com/res1 in
<iq type='result' id='ba295354132dd8347094fe7b70b4536c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:11.770 ***
alicE_break_stuff_1648@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:15:11.771 ***
alicE_break_stuff_1648@domain.example.com/res1 in
<presence from='alicE_break_stuff_1648@domain.example.com/res1' to='alice_break_stuff_1648@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:15:11.772 ***
bOb_break_stuff_1648@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-02-02 15:15:11.772 ***
bOb_break_stuff_1648@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='783d739406fcc724' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:11.772 ***
bOb_break_stuff_1648@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-02-02 15:15:11.772 ***
bOb_break_stuff_1648@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9icmVha19zdHVmZl8xNjQ4AG1ha3JvbGlrYQ==</auth>



*** User 2022-02-02 15:15:11.773 ***
bOb_break_stuff_1648@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-02-02 15:15:11.773 ***
bOb_break_stuff_1648@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-02-02 15:15:11.773 ***
bOb_break_stuff_1648@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23ec1b65f7ed64f0' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-02-02 15:15:11.773 ***
bOb_break_stuff_1648@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-02-02 15:15:11.773 ***
bOb_break_stuff_1648@domain.example.com/res1 out
<iq type='set' id='893e96be7070535c8f6a44516b37b896'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-02-02 15:15:11.773 ***
bOb_break_stuff_1648@domain.example.com/res1 in
<iq id='893e96be7070535c8f6a44516b37b896' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_break_stuff_1648@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-02-02 15:15:11.774 ***
bOb_break_stuff_1648@domain.example.com/res1 out
<iq type='set' id='d3577cffa7c4813e7acc17e7d6d0a2fc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:11.774 ***
bOb_break_stuff_1648@domain.example.com/res1 in
<iq type='result' id='d3577cffa7c4813e7acc17e7d6d0a2fc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-02-02 15:15:11.774 ***
bOb_break_stuff_1648@domain.example.com/res1 out
<presence/>



*** User 2022-02-02 15:15:11.776 ***
bOb_break_stuff_1648@domain.example.com/res1 in
<presence from='bOb_break_stuff_1648@domain.example.com/res1' to='bob_break_stuff_1648@domain.example.com/res1' xml:lang='en'/>



*** User 2022-02-02 15:15:11.786 ***
REST request:
Code: 204
Req: {<0.27738.1>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6a5d74655d37f90">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2JyZWFrX3N0dWZmXzE2NDhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
      <<"{\"jid\":\"alice_break_stuff_1648@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>}],
         <<>>,80,2098}
Params: #{body =>
              <<"{\"jid\":\"alice_break_stuff_1648@domain.example.com\"}">>,
          creds =>
              {<<"bob_break_stuff_1648@domain.example.com">>,<<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:11.795 ***
REST request fails:
Code: 501
Req: {<0.27770.1>,
      <<"/api/contacts/alice_break_stuff_1648@domain.example.com">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b2720369c04e77a6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2JyZWFrX3N0dWZmXzE2NDhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
      <<"{\"action\":\"nosuchaction\"}">>}
Result: {{<<"501">>,<<"Not Implemented">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,136,1395}
Params: #{body => <<"{\"action\":\"nosuchaction\"}">>,
          creds =>
              {<<"bob_break_stuff_1648@domain.example.com">>,<<"makrolika">>},
          method => <<"PUT">>,
          path =>
              <<"/api/contacts/alice_break_stuff_1648@domain.example.com">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:11.805 ***
REST request fails:
Code: 404
Req: {<0.27790.1>,<<"/api/contacts/zorro@localhost">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4fbbb052ee23366a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2JyZWFrX3N0dWZmXzE2NDhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
      <<"{\"action\":\"invite\"}">>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,130,1070}
Params: #{body => <<"{\"action\":\"invite\"}">>,
          creds =>
              {<<"bob_break_stuff_1648@domain.example.com">>,<<"makrolika">>},
          method => <<"PUT">>,path => <<"/api/contacts/zorro@localhost">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:11.860 ***
REST request fails:
Code: 404
Req: {<0.27814.1>,<<"/api/contacts/zorro@localhost">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64cad3937e130cb3">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2JyZWFrX3N0dWZmXzE2NDhAZG9tYWluLmV4YW1wbGUuY29tOm1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"404">>,<<"Not Found">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 02 Feb 2022 15:15:11 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"0">>}],
         <<>>,130,48207}
Params: #{body => <<>>,
          creds =>
              {<<"bob_break_stuff_1648@domain.example.com">>,<<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts/zorro@localhost">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-02-02 15:15:11.860 ***
bOb_break_stuff_1648@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:15:11.861 ***
bOb_break_stuff_1648@domain.example.com/res1 in
</stream:stream>

*** User 2022-02-02 15:15:11.861 ***
alicE_break_stuff_1648@domain.example.com/res1 out
</stream:stream>

*** User 2022-02-02 15:15:11.861 ***
alicE_break_stuff_1648@domain.example.com/res1 in
</stream:stream>
*** CT 2022-02-02 15:15:11.864 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_628.html
*** CT 2022-02-02 15:15:11.865 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2445.html



=== Ended at 2022-02-02 15:15:11
=== successfully completed test case
=== === Returned value: ok