This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Smoke Testing: Database
Elliot Oram edited this page Sep 11, 2018
·
1 revision
On the machine that hosts the database:
- Run
python scripts/mysql_dump/reset_database_post_cycle.py
selectingbackup
and supplying the credentials for the database you want to reset (when prompted) in the terminal. Note the default database is localhost:3306. - Check the backup file has been generated at
C:\database_backup\cycle_xx_x\cycle_xx_x.sql
-
Run
python scripts/mysql_dump/reset_database_post_cycle.py
selectingwipe
and supplying the credentials for the database you want to reset (when prompted) in the terminal. Note the default database is localhost:3306. -
Check the database to ensure that the tables are empty:
reduction_viewer_datalocation
reduction_viewer_experiment
reduction_viewer_notification
reduction_viewer_reductionrun
reduction_viewer_reductionlocation
reduction_viewer_setting
reduction_variables_instrumentvariable
reduction_variables_runvariable
reduction_variables_variable
- Submit one run per instrument - This is to ensure all the options are valid on the webapp
python scripts/manual_submission/manual_submission <INST> <run_number>