=== 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.30543.1>},
     {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,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.service_domain_db_SUITE.logs/run.2022-01-27_12.37.15/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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.service_domain_db_SUITE.logs/run.2022-01-27_12.37.15/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"dummy auth">>},#{}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:37:32


*** CT 2022-01-27 12:37:32.140 *** View log from node mongooseim@localhost when started mongooseim@localhost_2919.html
*** CT 2022-01-27 12:37:32.141 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_672.html

*** User 2022-01-27 12:37:32.160 ***
REST request:
Code: 204
Req: {<0.31200.1>,<<"/api/domains/example.com">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"722e4f2759ec3fcd">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:37:31 GMT">>}],
         <<>>,80,3613}
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-01-27 12:37:32.164 ***
REST request:
Code: 204
Req: {<0.31202.1>,<<"/api/domains/example.org">>,<<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8de570cda359545b">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:37:31 GMT">>}],
         <<>>,80,2833}
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-01-27 12:37:32.166 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.167 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d4a0c2b86bc3d15' from='example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:37:32.167 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.167 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3Jlc3RfZGVsZXRlX2RvbWFpbl9jbGVhbnNfZGF0YV9mcm9tX21hbV8xODEyAG1ha290YTI=</auth>



*** User 2022-01-27 12:37:32.171 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:37:32.171 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.171 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='090224cbf10d7a31' from='example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:37:32.171 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.171 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 out
<iq type='set' id='410c8737ac07a7d62e1c83103811bf88'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:37:32.172 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 in
<iq id='410c8737ac07a7d62e1c83103811bf88' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:37:32.172 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 out
<iq type='set' id='f123034c0b86482ca012aad5d28beeeb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:37:32.172 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 in
<iq type='result' id='f123034c0b86482ca012aad5d28beeeb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:37:32.172 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 out
<presence/>



*** User 2022-01-27 12:37:32.173 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 in
<presence from='alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1' to='alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:37:32.174 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.174 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6beca900532481f0' from='example.org' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:37:32.174 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.174 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJvYl9yZXN0X2RlbGV0ZV9kb21haW5fY2xlYW5zX2RhdGFfZnJvbV9tYW1fMTgxMgBtYWtvdGEz</auth>



*** User 2022-01-27 12:37:32.257 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:37:32.257 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.257 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fb7eb7ace43ccf87' from='example.org' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:37:32.257 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@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-01-27 12:37:32.258 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 out
<iq type='set' id='2f274d5ea58b5848f368622b98cf4b54'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:37:32.258 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<iq id='2f274d5ea58b5848f368622b98cf4b54' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:37:32.258 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 out
<iq type='set' id='9a4ef61b741cf4f18575e29f05aa4468'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:37:32.258 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<iq type='result' id='9a4ef61b741cf4f18575e29f05aa4468'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:37:32.258 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 out
<presence/>



*** User 2022-01-27 12:37:32.259 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<presence from='bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1' to='bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1' xml:lang='en'/>



*** User 2022-01-27 12:37:32.259 ***
alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1 out
<message to='bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1' type='chat'>
	<body>OH, HAI!</body>
</message>



*** User 2022-01-27 12:37:32.266 ***
bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1 in
<message from='alice_rest_delete_domain_cleans_data_from_mam_1812@example.com/res1' to='bob_rest_delete_domain_cleans_data_from_mam_1812@example.org/res1' xml:lang='en' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_rest_delete_domain_cleans_data_from_mam_1812@example.org' id='BLKFIK1P65O2' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2022-01-27 12:37:34.327 ***
REST request:
Code: 204
Req: {<0.31206.1>,<<"/api/domains/example.com">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9e19cb1f25f6d08">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:37:34 GMT">>}],
         <<>>,80,19011}
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-01-27 12:37:34.335 ***
REST request:
Code: 204
Req: {<0.31208.1>,<<"/api/domains/example.org">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"90dd2ef9a0ac322a">>},
       {<<"authorization">>,<<"Basic YWRtaW46c2VjcmV0">>}],
      <<"{\"host_type\":\"dummy auth\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:37:34 GMT">>}],
         <<>>,80,6244}
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-01-27 12:37:34.345 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_672.html
*** CT 2022-01-27 12:37:34.345 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2921.html



=== Ended at 2022-01-27 12:37:34
=== successfully completed test case
=== === Returned value: ok


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