HomePhabricator

Perform databse setup checks

Authored by chris on Jul 28 2019, 3:49 PM.

Description

Perform databse setup checks

Summary: Add checks to make sure that a Simplex database source is configured and is reachable

Test Plan:

>>> import simplex
>>> from simplex.application.config import setup_check
>>> _tmp = setup_check.SimplexDatabaseSetupCheck(simplex.SIMPLEX_ENV)
>>> _tmp.issues
[{'issue:': 'No Database Configuration Found', 'priority': 0, 'description': 'We were not able to find any valid configuration for a database source.', 'resolution': 'Please refer to Configuring Databases for details on how to properly set up and configure a Simplex database.'}]

Reviewers: brooke

Reviewed By: brooke

Differential Revision: https://phabricator.tbmh.org/D17

Details

Committed
chrisAug 11 2019, 2:06 PM
Pushed
chrisAug 11 2019, 2:06 PM
Reviewer
brooke
Differential Revision
D17: Perform databse setup checks
Parents
rSIM24d931f7cdb6: Extend `SimplexEnv.build_configuration_stack()`
Branches
Unknown
Tags
Unknown