← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1266962] [NEW] Remove set_time_override in timeutils

 

Public bug reported:

set_time_override was written as a helper function to mock utcnow in
unittests.

However we now use mock or fixture to mock our objects so
set_time_override has become obsolete.

We should first remove all usage of set_time_override from downstream
projects before deleting it from oslo.

** Affects: ceilometer
     Importance: Undecided
         Status: New

** Affects: cinder
     Importance: Undecided
         Status: New

** Affects: gantt
     Importance: Undecided
         Status: New

** Affects: glance
     Importance: Undecided
         Status: New

** Affects: ironic
     Importance: Undecided
         Status: New

** Affects: keystone
     Importance: Undecided
         Status: New

** Affects: manila
     Importance: Undecided
         Status: New

** Affects: marconi
     Importance: Undecided
         Status: New

** Affects: nova
     Importance: Undecided
         Status: New

** Affects: oslo
     Importance: Undecided
         Status: New

** Affects: oslo.messaging
     Importance: Undecided
         Status: New

** Affects: python-keystoneclient
     Importance: Undecided
         Status: New

** Affects: python-novaclient
     Importance: Undecided
         Status: New

** Affects: tuskar
     Importance: Undecided
         Status: New

** Also affects: ceilometer
   Importance: Undecided
       Status: New

** Also affects: cinder
   Importance: Undecided
       Status: New

** Also affects: glance
   Importance: Undecided
       Status: New

** Also affects: ironic
   Importance: Undecided
       Status: New

** Also affects: keystone
   Importance: Undecided
       Status: New

** Also affects: manila
   Importance: Undecided
       Status: New

** Also affects: marconi
   Importance: Undecided
       Status: New

** Also affects: nova
   Importance: Undecided
       Status: New

** Also affects: oslo.messaging
   Importance: Undecided
       Status: New

** Also affects: tuskar
   Importance: Undecided
       Status: New

** Also affects: python-keystoneclient
   Importance: Undecided
       Status: New

** Also affects: python-novaclient
   Importance: Undecided
       Status: New

** Also affects: gantt
   Importance: Undecided
       Status: New

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

Title:
  Remove set_time_override in timeutils

Status in OpenStack Telemetry (Ceilometer):
  New
Status in Cinder:
  New
Status in Gantt:
  New
Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in Ironic (Bare Metal Provisioning):
  New
Status in OpenStack Identity (Keystone):
  New
Status in Manila:
  New
Status in OpenStack Message Queuing Service (Marconi):
  New
Status in OpenStack Compute (Nova):
  New
Status in Oslo - a Library of Common OpenStack Code:
  New
Status in Messaging API for OpenStack:
  New
Status in Python client library for Keystone:
  New
Status in Python client library for Nova:
  New
Status in Tuskar:
  New

Bug description:
  set_time_override was written as a helper function to mock utcnow in
  unittests.

  However we now use mock or fixture to mock our objects so
  set_time_override has become obsolete.

  We should first remove all usage of set_time_override from downstream
  projects before deleting it from oslo.

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


Follow ups

References