Swaped from CIS to NIST controls
This commit is contained in:
@@ -47,8 +47,8 @@ def create_document_for_organization(confirmation_email):
|
||||
weight=weight,
|
||||
likelihood=likelihood
|
||||
)
|
||||
controls_content += f" - Control: {control.name} (Impact Weight: {weight}/10) (Likelihood: {likelihood}/10)\n"
|
||||
|
||||
label = f"{control.subcategory} - {control.function or ''}".rstrip(" -")
|
||||
controls_content += f" - Control: {label} (Impact Weight: {weight}/10) (Likelihood: {likelihood}/10)\n"
|
||||
controls_content += "\n"
|
||||
|
||||
document.add_segment('body', controls_content)
|
||||
|
||||
@@ -32,7 +32,7 @@ class CeleryTaskTests(TestCase):
|
||||
integration_level="Highly Integrated"
|
||||
)
|
||||
self.risk = Risk.objects.create(risk_id="1", risk_name="Test Risk", category="Category1", primary_impact="High")
|
||||
self.control = Control.objects.create(name="Test Control")
|
||||
self.control = Control.objects.create(subcategory="PR.AA-01", function="Identity Management")
|
||||
|
||||
@patch("backend.accounts.tasks.get_top_risk")
|
||||
@patch("backend.accounts.tasks.get_controls_for_risk")
|
||||
|
||||
Reference in New Issue
Block a user