TestMigrations should default to sqlite

Bug #851216 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Jay Pipes

Bug Description

Currently, TestMigrations will fail if a config file cannot be loaded. Instead, it should not fail and simply default to a local sqlite database.

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/glance

Reviewed: https://review.openstack.org/457
Committed: http://github.com/openstack/glance/commit/f45db5e754cd30461f47fe1b65f8cf3681d05874
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit f45db5e754cd30461f47fe1b65f8cf3681d05874
Author: Jay Pipes <email address hidden>
Date: Thu Sep 15 18:49:40 2011 -0400

    Fixes Bug #851216

    Fixes a recurring issue with tests that were
    decorated with the @runs_sql decorator where the
    file-based SQLite registry database used in those
    tests was not being properly cleaned up, which was causing
    some random-looking failures when python setup.py test was
    run for the DEB builders on Jenkins.

    According to Monty, files needed in testing do indeed need
    to be in MANIFEST.in, so I added the test_migrations.conf
    file to that. Sorry, BrianW!

    Change-Id: I6535b999921d159de5d957f6b70df3c13310e449

Changed in glance:
status: New → Fix Committed
Jay Pipes (jaypipes)
Changed in glance:
milestone: none → 2011.3
importance: Undecided → Low
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote :

Reviewed: https://review.openstack.org/473
Committed: http://github.com/openstack/glance/commit/b0021654d057274e9782b2cd51603c4dbb8fcc8f
Submitter: Jenkins
Branch: milestone-proposed

 status fixcommitted
 done

commit b0021654d057274e9782b2cd51603c4dbb8fcc8f
Author: Jay Pipes <email address hidden>
Date: Thu Sep 15 18:49:40 2011 -0400

    Fixes Bug #851216

    Fixes a recurring issue with tests that were
    decorated with the @runs_sql decorator where the
    file-based SQLite registry database used in those
    tests was not being properly cleaned up, which was causing
    some random-looking failures when python setup.py test was
    run for the DEB builders on Jenkins.

    According to Monty, files needed in testing do indeed need
    to be in MANIFEST.in, so I added the test_migrations.conf
    file to that. Sorry, BrianW!

    Change-Id: I6535b999921d159de5d957f6b70df3c13310e449

Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.