=== Test case: service_domain_db_SUITE:rest_delete_domain_cleans_data_from_mam/1 (click for source code)

=== Config value:

    [{watchdog,<0.103936.0>},
     {auth_creds,valid},
     {service,true},
     {service_setup,per_group},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/service_domain_db_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.service_domain_db_SUITE.logs/run.2024-04-25_12.31.19/service_domain_db_suite.rest_delete_domain_cleans_data_from_mam.149380.html"},
     {tc_group_properties,[{name,rest_with_auth_parallel},parallel]},
     {tc_group_path,[[{name,rest_with_auth}],[{name,db}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/service_domain_db_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.service_domain_db_SUITE.logs/run.2024-04-25_12.31.19/log_private/"},
     {{saved_services,mongooseim@localhost},
      #{service_domain_db =>
            #{event_cleaning_interval => 1800,event_max_age => 7200,
              db_pool => global},
        service_mongoose_system_metrics =>
            #{initial_report => 300000,periodic_report => 10800000}}},
     {{saved_services,mongooseim2@localhost},
      #{service_domain_db =>
            #{event_cleaning_interval => 1800,event_max_age => 7200,
              db_pool => global},
        service_mongoose_system_metrics =>
            #{initial_report => 300000,periodic_report => 10800000}}},
     {{saved_services,mongooseim3@localhost},
      #{service_domain_db =>
            #{event_cleaning_interval => 1800,event_max_age => 7200,
              db_pool => global}}},
     {{saved_modules,mongooseim@localhost,<<"dummy auth">>},
      #{mod_presence => #{}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@26557528e1a5.2024-04-25_12.01.25"

=== Started at 2024-04-25 12:31:27


*** CT 2024-04-25 12:31:27.607 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4970.html

*** User 2024-04-25 12:31:27.779 ***🔗
REST request:
Code: 204
Req: {<0.104306.0>,<<"/api/domains/example.com">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7bec29f263111db4">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:31:27 GMT">>}],
         <<>>,80,4598}
Params: #{path => <<"/api/domains/example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          creds => {<<"admin">>,<<"secret">>},
          body => <<"{\"host_type\":\"dummy auth\"}">>,return_headers => true}


*** User 2024-04-25 12:31:27.783 ***🔗
REST request:
Code: 204
Req: {<0.104314.0>,<<"/api/domains/example.org">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1a2c9c8119aa150c">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:31:27 GMT">>}],
         <<>>,80,3244}
Params: #{path => <<"/api/domains/example.org">>,
          server => #{node => mongooseim@localhost},
          method => <<"PUT">>,role => admin,
          creds => {<<"admin">>,<<"secret">>},
          body => <<"{\"host_type\":\"dummy auth\"}">>,return_headers => true}


*** User 2024-04-25 12:31:27.789 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<stream:stream to='example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-25 12:31:27.790 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8654be0274ce32a' from='example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:31:27.790 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
</stream:features>



*** User 2024-04-25 12:31:27.791 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3Jlc3RfZGVsZXRlX2RvbWFpbl9jbGVhbnNfZGF0YV9mcm9tX21hbV8zOTQ4AG1ha290YTI=</auth>



*** User 2024-04-25 12:31:27.797 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:31:27.798 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<stream:stream to='example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-25 12:31:27.798 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='348cc05cc812c572' from='example.com' version='1.0' xml:lang='en' to='alice_rest_delete_domain_cleans_data_from_mam_3948@example.com'>

*** User 2024-04-25 12:31:27.798 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
</stream:features>



*** User 2024-04-25 12:31:27.798 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<iq type='set' id='be65d20d89657b0cf35da1f8873ee60b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:31:27.837 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<iq id='be65d20d89657b0cf35da1f8873ee60b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:31:27.838 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<iq type='set' id='9cc34a6120dcd32afd1d3dd2322ca397'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:31:27.839 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<iq from='example.com' to='alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1' id='9cc34a6120dcd32afd1d3dd2322ca397' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:31:27.839 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<presence/>



*** User 2024-04-25 12:31:27.841 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 in
<presence from='alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1' to='alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1'/>



*** User 2024-04-25 12:31:27.842 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 out
<stream:stream to='example.org' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-25 12:31:27.843 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='266a22a4a79e8fcf' from='example.org' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:31:27.843 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
</stream:features>



*** User 2024-04-25 12:31:27.844 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJvYl9yZXN0X2RlbGV0ZV9kb21haW5fY2xlYW5zX2RhdGFfZnJvbV9tYW1fMzk0OABtYWtvdGEz</auth>



*** User 2024-04-25 12:31:27.936 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:31:27.936 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 out
<stream:stream to='example.org' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-25 12:31:27.937 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6cc09ace8983a550' from='example.org' version='1.0' xml:lang='en' to='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org'>

*** User 2024-04-25 12:31:27.937 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
</stream:features>



*** User 2024-04-25 12:31:27.937 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 out
<iq type='set' id='bde1f5e284e3068171157f19209bbff6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:31:27.937 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<iq id='bde1f5e284e3068171157f19209bbff6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:31:27.937 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 out
<iq type='set' id='4df19b4765b1c80848307063832d0268'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:31:27.938 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<iq from='example.org' to='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1' id='4df19b4765b1c80848307063832d0268' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:31:27.938 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 out
<presence/>



*** User 2024-04-25 12:31:27.939 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<presence from='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1' to='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1'/>



*** User 2024-04-25 12:31:27.939 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1 out
<message type='chat' to='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1'>
	<body>OH, HAI!</body>
</message>



*** User 2024-04-25 12:31:27.962 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1 in
<message from='alice_rest_delete_domain_cleans_data_from_mam_3948@example.com/res1' to='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org/res1' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_rest_delete_domain_cleans_data_from_mam_3948@example.org' id='C5NAUTA9POG2' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-25 12:31:30.009 ***🔗
waiting for archive_size_with_host_type is done in 2000 miliseconds

*** User 2024-04-25 12:31:30.011 ***🔗
waiting for archive_size_with_host_type is done in 0 miliseconds

*** User 2024-04-25 12:31:30.019 ***🔗
REST request:
Code: 204
Req: {<0.104432.0>,<<"/api/domains/example.com">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"164d2d19b3ec4899">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:31:29 GMT">>}],
         <<>>,80,6947}
Params: #{path => <<"/api/domains/example.com">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,
          creds => {<<"admin">>,<<"secret">>},
          body => <<"{\"host_type\":\"dummy auth\"}">>,return_headers => true}


*** User 2024-04-25 12:31:30.028 ***🔗
REST request:
Code: 204
Req: {<0.104434.0>,<<"/api/domains/example.org">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f041d11eae8a532d">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:31:29 GMT">>}],
         <<>>,80,7393}
Params: #{path => <<"/api/domains/example.org">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => admin,
          creds => {<<"admin">>,<<"secret">>},
          body => <<"{\"host_type\":\"dummy auth\"}">>,return_headers => true}


*** User 2024-04-25 12:31:30.030 ***🔗
waiting for archive_size_with_host_type is done in 0 miliseconds

*** User 2024-04-25 12:31:30.031 ***🔗
waiting for archive_size_with_host_type is done in 0 miliseconds
*** CT 2024-04-25 12:31:30.036 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4970.html



=== Ended at 2024-04-25 12:31:30
=== successfully completed test case
=== === Returned value: ok