Prepare receipt-bound audit E2 third attempt
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a02991-be07-7bb3-8b6d-e9701b5621de
This commit is contained in:
parent
0525e632d7
commit
96d6781036
12 changed files with 440 additions and 27 deletions
|
|
@ -84,3 +84,44 @@ def test_retry_invocation_fixture_set_is_declared_and_distinct():
|
|||
assert fixtures <= set(engagement["fixture_ids"])
|
||||
assert fixtures.isdisjoint(previous["fixture_ids"])
|
||||
assert engagement["engagement_id"] != previous["engagement_id"]
|
||||
|
||||
|
||||
def test_report_uses_supplied_authorization_id():
|
||||
args = Namespace(
|
||||
engagement_id="WH-ENG-EXAMPLE",
|
||||
authorization_id="operator-session-example",
|
||||
target_revision="sha256:" + "a" * 64,
|
||||
)
|
||||
report = runner.build_report(
|
||||
args,
|
||||
started="2026-08-22T22:00:00Z",
|
||||
outcome="pass",
|
||||
attempted_operations=9,
|
||||
results=[],
|
||||
limitations=[],
|
||||
)
|
||||
assert report["authorization_id"] == "operator-session-example"
|
||||
assert report["engagement_id"] == "WH-ENG-EXAMPLE"
|
||||
assert report["attempted_operations"] == 9
|
||||
|
||||
|
||||
def test_third_attempt_fixtures_are_new_and_complete():
|
||||
previous = json.loads(
|
||||
Path("engagements/2026-08-22-audit-core-e2-02.json").read_text()
|
||||
)
|
||||
engagement = json.loads(
|
||||
Path("engagements/2026-08-22-audit-core-e2-03.json").read_text()
|
||||
)
|
||||
args = Namespace(
|
||||
tenant_a="tenant:trial:whitehat-a-20260822-03",
|
||||
tenant_b="tenant:trial:whitehat-b-20260822-03",
|
||||
event_a="whitehat-e2-event-a-20260822-03",
|
||||
event_b="whitehat-e2-event-b-20260822-03",
|
||||
absent_event="whitehat-e2-absent-20260822-03",
|
||||
forged_event="whitehat-e2-forged-b-20260822-03",
|
||||
correlation="whitehat-e2-correlation-20260822-03",
|
||||
)
|
||||
fixtures = runner.invocation_fixture_ids(args)
|
||||
assert fixtures <= set(engagement["fixture_ids"])
|
||||
assert fixtures.isdisjoint(previous["fixture_ids"])
|
||||
assert engagement["engagement_id"] != previous["engagement_id"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue