refs #699: align HMM portal audit experience

This commit is contained in:
devmrko
2026-07-23 12:51:40 +09:00
parent 9e3840a4d7
commit a495e7a962
7 changed files with 393 additions and 378 deletions

View File

@@ -60,6 +60,25 @@ class DemoScenarioConfigTest(unittest.TestCase):
self.assertIn('[data-testid="stAppViewContainer"] li', source)
self.assertIn('[data-testid="stExpander"] summary', source)
self.assertIn('div[data-testid="stButton"] > button', source)
self.assertIn('[data-baseweb="tab-list"] [role="tab"]', source)
self.assertIn('[data-testid="stTab"]', source)
self.assertIn('[role="tab"][aria-selected="true"]', source)
def test_audit_tab_uses_hmm_access_audit_loaders(self) -> None:
root = Path(__file__).parents[1]
entrypoint = (root / "apps" / "poc4" / "mcp_discovery_ui.py").read_text(
encoding="utf-8"
)
renderer = (root / "src" / "agent_console" / "audit.py").read_text(
encoding="utf-8"
)
self.assertIn("FROM ADMIN.HMM_ACCESS_AUDIT", entrypoint)
self.assertIn("_load_hmm_audit_inventory", entrypoint)
self.assertIn("(protocol=tcps)(port=1521)", entrypoint)
self.assertIn("POC4_AUDIT_WALLET_PASSWORD", entrypoint)
self.assertIn("HMM 접근 관리", renderer)
self.assertNotIn('AUDIT_SCHEMA = "POC_2"', entrypoint)
def test_hmm_scenarios_are_enabled_and_unique(self) -> None:
path = Path(__file__).parents[1] / "config" / "hmm_demo_scenarios.json"