Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Autosubmit API Autosubmit API
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • Autosubmit APIAutosubmit API
  • Issues
  • #80
Closed
Open
Issue created May 23, 2024 by Luiggi Tenorio Ku@ltenorioOwner

Pg testing strategy

As part of the Postgres support #74 !20 , we need to run the same tests we have in SQLite using Postgres as the database backend.

For that, I think the best strategy is:

  1. Isolate Autosubmit root dir with the testing cases in two temp directories. One with the .db files for SQLite and the other without them for Postgres.
  2. Copy the content of the .db files in the Postgres testing instance.
  3. Parametrize a fixture to use both strategies.

These changes are going to be done by just modifying the fixtures and avoiding modifying all the current tests we have.

Assignee
Assign to
Time tracking