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

=== Config value:

    [{auth_creds,valid},
     {watchdog,<0.5696.2>},
     {service,true},
     {service_setup,per_testcase},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/service_domain_db_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.service_domain_db_SUITE.logs/run.2022-05-11_09.05.12/service_domain_db_suite.rest_delete_domain_cleans_data_from_mam.html"},
     {tc_group_properties,[{name,rest_with_auth}]},
     {tc_group_path,[[{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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.service_domain_db_SUITE.logs/run.2022-05-11_09.05.12/log_private/"},
     {{saved_services,mongooseim@localhost},
      #{service_admin_extra =>
            #{submods =>
                  [node,accounts,sessions,vcard,roster,last,private,stanza,
                   stats,gdpr,upload,domain]},
        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,ejabberd2@localhost},
      #{service_admin_extra =>
            #{submods =>
                  [node,accounts,sessions,vcard,roster,last,private,stanza,
                   stats,gdpr,upload,domain]},
        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_admin_extra =>
            #{submods =>
                  [node,accounts,sessions,vcard,roster,last,private,stanza,
                   stats,gdpr,upload,domain]},
        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">>},#{}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40"

=== Started at 2022-05-11 09:05:28


*** CT 2022-05-11 09:05:28.298 *** View log from node mongooseim@localhost when started mongooseim@localhost_2972.html
*** CT 2022-05-11 09:05:28.298 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_538.html

*** User 2022-05-11 09:05:28.314 ***
REST request:
Code: 204
Req: {<0.6353.2>,<<"/api/domains/example.com">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cf39b0c4c7a2a882">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:05:28 GMT">>}],
         <<>>,80,2603}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"PUT">>,path => <<"/api/domains/example.com">>,
          port => 8866,return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:05:28.318 ***
REST request:
Code: 204
Req: {<0.6355.2>,<<"/api/domains/example.org">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"26e7f6d0ec5368d6">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:05:28 GMT">>}],
         <<>>,80,2199}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"PUT">>,path => <<"/api/domains/example.org">>,
          port => 8866,return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:05:28.320 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@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 2022-05-11 09:05:28.320 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c6bfde5db3847f10' from='example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:05:28.320 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@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>PLAIN</mechanism>
	</mechanisms>
</stream:features>



*** User 2022-05-11 09:05:28.320 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3Jlc3RfZGVsZXRlX2RvbWFpbl9jbGVhbnNfZGF0YV9mcm9tX21hbV8yMDU5AG1ha290YTI=</auth>



*** User 2022-05-11 09:05:28.324 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:05:28.324 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@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 2022-05-11 09:05:28.324 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c36a6ea1283ad89d' from='example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:05:28.324 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@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'/>
</stream:features>



*** User 2022-05-11 09:05:28.324 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 out
<iq type='set' id='55a89951969e1af4a35d8942a700dce9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:05:28.325 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 in
<iq id='55a89951969e1af4a35d8942a700dce9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:05:28.325 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 out
<iq type='set' id='28edaeb9ce85f00843fecf763c25b958'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:05:28.325 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 in
<iq type='result' id='28edaeb9ce85f00843fecf763c25b958'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:05:28.325 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 out
<presence/>



*** User 2022-05-11 09:05:28.326 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 in
<presence from='alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1' to='alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:05:28.326 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@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 2022-05-11 09:05:28.327 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4db651c895bfdf86' from='example.org' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:05:28.327 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@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 2022-05-11 09:05:28.327 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJvYl9yZXN0X2RlbGV0ZV9kb21haW5fY2xlYW5zX2RhdGFfZnJvbV9tYW1fMjA1OQBtYWtvdGEz</auth>



*** User 2022-05-11 09:05:28.571 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:05:28.571 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@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 2022-05-11 09:05:28.571 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='143b873d8d34f8e7' from='example.org' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:05:28.571 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<stream:features>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</stream:features>



*** User 2022-05-11 09:05:28.571 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 out
<iq type='set' id='2acbaa36c87baf27a1c2d18ca7ddd1fd'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:05:28.572 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<iq id='2acbaa36c87baf27a1c2d18ca7ddd1fd' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:05:28.572 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 out
<iq type='set' id='9da0fc1aedfb3e674f8c2b80a8e7ba20'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:05:28.572 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<iq type='result' id='9da0fc1aedfb3e674f8c2b80a8e7ba20'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:05:28.572 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 out
<presence/>



*** User 2022-05-11 09:05:28.573 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<presence from='bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1' to='bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1' xml:lang='en'/>



*** User 2022-05-11 09:05:28.573 ***
alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1 out
<message to='bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1' type='chat'>
	<body>OH, HAI!</body>
</message>



*** User 2022-05-11 09:05:28.577 ***
bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1 in
<message from='alice_rest_delete_domain_cleans_data_from_mam_2059@example.com/res1' to='bob_rest_delete_domain_cleans_data_from_mam_2059@example.org/res1' xml:lang='en' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_rest_delete_domain_cleans_data_from_mam_2059@example.org' id='BNLONOF8D0G2' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-05-11 09:05:30.622 ***
REST request:
Code: 204
Req: {<0.6359.2>,<<"/api/domains/example.com">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"340720ddfde35ef9">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:05:30 GMT">>}],
         <<>>,80,4414}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"DELETE">>,path => <<"/api/domains/example.com">>,
          port => 8866,return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:05:30.626 ***
REST request:
Code: 204
Req: {<0.6361.2>,<<"/api/domains/example.org">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"31dc8cf33516ee56">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:05:30 GMT">>}],
         <<>>,80,2873}
Params: #{body => <<"{\"host_type\":\"dummy auth\"}">>,
          creds => {<<"admin">>,<<"secret">>},
          method => <<"DELETE">>,path => <<"/api/domains/example.org">>,
          port => 8866,return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}

*** CT 2022-05-11 09:05:30.634 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_538.html
*** CT 2022-05-11 09:05:30.635 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2974.html



=== Ended at 2022-05-11 09:05:30
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result