fix(WH-ENG-20260822-AUDIT-E2-01): bind declared fixtures
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a025c2-407a-7a32-b40a-f37a52f03f62
This commit is contained in:
parent
461554a749
commit
1418dac0de
3 changed files with 39 additions and 4 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import importlib.util
|
||||
import json
|
||||
from argparse import Namespace
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
|
|
@ -43,3 +45,20 @@ def test_post_headers_bind_idempotency_key_to_event_id():
|
|||
def test_get_headers_have_no_idempotency_key():
|
||||
headers = runner.request_headers("secret", "eng-1", "corr-1", None)
|
||||
assert "Idempotency-Key" not in headers
|
||||
|
||||
|
||||
def test_invocation_fixture_set_is_declared_by_current_engagement():
|
||||
engagement = json.loads(
|
||||
Path("engagements/2026-08-22-audit-core-e2.json").read_text()
|
||||
)
|
||||
args = Namespace(
|
||||
tenant_a="tenant:trial:whitehat-a-20260822",
|
||||
tenant_b="tenant:trial:whitehat-b-20260822",
|
||||
event_a="whitehat-e2-event-a-20260822",
|
||||
event_b="whitehat-e2-event-b-20260822",
|
||||
absent_event="whitehat-e2-absent-20260822",
|
||||
forged_event="whitehat-e2-forged-b-20260822",
|
||||
correlation="whitehat-e2-correlation-20260822",
|
||||
)
|
||||
|
||||
assert runner.invocation_fixture_ids(args) <= set(engagement["fixture_ids"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue