refactor(iwooos): prioritize live security closure
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m26s
CD Pipeline / build-and-deploy (push) Successful in 15m1s
CD Pipeline / post-deploy-checks (push) Successful in 2m8s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 0s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 26s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m26s
CD Pipeline / build-and-deploy (push) Successful in 15m1s
CD Pipeline / post-deploy-checks (push) Successful in 2m8s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 0s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 26s
This commit is contained in:
@@ -861,3 +861,37 @@ def test_wazuh_runtime_api_is_public_safe(monkeypatch: pytest.MonkeyPatch) -> No
|
||||
assert "stdout" not in response.text
|
||||
assert "ssh_key" not in response.text
|
||||
assert "WAZUH_API_PASSWORD" not in response.text
|
||||
|
||||
|
||||
def test_iwooos_runtime_workspace_defaults_to_live_closure_without_legacy_text_wall() -> None:
|
||||
repo_root = Path(__file__).resolve().parents[3]
|
||||
source = (
|
||||
repo_root / "apps/web/src/app/[locale]/iwooos/page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
|
||||
assert "useState<IwoooSWorkspaceView>('runtime')" in source
|
||||
runtime_panel = source.split(
|
||||
"<IwoooSWorkspacePanel active={workspaceView === 'runtime'}>", 1
|
||||
)[1].split("</IwoooSWorkspacePanel>", 1)[0]
|
||||
ledger_panel = source.split(
|
||||
"<IwoooSWorkspacePanel active={workspaceView === 'ledger'}>", 1
|
||||
)[1].split("</IwoooSWorkspacePanel>", 1)[0]
|
||||
|
||||
assert "<IwoooSSecurityToolClosureBoard />" in runtime_panel
|
||||
assert "<IwoooSCommandRail />" in runtime_panel
|
||||
legacy_boards = (
|
||||
"<IwoooSAgentBountySecurityOnboardingBoard />",
|
||||
"<IwoooSRolloutRiskReadOnlyBoard />",
|
||||
"<IwoooSWazuhIntrusionReadbackBoard />",
|
||||
"<IwoooSRuntimeSecurityReadbackBoard />",
|
||||
"<IwoooSWazuhLiveRouteReadbackBoard />",
|
||||
"<IwoooSWazuhReleaseGateBoard />",
|
||||
"<IwoooSWazuhManagedHostCoverageBoard />",
|
||||
"<IwoooSWazuhManagerRegistryReviewerValidationBoard />",
|
||||
"<IwoooSWazuhLiveMetadataEnvGateBoard />",
|
||||
"<IwoooSSecurityOperatingSystemBoard />",
|
||||
"<IwoooSSocSiemKaliWazuhIntegrationBoard />",
|
||||
"<IwoooSP0SecurityIncidentConvergenceBoard />",
|
||||
)
|
||||
assert all(board not in runtime_panel for board in legacy_boards)
|
||||
assert all(board in ledger_panel for board in legacy_boards)
|
||||
|
||||
@@ -25114,7 +25114,7 @@ function HostOwnerDecisionRecordHumanRecordOwnerReviewPreparationChecklistCard({
|
||||
export default function IwoooSPage({ params }: { params: { locale: string } }) {
|
||||
const t = useTranslations('iwooos')
|
||||
const ia = useTranslations('iwooos.informationArchitecture')
|
||||
const [workspaceView, setWorkspaceView] = useState<IwoooSWorkspaceView>('overview')
|
||||
const [workspaceView, setWorkspaceView] = useState<IwoooSWorkspaceView>('runtime')
|
||||
|
||||
return (
|
||||
<AppLayout locale={params.locale} fullBleed>
|
||||
@@ -25146,18 +25146,6 @@ export default function IwoooSPage({ params }: { params: { locale: string } }) {
|
||||
<IwoooSWorkspacePanel active={workspaceView === 'runtime'}>
|
||||
<IwoooSSecurityToolClosureBoard />
|
||||
<IwoooSCommandRail />
|
||||
<IwoooSAgentBountySecurityOnboardingBoard />
|
||||
<IwoooSRolloutRiskReadOnlyBoard />
|
||||
<IwoooSWazuhIntrusionReadbackBoard />
|
||||
<IwoooSRuntimeSecurityReadbackBoard />
|
||||
<IwoooSWazuhLiveRouteReadbackBoard />
|
||||
<IwoooSWazuhReleaseGateBoard />
|
||||
<IwoooSWazuhManagedHostCoverageBoard />
|
||||
<IwoooSWazuhManagerRegistryReviewerValidationBoard />
|
||||
<IwoooSWazuhLiveMetadataEnvGateBoard />
|
||||
<IwoooSSecurityOperatingSystemBoard />
|
||||
<IwoooSSocSiemKaliWazuhIntegrationBoard />
|
||||
<IwoooSP0SecurityIncidentConvergenceBoard />
|
||||
</IwoooSWorkspacePanel>
|
||||
|
||||
<IwoooSWorkspacePanel active={workspaceView === 'evidence'}>
|
||||
|
||||
Reference in New Issue
Block a user