=== 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.1978.2>},
     {service,true},
     {mim_conf1,#{core_opts =>
                      [[{<<"localhost">>,<<"localhost">>},
                        {<<"anonymous.localhost">>,<<"anonymous.localhost">>},
                        {<<"localhost.bis">>,<<"localhost.bis">>}],
                       [<<"test type">>,<<"dummy auth">>,<<"anonymous">>]],
                  loaded => true,service_opts => []}},
     {mim_conf2,#{core_opts =>
                      [[{<<"localhost">>,<<"localhost">>},
                        {<<"anonymous.localhost">>,<<"anonymous.localhost">>},
                        {<<"localhost.bis">>,<<"localhost.bis">>}],
                       [<<"test type">>,<<"dummy auth">>]],
                  loaded => true,service_opts => []}},
     {mim_conf3,#{core_opts =>
                      [[{<<"localhost">>,<<"localhost">>},
                        {<<"anonymous.localhost">>,<<"anonymous.localhost">>},
                        {<<"localhost.bis">>,<<"localhost.bis">>}],
                       []],
                  loaded => true,service_opts => []}},
     {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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.service_domain_db_SUITE.logs/run.2022-03-18_10.58.56/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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.service_domain_db_SUITE.logs/run.2022-03-18_10.58.56/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"dummy auth">>},#{}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04"

=== Started at 2022-03-18 10:59:13


*** CT 2022-03-18 10:59:13.744 *** View log from node mongooseim@localhost when started mongooseim@localhost_1991.html
*** CT 2022-03-18 10:59:13.745 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_542.html

*** User 2022-03-18 10:59:13.790 ***
REST request:
Code: 204
Req: {<0.2655.2>,<<"/api/domains/example.com">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0e194ffecfc1445b">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:59:13 GMT">>}],
         <<>>,80,3975}
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-03-18 10:59:13.793 ***
REST request:
Code: 204
Req: {<0.2657.2>,<<"/api/domains/example.org">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7468171826b87df5">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:59:13 GMT">>}],
         <<>>,80,1542}
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-03-18 10:59:13.796 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:13.796 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='34fd05afc921dfd4' from='example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:59:13.796 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:13.796 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3Jlc3RfZGVsZXRlX2RvbWFpbl9jbGVhbnNfZGF0YV9mcm9tX21hbV8yMDYwAG1ha290YTI=</auth>



*** User 2022-03-18 10:59:13.802 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:59:13.802 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:13.802 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6f56ba99ff0d672e' from='example.com' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:59:13.802 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:13.802 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 out
<iq type='set' id='c1e77cabce02b2729017eb563d9faa99'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-18 10:59:13.803 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 in
<iq id='c1e77cabce02b2729017eb563d9faa99' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-18 10:59:13.803 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 out
<iq type='set' id='d7276a9f7d2131dbb08b36abfda338bd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:59:13.803 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 in
<iq type='result' id='d7276a9f7d2131dbb08b36abfda338bd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:59:13.803 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 out
<presence/>



*** User 2022-03-18 10:59:13.805 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 in
<presence from='alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1' to='alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1' xml:lang='en'/>



*** User 2022-03-18 10:59:13.807 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:13.808 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77db463ddce45cc6' from='example.org' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:59:13.808 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:13.808 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJvYl9yZXN0X2RlbGV0ZV9kb21haW5fY2xlYW5zX2RhdGFfZnJvbV9tYW1fMjA2MABtYWtvdGEz</auth>



*** User 2022-03-18 10:59:14.200 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-18 10:59:14.200 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:14.201 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='47490d5683afbd39' from='example.org' version='1.0' xml:lang='en'>

*** User 2022-03-18 10:59:14.201 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@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-03-18 10:59:14.201 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 out
<iq type='set' id='004ce5b8f48a25fd5450ded09be17735'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-18 10:59:14.201 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<iq id='004ce5b8f48a25fd5450ded09be17735' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1</jid>
	</bind>
</iq>



*** User 2022-03-18 10:59:14.201 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 out
<iq type='set' id='cb8ea7b93f300f7a19879a2810cffe8e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:59:14.202 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<iq type='result' id='cb8ea7b93f300f7a19879a2810cffe8e'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-18 10:59:14.202 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 out
<presence/>



*** User 2022-03-18 10:59:14.203 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<presence from='bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1' to='bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1' xml:lang='en'/>



*** User 2022-03-18 10:59:14.203 ***
alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1 out
<message to='bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1' type='chat'>
	<body>OH, HAI!</body>
</message>



*** User 2022-03-18 10:59:14.207 ***
bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1 in
<message from='alice_rest_delete_domain_cleans_data_from_mam_2060@example.com/res1' to='bob_rest_delete_domain_cleans_data_from_mam_2060@example.org/res1' xml:lang='en' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_rest_delete_domain_cleans_data_from_mam_2060@example.org' id='BMJS163HUMG2' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-03-18 10:59:16.257 ***
REST request:
Code: 204
Req: {<0.2661.2>,<<"/api/domains/example.com">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"54e77953efc57a1f">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:59:16 GMT">>}],
         <<>>,80,8006}
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-03-18 10:59:16.270 ***
REST request:
Code: 204
Req: {<0.2663.2>,<<"/api/domains/example.org">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8776208e3d7157d4">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 18 Mar 2022 10:59:16 GMT">>}],
         <<>>,80,11453}
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-03-18 10:59:16.289 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_542.html
*** CT 2022-03-18 10:59:16.290 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1993.html



=== Ended at 2022-03-18 10:59:16
=== successfully completed test case
=== === Returned value: ok


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