feat(web): show GitHub readiness in AwoooP contracts
This commit is contained in:
@@ -277,6 +277,7 @@ def validate(root: Path) -> None:
|
||||
"s2_62_iwooos_frontend_surface_connection_board",
|
||||
"s2_63_iwooos_github_primary_readiness_board",
|
||||
"s2_64_awooop_work_items_github_primary_readiness_candidate",
|
||||
"s2_65_awooop_contracts_github_primary_readiness_candidate",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -366,6 +367,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_awooop_work_items_github_primary_readiness_candidate",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_awooop_contracts_github_primary_readiness_candidate",
|
||||
)
|
||||
|
||||
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")
|
||||
@@ -5272,6 +5278,52 @@ def validate(root: Path) -> None:
|
||||
key,
|
||||
)
|
||||
|
||||
assert_text_contains(
|
||||
"awooop_contracts_page.github_primary_readiness_candidate_panel",
|
||||
awooop_contracts_page,
|
||||
"GitHubPrimaryReadinessContractCandidatePanel",
|
||||
)
|
||||
for text in [
|
||||
"repo_creation_authorized=false",
|
||||
"refs_mutation_authorized=false",
|
||||
"secret_value_collection_allowed=false",
|
||||
"github_primary_switch_authorized=false",
|
||||
"gitea_disablement_authorized=false",
|
||||
"runtime_execution_authorized=false",
|
||||
"action_buttons_allowed=false",
|
||||
]:
|
||||
assert_text_contains("awooop_contracts_page.github_primary_boundary", awooop_contracts_page, text)
|
||||
for text in [
|
||||
"source_control_primary_readiness_gate_v1",
|
||||
"source_control_owner_response_validation_rollup_v1",
|
||||
"source_control_primary_rollback_adr_v1",
|
||||
"source_control_workflow_secret_name_inventory_v1",
|
||||
"iwooos_posture_projection_v1",
|
||||
]:
|
||||
assert_text_contains("awooop_contracts_page.github_primary_refs", awooop_contracts_page, text)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
"badge",
|
||||
"contractRefsTitle",
|
||||
"boundaryLabel",
|
||||
"boundaryTitle",
|
||||
"boundaryDetail",
|
||||
"openIwooos",
|
||||
"metrics",
|
||||
"contractRefs",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.awooop.contracts.githubPrimaryReadinessCandidate",
|
||||
list(web_messages_zh["awooop"]["contracts"]["githubPrimaryReadinessCandidate"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.awooop.contracts.githubPrimaryReadinessCandidate",
|
||||
list(web_messages_en["awooop"]["contracts"]["githubPrimaryReadinessCandidate"].keys()),
|
||||
key,
|
||||
)
|
||||
|
||||
assert_text_contains("iwooos_bridge.component", iwooos_bridge, "IwoooSReadOnlyBridge")
|
||||
assert_text_contains("iwooos_bridge.testid", iwooos_bridge, 'data-testid="iwooos-read-only-bridge"')
|
||||
assert_text_contains("iwooos_bridge.iwooos_link", iwooos_bridge, 'href="/iwooos"')
|
||||
|
||||
Reference in New Issue
Block a user