refactor: remove redundant test.sql fixture#716
Merged
RussH merged 3 commits intoopencats:masterfrom Feb 17, 2026
Merged
Conversation
anonymoususer72041
added a commit
to anonymoususer72041/OpenCATS
that referenced
this pull request
Feb 17, 2026
* Stop using test/data/test.sql * Rebase security test fixtures to non-conflicting IDs * Delete test.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the legacy
test/data/test.sqlfixture and switches the test database bootstrap to the canonical schema filedb/cats_schema.sql.The Docker-based test setup now seeds
opencatsdbviadocker-entrypoint-initdb.dusingdb/cats_schema.sqlandtest/data/securityTests.sql. The security test import script was updated accordingly and the testing documentation was adjusted to match the new initialization flow.Because
cats_schema.sqlalready contains baseline data,test/data/securityTests.sqlupdates its fixture IDs to avoid collisions while keeping relationships consistent.