mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 15:05:51 +00:00
fix(frida): preserve unknown capture policy facts (#9934)
This commit is contained in:
1 parent
133a849b2e
commit
3eae278da5
6 files changed
+118
-44
No files matched your search
@@ -100,6 +100,7 @@ it("keeps default Frida status identity and messages and refreshes every summary
|
||||
messages: [{ observed: 1 }],
|
||||
messages_truncated: false,
|
||||
});
|
||||
expect(complete.value.normalized_result).not.toHaveProperty("capture_limits");
|
||||
expect(complete.value.limitations.join("\n")).not.toContain(
|
||||
"no runtime override",
|
||||
);
|
||||
@@ -120,6 +121,7 @@ it("keeps default Frida status identity and messages and refreshes every summary
|
||||
},
|
||||
});
|
||||
expect(JSON.stringify(summary.value)).not.toContain('"messages":');
|
||||
expect(JSON.stringify(summary.value)).not.toContain('"capture_limits":');
|
||||
expect(reads).toBe(2);
|
||||
const parent = [...records.values()][0];
|
||||
expect(parent?.normalized_result).toMatchObject({
|
||||
@@ -127,7 +129,7 @@ it("keeps default Frida status identity and messages and refreshes every summary
|
||||
});
|
||||
expect(parent?.limitations).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.stringContaining("16777216"),
|
||||
expect.stringContaining("selected value is unknown"),
|
||||
expect.stringContaining(
|
||||
"Already discarded observations cannot be recovered",
|
||||
),
|
||||
@@ -162,7 +164,9 @@ it("names the Frida field cap and ignores flags inside a caller payload", () =>
|
||||
});
|
||||
if (!result.ok) throw result.error;
|
||||
const text = result.value.limitations.join("\n");
|
||||
expect(text).toContain("32768");
|
||||
expect(text).toContain("capture_limits.message_text_bytes");
|
||||
expect(text).toContain("selected value is unknown");
|
||||
expect(text).not.toContain("32768");
|
||||
expect(text).not.toContain("16777216");
|
||||
expect(text).not.toContain("4096");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user