mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
fix(ci): scope the short SAZ redaction assertion to source data (#12115)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
1 parent
8062a14a3a
commit
b7059f8866
1 file changed
+5
-1
@@ -792,9 +792,13 @@ it("excludes explicit literals from XML, HTTP byte views, member coordinates and
|
||||
sha256: null,
|
||||
content_base64: null,
|
||||
});
|
||||
// The Evidence ID hashes the already redacted record. Its hexadecimal
|
||||
// spelling can contain the short session ID by coincidence.
|
||||
const { evidence_id, ...redactedRecord } = result;
|
||||
expect(JSON.stringify(redactedRecord)).not.toContain("0042");
|
||||
|
||||
const text = JSON.stringify(result);
|
||||
for (const secret of [
|
||||
"0042",
|
||||
"unicode-",
|
||||
"retained metadata",
|
||||
compressedBody.toString("base64"),
|
||||
|
||||
Reference in new issue
Block a user