File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
services/web/server/tests/unit/with_dbs/03 Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2424from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
2525from pytest_simcore .helpers .typing_env import EnvVarsDict
2626from pytest_simcore .helpers .webserver_login import NewUser , UserInfoDict
27+ from pytest_simcore .helpers .webserver_parametrizations import MockedStorageSubsystem
2728from servicelib .aiohttp import status
2829from simcore_service_webserver .db .models import UserRole
2930from simcore_service_webserver .projects ._groups_api import ProjectGroupGet
@@ -799,6 +800,7 @@ async def test_trash_project_explitictly_and_empty_trash_bin(
799800 mocked_catalog : None ,
800801 mocked_director_v2 : None ,
801802 mocked_dynamic_services_interface : dict [str , MagicMock ],
803+ storage_subsystem_mock : MockedStorageSubsystem ,
802804):
803805 assert client .app
804806
@@ -829,8 +831,11 @@ async def test_trash_project_explitictly_and_empty_trash_bin(
829831
830832 # force EMPTY trash
831833 resp = await client .delete ("/v0/trash" )
834+ # TODO: POST trash:empty -> logs number of elements and
835+ # starts delete in the background ? Assume many many items and can take really long
832836 await assert_status (resp , status .HTTP_204_NO_CONTENT )
833837
838+ # waits for deletion
834839 async for attempt in AsyncRetrying (
835840 stop = stop_after_attempt (3 ), wait = wait_fixed (1 ), reraise = True
836841 ):
You can’t perform that action at this time.
0 commit comments