Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-18032

Make test database removal resilient using IF EXISTS

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • rhos-18.0.10 FR 3
    • None
    • Eventlet
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • rhos-ops-platform-services-pidone
    • Sprint 2
    • 1
    • Moderate

      Goal:

      Improve the reliability of test database cleanup routines by ensuring that dropping a database does not raise an error if the database does not exist. This change reduces noise and fragility in test environments using MySQL and PostgreSQL by adding the IF EXISTS clause to DROP DATABASE statements.

      Acceptance Criteria:

      • Verify that DROP DATABASE IF EXISTS is used in all relevant test cleanup methods for MySQL and PostgreSQL.
      • Verify that tests pass even if the database does not exist before the cleanup.
      • Verify that no exception is raised during database teardown when the target database is missing.
      • Verify that database cleanup logic remains functional and does remove the database when it does exist.

              hberaud Hervé Beraud
              hberaud Hervé Beraud
              rhos-dfg-pidone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: