Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests against PostgreSQL, fix compatibility (#170)
* Make database url configurable for tests * Add github action for postgres, probably this is the beginning of a longer try-and-error phase * Add --command * Add MySQL, try using services * Enable logging * Try different logging * Remove that fancy fluff * Fix comment * Do not reset * Who did that typo? * Reset databases again * Correct database env var for postgres container * What was that * Reduce parallelization * Do not use BLOB * Make sure to disconnect when migration failed * Set mysql database again * Correctly run tests serially * WIP * Fix column type * Clean up * Add missing trait again * Bring back failing UNIQUE constraint * Make previous_operations in OperationRow an Option * Fix COALESCE type from int to text * Make previous_operation an Option in OperationFieldsJoinedRow * Update parse_operation_rows to account for None value previous_operations * Don't check for exact db error strings * Missing await * Typo * WIP massive test refactor making sure they get unwinded * Enable all features for the testing runtime * Fix ownership for tests with many cases and borrowed values * Don't use rstest shoul_panic macro * Make list_index INTEGER(255) * Revert list_index type change * Make columns Option in OperationFieldRow * Don't check for specific error message strings * Cast strings to numerics in get_paginated_log_entries() * Use ON CONFLICT to avoid task duplicates * Use COALESCE to compare nullable strings * Use test runner in all mutation tests * Revert removal of empty store in publish_entry test * Refactor test which used two dbs * Use test runner in query tests * Use test runner for http service test * Try different env var names for mariadb container * Try changing port configuration for mariadb container * Try using container label as hostname * Roll back port changes * Expose port properly * Remove MySQL support, fix async runtime of sqlx * Add entry to CHANGELOG.md * Give null values the same representation as index * Make fields in other rows also optional * Last tests using old database utilities * Clean up * Remove unnecessary comments, just unwrap test result * Make linters happy * Improve formatting of long case tests * Edit comments * Add some more comments Co-authored-by: Sam Andreae <contact@samandreae.com> Co-authored-by: Vincent Ahrend <mail@vincentahrend.com>
- Loading branch information