system: add tests for fs usage route

This commit is contained in:
Girish Ramakrishnan
2025-07-17 01:16:24 +02:00
parent aa0c186c8c
commit 8bf8c278f0
9 changed files with 94 additions and 50 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ async function initializeExpressSync() {
router.get ('/api/v1/system/metricstream', token, authorizeAdmin, routes.system.getMetricStream);
router.get ('/api/v1/system/block_devices', token, authorizeAdmin, routes.system.getBlockDevices);
router.get ('/api/v1/system/filesystems', token, authorizeAdmin, routes.system.getFilesystems);
router.post('/api/v1/system/filesystem_usage', token, authorizeAdmin, routes.system.getFilesystemUsage);
router.get ('/api/v1/system/filesystem_usage', token, authorizeAdmin, routes.system.getFilesystemUsage);
router.get ('/api/v1/system/logs/:unit', token, authorizeAdmin, routes.system.getLogs);
router.get ('/api/v1/system/logstream/:unit', token, authorizeAdmin, routes.system.getLogStream);
// app operators require cpu and memory info for the Resources UI