← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1258041] [NEW] Unit test can not make sense in tests for availability_zones.reset_cache

 

Public bug reported:

In test_availability_zones.py and and test_compute.py,  There are two
tests for availability_zones.reset_cache which can not make sense.

Follow code:
        az.reset_cache()
        self.assertIsNone(az._get_cache().get('cache'))

if we do not add cache for key 'cache',  the result of
az._get_cache().get('cache') before  az.reset_cache() is same as after
az.reset_cache(). So it can not make sense.

** Affects: nova
     Importance: Undecided
     Assignee: Chen Xiao (chenxiao)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Chen Xiao (chenxiao)

-- 
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/1258041

Title:
  Unit test can not make sense in tests for
  availability_zones.reset_cache

Status in OpenStack Compute (Nova):
  New

Bug description:
  In test_availability_zones.py and and test_compute.py,  There are two
  tests for availability_zones.reset_cache which can not make sense.

  Follow code:
          az.reset_cache()
          self.assertIsNone(az._get_cache().get('cache'))

  if we do not add cache for key 'cache',  the result of
  az._get_cache().get('cache') before  az.reset_cache() is same as after
  az.reset_cache(). So it can not make sense.

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


Follow ups

References