Tests for the gateway's OCSF events each carried their own copy of the
same fixtures: converting captured events to JSON, the request ID and
peer address, running a handler inside a routed request, and checking
event shapes. They now share them:
- OcsfCapture::json_events returns captured events as their exported
JSON.
- auth::audit::test_support holds the test request origin, audited()
for running a handler as a routed request, and assertions for
authentication failures, logons, denials, boundary findings, the
request origin, and redacted secrets. The event assertions also check
each event against its OCSF class schema, which the handler tests did
not do before.
- auth::principal::test_support builds the OIDC user and gateway-JWT
sandbox principals that several test modules defined identically.
Refs #2912
Signed-off-by: Kris Hicks <khicks@nvidia.com>