OVO to_dict() is returning timestamps with microseconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Kevin Benton |
Bug Description
to_dict() doesn't seem to be calling the stringify or to_primitive method on the objects because microseconds are being leaked out when trying to expose the created_
Traceback (most recent call last):
File "/opt/stack/
self.
File "/usr/local/
self.
File "/usr/local/
raise mismatch_error
testtools.
reference = {u'created_at': u'2016-09-03 01:08:00',
u'description': u'shared policy',
u'id': u'b24af3be-
u'name': u'test-
u'rules': [],
u'shared': True,
u'tenant_id': u'a88290171ee64
u'updated_at': u'2016-09-03 01:08:00'}
actual = {u'created_at': u'2016-09-03 01:08:00.106856',
u'description': u'shared policy',
u'id': u'b24af3be-
u'name': u'test-
u'rules': [],
u'shared': True,
u'tenant_id': u'a88290171ee64
u'updated_at': u'2016-09-03 01:08:00.106856'}
Changed in neutron: | |
assignee: | nobody → Kevin Benton (kevinbenton) |
milestone: | none → newton-rc1 |
summary: |
- OVO DateTimeField is not compatible with our timestamps + OVO to_dict() is returning timestamps with microseconds |
description: | updated |
Changed in neutron: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/365684
Review: https:/