mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-05 15:47:13 +00:00
6 new component tests closing gaps identified in the test matrix audit: P20-T4-C3: Missing projection with active V2 core fails closed - v2Core != nil, no projection cached → gate with "missing_engine_projection" P20-T4-C6: Gate actually removes iSCSI target (enforcement) - real TargetServer → HasTarget(iqn)==true before gate - gate → HasTarget(iqn)==false (DisconnectVolume called) - ungate → HasTarget(iqn)==true (AddVolume restores) P20-T5-C3: FailoverDiagnosticSnapshot carries both mode fields - register volume with EngineProjectionMode + ClusterReplicationMode - trigger pending rebuild → volume appears in diagnostic - diagnostic entry carries both modes from registry lookup P20-T3-C5: V2PromotionMode diagnostic tri-state - disabled / placeholder_fail_closed / transport_ready - all three configurations produce correct diagnostic value P20-T1-C3: EngineProjectionMode proto round-trip - set value survives InfoMessageToProto → InfoMessageFromProto - empty value produces nil proto field (presence semantics) P20-T4-C8: ActivationGated proto round-trip - gated=true + reason survives round-trip - not-gated produces no spurious reason Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>