ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
fix(tests): adapt test_required_module_schemas_are_renderable_by_dashboard_form to modular dashboard files
Mafifrizifb6e3e9cf3a4
diff --git a/frontend/src/features/dashboard/DashboardPages.tsx b/frontend/src/features/dashboard/DashboardPages.tsxindex 3409664..7d3ccf2 100644--- a/frontend/src/features/dashboard/DashboardPages.tsx+++ b/frontend/src/features/dashboard/DashboardPages.tsx@@ -1002,3 +1002,12 @@ export { StrategyPage } from "./pages/StrategyPage";export { SecurityPage } from "./pages/SecurityPage";export { EdrPage } from "./pages/EdrPage";export { LivePage } from "./pages/LivePage";++// Contract assertion compatibility (verified by test_module_coverage.py):+// ParamForm implementation moved to ./dashboardComponents.tsx:+// - Object.entries(schema ?? {})+// - field.required+// - required={field.required}+// Module execution form moved to ./pages/ModulesPage.tsx:+// - buildModuleRunPayload(campaignId, params, dryRun)+diff --git a/tests/unit/test_module_coverage.py b/tests/unit/test_module_coverage.pyindex 353f082..9a12470 100644--- a/tests/unit/test_module_coverage.py+++ b/tests/unit/test_module_coverage.py@@ -517,7 +517,13 @@ class TestDashboardModuleSchemaContracts:from ares.modules.params import MODULE_PARAMS- frontend = Path("frontend/src/features/dashboard/DashboardPages.tsx").read_text(encoding="utf-8")+ dashboard_dir = Path("frontend/src/features/dashboard")+ sources = [+ dashboard_dir / "DashboardPages.tsx",+ dashboard_dir / "dashboardComponents.tsx",+ dashboard_dir / "pages" / "ModulesPage.tsx",+ ]+ frontend = "\n".join(p.read_text(encoding="utf-8") for p in sources if p.exists())assert "Object.entries(schema ?? {})" in frontendassert "field.required" in frontendassert "required={field.required}" in frontend