Page MenuHomePhabricator

Refactor Smashpig healthcheck scripts to use HealthCheck class
Open, Needs TriagePublic

Description

Currently, we use different names for the same thing across different processors. We've got a bunch of health check-style scripts that exist today, such testConnection(Adyen/Ingenico) and testApi(Braintree), and they all serve the same purpose, which is to act as health check scripts and let us know the status of a remote API and our access to it. Some of these scripts are used by our endpoint monitoring services.

Let's introduce a standard health check implementation that will improve reusability and give us more consistency across processor libraries. The first run at this is here. This will allow us to use a single command, e.g. 'php /PaymentProviders/$Processor/Maintenance/HealthCheck.php' across all processor libraries and give the endpoint monitor services a consistent entry point.

Event Timeline

jgleeson renamed this task from Refactor Smashpig healthcheck scripts to use HealthCheck class from T326248 to Refactor Smashpig healthcheck scripts to use HealthCheck class.Jan 18 2023, 12:42 PM
jgleeson updated the task description. (Show Details)
AKanji-WMF added a project: FR-Smashpig.
AKanji-WMF subscribed.

Moving to mid-future pending Smashpig refactor sprint(s).