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

=== Config value:

    [{watchdog,<0.15226.2>},
     {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@067aff11512c.2024-03-11_11.24.27/big_tests.tests.service_domain_db_SUITE.logs/run.2024-03-11_11.38.30/service_domain_db_suite.rest_delete_domain_cleans_data_from_mam.104580.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@067aff11512c.2024-03-11_11.24.27/big_tests.tests.service_domain_db_SUITE.logs/run.2024-03-11_11.38.30/log_private/"},
     {{saved_services,mongooseim@localhost},
      #{service_domain_db =>
            #{db_pool => global,event_cleaning_interval => 1800,
              event_max_age => 7200},
        service_mongoose_system_metrics =>
            #{initial_report => 300000,periodic_report => 10800000}}},
     {{saved_services,mongooseim2@localhost},
      #{service_domain_db =>
            #{db_pool => global,event_cleaning_interval => 1800,
              event_max_age => 7200},
        service_mongoose_system_metrics =>
            #{initial_report => 300000,periodic_report => 10800000}}},
     {{saved_services,mongooseim3@localhost},
      #{service_domain_db =>
            #{db_pool => global,event_cleaning_interval => 1800,
              event_max_age => 7200},
        service_mongoose_system_metrics =>
            #{initial_report => 300000,periodic_report => 10800000}}},
     {{saved_modules,mongooseim@localhost,<<"dummy auth">>},
      #{mod_presence => #{}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@067aff11512c.2024-03-11_11.24.27"

=== Started at 2024-03-11 11:38:37


*** CT 2024-03-11 11:38:37.905 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2923.html

*** User 2024-03-11 11:38:38.014 ***🔗
REST request:
Code: 204
Req: {<0.15603.2>,<<"/api/domains/example.com">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"78de6a2e8c65c1e0">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:38:37 GMT">>}],
         <<>>,80,6619}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"PUT">>,path => <<"/api/domains/example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-11 11:38:38.077 ***🔗
REST request:
Code: 204
Req: {<0.15610.2>,<<"/api/domains/example.org">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1198b044f1fad6e2">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:38:37 GMT">>}],
         <<>>,80,61074}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"PUT">>,path => <<"/api/domains/example.org">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-11 11:38:38.082 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.083 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20fccd893a43d2a8' from='example.com' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:38:38.083 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.083 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3Jlc3RfZGVsZXRlX2RvbWFpbl9jbGVhbnNfZGF0YV9mcm9tX21hbV8zMDIwAG1ha290YTI=</auth>



*** User 2024-03-11 11:38:38.088 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:38:38.089 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.089 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd81c49d98b252f2' from='example.com' version='1.0' xml:lang='en' to='alice_rest_delete_domain_cleans_data_from_mam_3020@example.com'>

*** User 2024-03-11 11:38:38.089 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.090 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 out
<iq type='set' id='a5ad34ef38b10bd9bbf391fc1bc70d24'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:38:38.090 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 in
<iq id='a5ad34ef38b10bd9bbf391fc1bc70d24' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:38:38.090 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 out
<iq type='set' id='b59d50de04de9fbb7b4805d03880c772'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:38:38.091 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 in
<iq from='example.com' to='alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1' id='b59d50de04de9fbb7b4805d03880c772' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:38:38.091 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 out
<presence/>



*** User 2024-03-11 11:38:38.093 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 in
<presence from='alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1' to='alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1'/>



*** User 2024-03-11 11:38:38.093 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.094 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='43fb5161e11663d7' from='example.org' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:38:38.094 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.094 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJvYl9yZXN0X2RlbGV0ZV9kb21haW5fY2xlYW5zX2RhdGFfZnJvbV9tYW1fMzAyMABtYWtvdGEz</auth>



*** User 2024-03-11 11:38:38.477 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:38:38.478 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.478 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='275f838ab4c4aa63' from='example.org' version='1.0' xml:lang='en' to='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org'>

*** User 2024-03-11 11:38:38.478 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@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-03-11 11:38:38.478 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 out
<iq type='set' id='593bb45127094c41e6dc3a3d0f7a4ef7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:38:38.479 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<iq id='593bb45127094c41e6dc3a3d0f7a4ef7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:38:38.479 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 out
<iq type='set' id='b74f7977bcd5bfd64aa9da1f258f0087'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:38:38.480 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<iq from='example.org' to='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1' id='b74f7977bcd5bfd64aa9da1f258f0087' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:38:38.480 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 out
<presence/>



*** User 2024-03-11 11:38:38.481 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<presence from='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1' to='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1'/>



*** User 2024-03-11 11:38:38.481 ***🔗
alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1 out
<message to='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1' type='chat'>
	<body>OH, HAI!</body>
</message>



*** User 2024-03-11 11:38:38.491 ***🔗
bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1 in
<message from='alice_rest_delete_domain_cleans_data_from_mam_3020@example.com/res1' to='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org/res1' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_rest_delete_domain_cleans_data_from_mam_3020@example.org' id='C4R0VE7A9RG2' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-11 11:38:40.537 ***🔗
waiting for archive_size_with_host_type is done in 2000 miliseconds

*** User 2024-03-11 11:38:40.538 ***🔗
waiting for archive_size_with_host_type is done in 0 miliseconds

*** User 2024-03-11 11:38:40.545 ***🔗
REST request:
Code: 204
Req: {<0.15754.2>,<<"/api/domains/example.com">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c2ecc65376c478b3">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:38:40 GMT">>}],
         <<>>,80,6179}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"DELETE">>,path => <<"/api/domains/example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-11 11:38:40.552 ***🔗
REST request:
Code: 204
Req: {<0.15756.2>,<<"/api/domains/example.org">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a98b6c3b4d190f5c">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:38:40 GMT">>}],
         <<>>,80,5362}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"DELETE">>,path => <<"/api/domains/example.org">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2024-03-11 11:38:40.554 ***🔗
waiting for archive_size_with_host_type is done in 0 miliseconds

*** User 2024-03-11 11:38:40.554 ***🔗
waiting for archive_size_with_host_type is done in 0 miliseconds
*** CT 2024-03-11 11:38:40.557 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2957.html



=== Ended at 2024-03-11 11:38:40
=== successfully completed test case
=== === Returned value: ok