Add API testing framework and initial test cases for authentication endpoints

This commit is contained in:
Jeppe Bundgaard
2026-04-13 11:50:10 +02:00
parent 92d79b867a
commit 2a8e8986e6
359 changed files with 8822 additions and 45623 deletions
@@ -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