fix: harden legacy normalization and grants
This commit is contained in:
1 parent
3cdca5c82c
commit
74ab2eb85f
5 files changed
+198
-20
No files matched your search
@@ -31,3 +31,13 @@ test("0002 uses an explicit legacy kind instead of random UUID ordering for ambi
|
||||
expect(migration).toContain("in ('new_usage', 'repeat_download', 'legacy')");
|
||||
expect(migration).toContain("case_colliding_idempotency_keys");
|
||||
});
|
||||
|
||||
test("0002 reconstructs only already-normalized printable ASCII text", () => {
|
||||
expect(migration).not.toContain("btrim(");
|
||||
expect(migration).toContain(
|
||||
'octet_length(usage."purpose") = char_length(usage."purpose")',
|
||||
);
|
||||
expect(migration).toContain("!~ '[[:cntrl:]]'");
|
||||
expect(migration).toContain("left(usage.\"purpose\", 1) <> ' '");
|
||||
expect(migration).toContain("right(events.\"repeat_download_note\", 1) <> ' '");
|
||||
});
|
||||
Reference in new issue
Block a user