← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1295280] [NEW] Dependency Injection always injects optional after import

 

Public bug reported:

Dependency Injection is currently always loading optional dependencies
because they are registered in a _factories list on import, this list is
never cleared. While in practice production wont see this issue,
however, for test cases this is a broken mechanic. Tests cannot clear
the _Factories list because import only occurs once.

** Affects: keystone
     Importance: Low
         Status: Triaged

** Changed in: keystone
   Importance: Undecided => Medium

** Changed in: keystone
   Importance: Medium => Low

** Changed in: keystone
       Status: New => Confirmed

** Changed in: keystone
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1295280

Title:
  Dependency Injection always injects optional after import

Status in OpenStack Identity (Keystone):
  Triaged

Bug description:
  Dependency Injection is currently always loading optional dependencies
  because they are registered in a _factories list on import, this list
  is never cleared. While in practice production wont see this issue,
  however, for test cases this is a broken mechanic. Tests cannot clear
  the _Factories list because import only occurs once.

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


Follow ups

References