Add API testing framework and initial test cases for authentication endpoints
This commit is contained in:
@@ -30,14 +30,10 @@ class moduleWeatherAPIRoute
|
||||
private const DEFAULT_DEPARTMENT_WEATHER_DEGRADED_THRESHOLD = 1.0;
|
||||
private const DEFAULT_DEPARTMENT_WEATHER_HEALTHY_THRESHOLD = 1.3;
|
||||
private const DEPARTMENT_WEATHER_STATUS_SEVERITY = [
|
||||
/**
|
||||
* Below 1.0 cars/workhour = red
|
||||
* 1.0-1.3 cars/workhour = yellow
|
||||
* Above 1.3 cars/workhour = green
|
||||
*/
|
||||
'healthy' => self::DEFAULT_DEPARTMENT_WEATHER_HEALTHY_THRESHOLD,
|
||||
'degraded' => self::DEFAULT_DEPARTMENT_WEATHER_DEGRADED_THRESHOLD,
|
||||
'unhealthy' => 0.0,
|
||||
'unknown' => 0,
|
||||
'healthy' => 1,
|
||||
'degraded' => 2,
|
||||
'unhealthy' => 3,
|
||||
];
|
||||
|
||||
public function run(): void
|
||||
|
||||
Reference in New Issue
Block a user