You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(plugin): behavioral coverage for issue #7 factory-injection path
The earlier reflection tests in CERTInextCAPluginPublicSurfaceTests pin
the SHAPE of the v3.2-safe public surface (no v3.3-only type leaks on any
public constructor parameter), but did not exercise the end-to-end
BEHAVIOR of the new SetDomainValidatorFactory injection hook. Adds three
tests that close that gap:
- Dcv_SilentlyNoOps_WhenNoFactoryInjected_AndDcvEnabledTrue — proves the
v3.2 host scenario: parameterless construction, DcvEnabled=true in
config, no factory injected. Enroll must not throw, must not call
TrackOrder for DCV, must return the CA's pending response.
- SetDomainValidatorFactory_AfterConstruction_WiresFactoryForSubsequentEnroll —
proves the v3.3+ host scenario: parameterless construction, then
SetDomainValidatorFactory(factory), then Enroll uses the injected
factory end-to-end (DCV stages, verifies, returns issued cert).
- SetDomainValidatorFactory_SecondCall_OverridesFirst — property-style
setter semantics: the most recent call wins, important for hosts that
may resolve a fresh factory per-initialize cycle.
Also exposes PrimaryValidator on FakeDomainValidatorFactory so the third
test can assert which factory is currently stored without resorting to
reflection on internal fields.
145/145 unit tests pass.
0 commit comments