fix(tolaria): C5A reason-code closed-set accepts C5D build code
RC_SEARCH_SOURCE_BUILD_FAILURE (added in5e41915, C5D search-source pipeline) was missing from test_reason_codes_closed_set, so the C5A suite falsely FAILed (18 vs 17). Pre-existing defect exposed by the C5D adoption fresh-checker regression gate; not introduced by747376e. Harden the assertion to the real closed set (len 18).
This commit is contained in:
parent
747376ebb0
commit
76512ddd48
1 changed files with 4 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ from rq_c5a import (
|
||||||
RC_UNKNOWN_LEGACY_OBJECT, RC_AUTH_FAILURE, RC_SEARCH_REBUILD_FAILURE,
|
RC_UNKNOWN_LEGACY_OBJECT, RC_AUTH_FAILURE, RC_SEARCH_REBUILD_FAILURE,
|
||||||
RC_TOLARIA_UNAVAILABLE, RC_FORGEJO_UNAVAILABLE,
|
RC_TOLARIA_UNAVAILABLE, RC_FORGEJO_UNAVAILABLE,
|
||||||
RC_SEARCH_UNAVAILABLE, RC_NETWORK_TIMEOUT, RC_MALFORMED_RESPONSE, RC_INTEGRITY_FAILURE,
|
RC_SEARCH_UNAVAILABLE, RC_NETWORK_TIMEOUT, RC_MALFORMED_RESPONSE, RC_INTEGRITY_FAILURE,
|
||||||
|
RC_SEARCH_SOURCE_BUILD_FAILURE,
|
||||||
REASON_CODES, OPERATIONS, SYNC_STATES, BOOTSTRAP_STATES,
|
REASON_CODES, OPERATIONS, SYNC_STATES, BOOTSTRAP_STATES,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -330,7 +331,9 @@ def test_reason_codes_closed_set():
|
||||||
assert RC_NETWORK_TIMEOUT in REASON_CODES
|
assert RC_NETWORK_TIMEOUT in REASON_CODES
|
||||||
assert RC_MALFORMED_RESPONSE in REASON_CODES
|
assert RC_MALFORMED_RESPONSE in REASON_CODES
|
||||||
assert RC_INTEGRITY_FAILURE in REASON_CODES
|
assert RC_INTEGRITY_FAILURE in REASON_CODES
|
||||||
assert len(REASON_CODES) == 17
|
# C5D-Erweiterung (search-source pipeline, commit 5e41915)
|
||||||
|
assert RC_SEARCH_SOURCE_BUILD_FAILURE in REASON_CODES
|
||||||
|
assert len(REASON_CODES) == 18
|
||||||
store = _new_store()
|
store = _new_store()
|
||||||
try:
|
try:
|
||||||
store.set_commit_error("c1", "FREIER_STRING", "x")
|
store.set_commit_error("c1", "FREIER_STRING", "x")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue