Rename application to Samsara and add assessment summary, detailed tabs and local Linux inventory
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user