Commit Graph

11 Commits

Author SHA1 Message Date
Christopher Pitt 53aafd97ba Made supported 2015-09-14 09:12:12 +12:00
Ingo Schommer 631b7ba502 Fix environment check basic auth tests
Was assuming that Member::currentMember() is set,
which isn't the case unless you log in beforehand and start a PHP session.

Given we want the checks to run on their own without user interaction,
they need to work in isolation through a single HTTP call containing
the basic auth info.
2015-07-07 19:35:33 +12:00
Sean Harvey e11e4349f9 Output check result and details as JSON if requested.
Can be either automatically if the Accept header is "application/json"
or suffixed with "json" extension, e.g. dev/check.json
2015-04-09 09:41:13 +12:00
Sean Harvey cda00c8a62 Provide a way to enable basic auth for authenticating dev/check URL.
In live or test environments, you need to be logged in as an admin to
access dev/check, but that's not appropriate if you wish to use that
page for a service that automatically checks the health of a site.
2014-06-19 17:44:02 +12:00
jean 82241b4f9d Merge pull request #5 from candidasa 2013-06-21 15:36:45 +12:00
Stig Lindqvist 7a4671962c BUG EnvironmentChecker::init() calls non existing RequestHandler::init() 2013-01-30 12:08:37 +13:00
Ingo Schommer 0e8d61869a BUGFIX Use httpError() in EnvironmentChecker
Security::permissionFailure() relies on the object extending Controller,
not RequestHandler, since it wants to use the redirect() API.
2013-01-09 18:59:22 +01:00
Ingo Schommer edc433793b NEW Cleaned up access checks, allow extension
Logic hasn't changed, but removed duplicate ADMIN check in DevCheckController.
2013-01-09 18:59:22 +01:00
Julian Seidenberg fecf0979a9 ENHANCEMENT: clearer error message when dev/check fails 2013-01-09 18:59:21 +01:00
Julian Seidenberg b7ca70984d NEW Adding a configuration option to get the Environment Checker to email its results 2013-01-09 18:59:07 +01:00
Sam Minnee 9426ffb12e Initial release of the module, based on Sam and Will's work 2012-01-10 19:28:04 +13:00