Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1389

Prevent tests from being run on production databases

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • data store
    • None

      Right now someone could execute test.sh in a production container and (partially) destroy the production database. Clearly this is less than desirable and needs to be addressed ASAP.

      We've not settled on a solution, but some candidates are:

      • If tables have more than 10k rows (more rows than tests create), abort.
      • Check for the existence of tables/schemas when tests start, and abort if present.
      • Check for the existence of a hand created table that indicates the DB server is a production server.

      We'll post more details here on how we plan to solve this before we start implementation.

            rob Robert Kaye
            rob Robert Kaye
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package