Description:
PostgreSQL is supported by the application, but the integration test suite is not currently wired to run against PostgreSQL.
The repo contains PostgreSQL runtime support, but the integration test harness only supports mysql and sqlite. In particular:
tests/integration/testutils/test_utils.go restricts supported DB_TYPE values to mysql and sqlite
- the test DB bootstrap logic initializes only MySQL and SQLite schemas
build.sh only switches between tests/integration/repository/conf/deployment.yaml (MySQL) and tests/integration/repository/conf/deployment-sqlite.yaml (SQLite)
We currently have no integration-test coverage for PostgreSQL-specific behavior, even though PostgreSQL is a supported database.
It would be useful to add PostgreSQL integration test support by:
- adding a PostgreSQL integration test config
- extending the test bootstrap/setup flow to initialize PostgreSQL with
db_schema_postgres.sql
- updating
build.sh and test docs to support a PostgreSQL test target
Suggested Labels:
Type/Improvement, Area/Testing, DB/PostgreSQL
Affected Product Version:
Current main branch
OS, DB, other environment details and versions:
- OS: Any
- DB: PostgreSQL 14+ expected to be supported by the product
- Test framework:
tests/integration Go integration suite
- Build entrypoint:
./build.sh test_integration
Steps to reproduce:
- Inspect
tests/integration/testutils/test_utils.go
- Note that supported
DB_TYPE values are limited to mysql and sqlite
- Inspect
build.sh
- Note that integration config selection only supports MySQL and SQLite
- Inspect the repo for PostgreSQL test config/bootstrap support
- Observe that PostgreSQL schema exists, but there is no PostgreSQL integration test path
Related Issues:
#33 #7
Description:
PostgreSQL is supported by the application, but the integration test suite is not currently wired to run against PostgreSQL.
The repo contains PostgreSQL runtime support, but the integration test harness only supports
mysqlandsqlite. In particular:tests/integration/testutils/test_utils.gorestricts supportedDB_TYPEvalues tomysqlandsqlitebuild.shonly switches betweentests/integration/repository/conf/deployment.yaml(MySQL) andtests/integration/repository/conf/deployment-sqlite.yaml(SQLite)We currently have no integration-test coverage for PostgreSQL-specific behavior, even though PostgreSQL is a supported database.
It would be useful to add PostgreSQL integration test support by:
db_schema_postgres.sqlbuild.shand test docs to support a PostgreSQL test targetSuggested Labels:
Type/Improvement,Area/Testing,DB/PostgreSQLAffected Product Version:
Current
mainbranchOS, DB, other environment details and versions:
tests/integrationGo integration suite./build.sh test_integrationSteps to reproduce:
tests/integration/testutils/test_utils.goDB_TYPEvalues are limited tomysqlandsqlitebuild.shRelated Issues:
#33 #7