← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1701035] [NEW] Standard traits are not always available in tests

 

Public bug reported:

Several tests use the Database fixture, which cleans up the DB tables
after the tests are run. Some functional tests for traits, though, were
failing because standard traits were not found in the DB. Traits have a
flag so that standard traits from the os_traits library are only loaded
once at startup. So the problem is that one test would use the fixture,
loading the standard traits, and then clean up by removing the db
entries. The next test would use the fixture, but since the flag had
been set by the first test, the standard traits were not re-loaded,
causing failures.

** Affects: nova
     Importance: Medium
     Assignee: Ed Leafe (ed-leafe)
         Status: In Progress


** Tags: placement traits

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1701035

Title:
  Standard traits are not always available in tests

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Several tests use the Database fixture, which cleans up the DB tables
  after the tests are run. Some functional tests for traits, though,
  were failing because standard traits were not found in the DB. Traits
  have a flag so that standard traits from the os_traits library are
  only loaded once at startup. So the problem is that one test would use
  the fixture, loading the standard traits, and then clean up by
  removing the db entries. The next test would use the fixture, but
  since the flag had been set by the first test, the standard traits
  were not re-loaded, causing failures.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1701035/+subscriptions


Follow ups