bcgov / cas-registration

A web app for Registration in OBPS under the Clean Growth branch
Apache License 2.0
1 stars 0 forks source link

Automate the process for testing db backups #1637

Open dleard opened 1 month ago

dleard commented 1 month ago

Follow up for #337. In 337, we created a helm template & make target in the cas-obps-postgres repo that will deploy a postgres cluster to a destination namespace (we used our -tools namespace) and restore that cluster from a source namespace's database backups.

We can likely automate this process. The automated test process should:

There is an example in the CIF repo where this was done previously (without the email notification steps) which can be used as a starting point on how to implement this: https://github.com/bcgov/cas-cif/tree/develop/database_backup_test original PR for cas-obps-postgres: https://github.com/bcgov/cas-obps-postgres/pull/7

The CIF example works like this: