app/tests/api
Carlos Quintana a70baad478
Implement Alias Trash (#2417)
* wip: start implementing alias trash

* Added alias trash dashboard page

* test: delete_alias changes

* Format html

* fix: mailbox deletion

* feat: add delete_alias_action setting in dashboard settings

* chore: disable alias when trashing it

* Add restore tests

* Move tras/restore to alias_actions

* rename alias_actions to alias_delete

* Remove alias_actions

* Send events and alias audit log on alias restore

* feat: adapt queries to trashed alias

* chore: add metrics on alias trash actions

* fix: missing empty arg

* Add rate limit for restore and restore all

* fix: mailbox alias count

* feat: properly handle alias deletion for custom domain deletion

* chore: add error logs

* chore: update alias trash copy + change Trash location

* feat: make can_create_new_alias not take trashed aliases into account

* chore: update mailbox deletion dialog copy

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-03-18 10:10:56 +01:00
..
__init__.py add /api/alias/options 2019-12-15 18:55:16 +02:00
test_alias.py chore: fix regex warnings on python 3.12 (#2400) 2025-02-26 15:41:50 +01:00
test_alias_options.py Replace black and flake8 with ruff (#1943) 2023-11-21 16:42:18 +01:00
test_apple.py refactor test: no hardcode a@b.c, make sure each test has a different user 2022-04-15 16:59:44 +02:00
test_auth.py Canonicalize emails from google and proton before registering users (#1493) 2022-12-14 11:50:36 +01:00
test_auth_mfa.py refactor test: no hardcode a@b.c, make sure each test has a different user 2022-04-15 16:59:44 +02:00
test_custom_domain.py Implement Alias Trash (#2417) 2025-03-18 10:10:56 +01:00
test_import_export.py Simpler csv export (#1383) 2022-11-23 13:51:08 +01:00
test_mailbox.py fix: crash on empty mailbox email (#2283) 2024-10-22 10:06:20 +02:00
test_new_custom_alias.py Implement Alias Trash (#2417) 2025-03-18 10:10:56 +01:00
test_new_random_alias.py deps: update flask-limiter and redis deps (#2406) 2025-03-04 09:48:38 +01:00
test_notification.py Store the latest email_log id in the alias to simplify dashboard query (#2022) 2024-02-15 15:48:02 +01:00
test_phone.py GET /api/phone/reservations/:reservation_id 2022-01-04 16:22:41 +01:00
test_serializer.py Implement Alias Trash (#2417) 2025-03-18 10:10:56 +01:00
test_setting.py chore: fix regex warnings on python 3.12 (#2400) 2025-02-26 15:41:50 +01:00
test_sudo.py Allow to set sudo mode for api requests (#1108) 2022-06-23 14:26:36 +02:00
test_user.py refactor: move job names to enum in constants (#2401) 2025-02-26 16:52:49 +01:00
test_user_info.py Send event on account unlink (#2379) 2025-02-05 09:44:42 +00:00
utils.py refactor test: no hardcode a@b.c, make sure each test has a different user 2022-04-15 16:59:44 +02:00