Skip to content

test: cover allowlist query checks#157

Open
hieunt170746 wants to merge 1 commit into
outerbase:mainfrom
hieunt170746:codex/add-allowlist-tests
Open

test: cover allowlist query checks#157
hieunt170746 wants to merge 1 commit into
outerbase:mainfrom
hieunt170746:codex/add-allowlist-tests

Conversation

@hieunt170746
Copy link
Copy Markdown

/claim #71

Summary

  • Add focused Vitest coverage for isQueryAllowed in the allowlist module.
  • Cover disabled enforcement and admin bypass paths that should avoid loading the allowlist.
  • Cover normalized SQL matching with a trailing semicolon, rejected query logging, and missing SQL error handling.

Verification

  • ./node_modules/.bin/vitest.cmd run src/allowlist/index.test.ts
  • ./node_modules/.bin/vitest.cmd run currently has unrelated pre-existing failures in src/rls/index.test.ts.

@hieunt170746 hieunt170746 force-pushed the codex/add-allowlist-tests branch from 505d188 to e27f00d Compare May 13, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant