Some tests in test_db_api.py do not run as expected

Bug #1076023 reported by Arata Notsu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Michael Still

Bug Description

DbApiTestCase.test_instance_get_all_by_filters_regex_unsupported_db
and
DbApiTestCase.test_instance_get_all_by_filters_paginate

Both set the flag sql_connection="notdb://". But, connections to db is already established by the superclass(TestCase)'s setUp() before the flag is set. These tests may not perform as they are expected.

Michael Still (mikal)
Changed in nova:
status: New → Triaged
importance: Undecided → Low
Changed in nova:
assignee: nobody → Abishek Subramanian (absubram)
Michael Still (mikal)
Changed in nova:
assignee: Abishek Subramanian (absubram) → Michael Still (mikalstill)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/24068

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/24068
Committed: http://github.com/openstack/nova/commit/28a6ef007e2faa47fd4ad0d855098945eacf2317
Submitter: Jenkins
Branch: master

commit 28a6ef007e2faa47fd4ad0d855098945eacf2317
Author: Michael Still <email address hidden>
Date: Tue Mar 12 01:32:54 2013 +1100

    Refactor db tests to ensure that notdb driver is used.

    Resolves bug 1076023 by refactoring to ensure that the notdb driver
    is used for these tests.

    Change-Id: I94674d20c8fa320a5855bfa94eb694703fa23326

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc1 → 2013.1
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.