fix(tests): integ fixtures — to_analyse always present (066), full status keys, security_gate registered (022)
All checks were successful
CI / test (pull_request) Successful in 20s
All checks were successful
CI / test (pull_request) Successful in 20s
This commit is contained in:
@@ -38,12 +38,28 @@ CONFIRM = "44444444-4444-4444-4444-444444444444"
|
||||
# ORCH project: Confirm Deploy resolved. enduro-like project: NO confirm_deploy key.
|
||||
_STATES_SELF = {
|
||||
"in_progress": IN_PROGRESS,
|
||||
"to_analyse": IN_PROGRESS, # ORCH-066 integ: always present (alias)
|
||||
# ORCH-066 integ: full status-model keys alias to base UUIDs,
|
||||
# mirroring get_project_states() _STATE_ALIAS_FALLBACK in production.
|
||||
"analysis": IN_PROGRESS,
|
||||
"code_review": APPROVED,
|
||||
"awaiting_deploy": IN_PROGRESS,
|
||||
"deploying": IN_PROGRESS,
|
||||
"monitoring": APPROVED,
|
||||
"approved": APPROVED,
|
||||
"rejected": REJECTED,
|
||||
"confirm_deploy": CONFIRM,
|
||||
}
|
||||
_STATES_NONSELF = {
|
||||
"in_progress": IN_PROGRESS,
|
||||
"to_analyse": IN_PROGRESS, # ORCH-066 integ: always present (alias)
|
||||
# ORCH-066 integ: full status-model keys alias to base UUIDs,
|
||||
# mirroring get_project_states() _STATE_ALIAS_FALLBACK in production.
|
||||
"analysis": IN_PROGRESS,
|
||||
"code_review": APPROVED,
|
||||
"awaiting_deploy": IN_PROGRESS,
|
||||
"deploying": IN_PROGRESS,
|
||||
"monitoring": APPROVED,
|
||||
"approved": APPROVED,
|
||||
"rejected": REJECTED,
|
||||
}
|
||||
|
||||
@@ -38,6 +38,16 @@ CONFIRM = "44444444-4444-4444-4444-444444444444"
|
||||
|
||||
_STATES = {
|
||||
"in_progress": IN_PROGRESS,
|
||||
# ORCH-066 integ: real get_project_states always exposes to_analyse
|
||||
# (aliased to in_progress on projects without the dedicated status).
|
||||
"to_analyse": IN_PROGRESS,
|
||||
# ORCH-066 integ: full status-model keys alias to base UUIDs,
|
||||
# mirroring get_project_states() _STATE_ALIAS_FALLBACK in production.
|
||||
"analysis": IN_PROGRESS,
|
||||
"code_review": APPROVED,
|
||||
"awaiting_deploy": IN_PROGRESS,
|
||||
"deploying": IN_PROGRESS,
|
||||
"monitoring": APPROVED,
|
||||
"approved": APPROVED,
|
||||
"rejected": REJECTED,
|
||||
"confirm_deploy": CONFIRM,
|
||||
|
||||
@@ -138,6 +138,7 @@ def test_tc23_qg_checks_registry_unchanged():
|
||||
"check_ci_green", "check_review_approved", "check_tests_passed",
|
||||
"check_reviewer_verdict", "check_tests_local", "check_deploy_status",
|
||||
"check_staging_status", "check_branch_mergeable", "check_staging_image_fresh",
|
||||
"check_security_gate", # ORCH-022 integ: security-gate registered
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -364,6 +364,9 @@ def _patch_states_with_terminals(monkeypatch, *, alias_done_to_approved=False):
|
||||
done_uuid = _APPROVED if alias_done_to_approved else _DONE
|
||||
states = {
|
||||
"in_progress": _IN_PROGRESS,
|
||||
# ORCH-066 integ: real get_project_states() always exposes to_analyse,
|
||||
# aliased to in_progress on projects without the dedicated status.
|
||||
"to_analyse": _IN_PROGRESS,
|
||||
"approved": _APPROVED,
|
||||
"rejected": _REJECTED,
|
||||
"done": done_uuid,
|
||||
@@ -653,6 +656,7 @@ def test_tc10_done_silent_on_all_projects(monkeypatch):
|
||||
|
||||
states = {
|
||||
"in_progress": _IN_PROGRESS,
|
||||
"to_analyse": _IN_PROGRESS, # ORCH-066 integ: always present
|
||||
"approved": _APPROVED,
|
||||
"rejected": _REJECTED,
|
||||
"done": _DONE,
|
||||
|
||||
@@ -45,6 +45,10 @@ def fresh_db(monkeypatch, tmp_path):
|
||||
{**stage_engine.QG_CHECKS,
|
||||
"check_staging_status": _pass,
|
||||
"check_branch_mergeable": _pass,
|
||||
# ORCH-022 integ: security-gate now runs on the deploy-staging->deploy
|
||||
# edge; this 059 test exercises the CTA, not the scanner (022 has its
|
||||
# own tests), so pass it like the other deploy sub-gates.
|
||||
"check_security_gate": _pass,
|
||||
"check_staging_image_fresh": _pass},
|
||||
)
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user