test(ghidra): check structured snapshot profile mismatch (#8536)
This commit is contained in:
1 parent
2be2d006b8
commit
15107aa81b
1 file changed
+5
-5
@@ -126,11 +126,11 @@ export async function verifyLegacyGhidraReferenceSnapshot(
|
||||
assert.equal(reply.isError, true);
|
||||
const mcpRejection = requireMcpToolError(reply);
|
||||
assert.equal(mcpRejection.code, "evidence_integrity_mismatch");
|
||||
assert.match(mcpRejection.details.reason, /profile_mismatch/u);
|
||||
assert.match(
|
||||
mcpRejection.remediation.action,
|
||||
/without this snapshot.*fresh snapshot/u,
|
||||
);
|
||||
assert.deepEqual(mcpRejection.details.binding_mismatch.profile_digest, {
|
||||
snapshot: legacyProfile.digest,
|
||||
selected: observed.analysis_profile.digest,
|
||||
});
|
||||
assert.match(mcpRejection.remediation.action, /fresh snapshot/u);
|
||||
assert.deepEqual(
|
||||
requireMcpLifecycleResult(
|
||||
await client.callTool({ name: "binary_session", arguments: {} }),
|
||||
|
||||
Reference in new issue
Block a user