Skip to content

refactor: remove redundant test.sql fixture#716

Merged
RussH merged 3 commits intoopencats:masterfrom
anonymoususer72041:refactor/remove-test-sql
Feb 17, 2026
Merged

refactor: remove redundant test.sql fixture#716
RussH merged 3 commits intoopencats:masterfrom
anonymoususer72041:refactor/remove-test-sql

Conversation

@anonymoususer72041
Copy link
Contributor

This PR removes the legacy test/data/test.sql fixture and switches the test database bootstrap to the canonical schema file db/cats_schema.sql.

The Docker-based test setup now seeds opencatsdb via docker-entrypoint-initdb.d using db/cats_schema.sql and test/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.sql already contains baseline data, test/data/securityTests.sql updates its fixture IDs to avoid collisions while keeping relationships consistent.

@RussH RussH merged commit 2ed7f39 into opencats:master Feb 17, 2026
2 checks passed
@anonymoususer72041 anonymoususer72041 deleted the refactor/remove-test-sql branch February 17, 2026 11:59
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants