There are some retention policies for the data that my company uses. For different types of data, we have different rules and these different types of data and files are used in different microservices and databases.
For example :
- file type "A" should get deleted after 30 days,
- file type "B" should get deleted after 100 days,
- and file type "C" should get deleted after 7 days.
We have a job that should delete these files for each microservice.
I want to test this cron job (automated, not manual) and make sure our data would get deleted at the right time. I need to do it with the bare minimum amount of work (kinda in a hurry), and I don't want to use an approach that may cause us liability issues and security issues. What should I do?