feat(web): bridge security control pages to IwoooS
This commit is contained in:
@@ -85,6 +85,18 @@ def validate(root: Path) -> None:
|
||||
standalone_compliance_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "compliance" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
alerts_page = (root / "apps" / "web" / "src" / "app" / "[locale]" / "alerts" / "page.tsx").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
authorizations_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "authorizations" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
governance_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "governance" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
errors_panel = (root / "apps" / "web" / "src" / "components" / "panels" / "ErrorsPanel.tsx").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
iwooos_bridge = (
|
||||
root / "apps" / "web" / "src" / "components" / "security" / "iwooos-read-only-bridge.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
@@ -251,6 +263,7 @@ def validate(root: Path) -> None:
|
||||
"s2_57_awooop_tenants_iwooos_tenant_scope_candidate",
|
||||
"s2_58_awooop_runs_iwooos_run_state_candidate",
|
||||
"s2_59_existing_security_pages_iwooos_reverse_bridge",
|
||||
"s2_60_security_control_pages_iwooos_reverse_bridge",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -315,6 +328,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_existing_security_pages_iwooos_reverse_bridge",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_security_control_pages_iwooos_reverse_bridge",
|
||||
)
|
||||
|
||||
assert_equal("rollout_policy.schema_version", rollout_policy["schema_version"], "security_rollout_policy_v1")
|
||||
assert_equal("rollout_policy.default_mode", rollout_policy["default_mode"], "observe")
|
||||
@@ -5081,6 +5099,14 @@ def validate(root: Path) -> None:
|
||||
]:
|
||||
assert_text_contains("existing_security_pages.iwooos_bridge_import", source_text, "IwoooSReadOnlyBridge")
|
||||
assert_text_contains("existing_security_pages.iwooos_bridge_render", source_text, "<IwoooSReadOnlyBridge />")
|
||||
for source_text in [
|
||||
alerts_page,
|
||||
authorizations_page,
|
||||
governance_page,
|
||||
errors_panel,
|
||||
]:
|
||||
assert_text_contains("security_control_pages.iwooos_bridge_import", source_text, "IwoooSReadOnlyBridge")
|
||||
assert_text_contains("security_control_pages.iwooos_bridge_render", source_text, "<IwoooSReadOnlyBridge />")
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
|
||||
Reference in New Issue
Block a user