myxce/src/xceadmin/tests
Rongsong Shen c79ccf0fae
feat(dirty-content-fingerprint): xceadmin shows fingerprint in --version
Adds DIRTY_FINGERPRINT = "" to _build_info.py's committed fallback stub
and cli.py's separate ImportError fallback class. New
_compose_version_display() applies the strip-and-append rule via a
genuine anchored removesuffix("-dirty"), mirroring the C/Go
implementations (tasks 3.1/4.4/4.5).

Updates one pre-existing test whose hard-coded literal-GIT_COMMIT
assertion no longer holds once a fingerprint is present, to compute its
expected value via the production function instead -- independently
assessed by review as a legitimate strengthening, not a weakened check.
4 new dedicated unit tests independently guard the transform itself with
hard-coded literal assertions, including an anchored-suffix-not-blind-
substring regression case.

Verified independently by review (including a second, differently-
constructed mutation test) across both install paths via a full real
/xce-build xceadmin cycle: editable install shows "unknown, unknown" with
no import error; wheel built from the dirty tree shows <hash>-<fingerprint>,
never <hash>-dirty-<fingerprint>. 267 passed/3 skipped.

This completes all xceadmin work (tasks 5.1-5.2) for this spec.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 09:20:27 +00:00
..
fixtures refactor(controller,xceadmin): drop generic Resource.unit, hardcode bytes for maxmem 2026-08-13 08:27:16 +00:00
_live_e2e_common.py wip(admin-config-tool): task 6.3 HA E2E test (blocked, flaky primary-push) 2026-07-31 08:09:36 +00:00
conftest.py fix(admin-config-tool): unwrap Request reply envelope before decoding as RequestReply 2026-07-30 09:43:56 +00:00
test_cli.py feat(dirty-content-fingerprint): xceadmin shows fingerprint in --version 2026-08-21 09:20:27 +00:00
test_cli_scheduler_mock.py test(scheduler-core): xceadmin scheduler CLI end-to-end mock-server tests (task 10.6) 2026-08-06 08:12:12 +00:00
test_config_build.py fix(admin-config-tool): resolve xceadmin config build warnings 2026-07-23 09:10:14 +00:00
test_config_dump.py feat(xceadmin): add 'config dump' command and size-string thresholds 2026-08-16 03:56:52 +00:00
test_config_push_mock.py fix(xceadmin): probe_config uses Request envelope + follow_redirects (bug-1506, bug-1507) 2026-08-10 09:53:48 +00:00
test_discovery.py fix(admin-config-tool): unwrap Request reply envelope before decoding as RequestReply 2026-07-30 09:43:56 +00:00
test_e2e_live_ha_push.py test(xceadmin): capture live HA E2E stderr instead of DEVNULL (bug-1485 investigation) 2026-08-02 04:36:57 +00:00
test_e2e_live_push.py wip(admin-config-tool): task 6.3 HA E2E test (blocked, flaky primary-push) 2026-07-31 08:09:36 +00:00
test_errors.py feat(scheduler-core): build xceadmin scheduler recording client functions (task 10.3) 2026-08-06 04:43:40 +00:00
test_mapping.py feat(xceadmin): add 'config dump' command and size-string thresholds 2026-08-16 03:56:52 +00:00
test_scheduler.py feat(scheduler-core): build xceadmin scheduler dump command (task 10.4) 2026-08-06 05:29:15 +00:00
test_schema.py feat(admin-config-tool): task 2.2 - xcecommon.schema 2026-07-22 04:43:16 +00:00
test_schema_bundling.py feat(admin-config-tool): tasks 5.1-5.3 - mapping/wire coverage confirmed, schema bundling fix 2026-07-22 09:51:42 +00:00
test_validation.py feat(admin-config-tool): task 2.1 - xcecommon.validation 2026-07-22 04:21:53 +00:00
test_wire.py feat(admin-config-tool): drop ha/data/ entirely, match real client TLS 2026-07-22 14:50:51 +00:00