Rename application to Samsara and add assessment summary, detailed tabs and local Linux inventory

This commit is contained in:
2026-10-30 10:25:55 -07:00
parent 365f97942a
commit 967b2bd46a
37 changed files with 985 additions and 541 deletions

View File

@@ -2,10 +2,10 @@ import json
from pathlib import Path
import tempfile
import unittest
from server_buddy.core.validation import validate_hostname
from server_buddy.collectors.demo import collect_demo, DEMO_HOST
from server_buddy.analyzers.assessment import assess
from server_buddy.reporting.export import export_html, export_json
from samsara.core.validation import validate_hostname
from samsara.collectors.demo import collect_demo, DEMO_HOST
from samsara.analyzers.assessment import assess
from samsara.reporting.export import export_html, export_json
class CoreTests(unittest.TestCase):
def test_hostname(self):
@@ -39,6 +39,8 @@ class CoreTests(unittest.TestCase):
text = report.read_text()
self.assertNotIn('<script>', text)
self.assertIn('SYNTHETIC', text)
self.assertIn('<title>Samsara</title>', text)
self.assertIn('Samsara assessment', text)
self.assertIn('missing evidence', text)
self.assertIn('manual verification', text)
output = Path(directory) / 'report.json'