fix timestamps to match documented ec2 api
fixes bug: 823503 Update to the dateTime format to provide three places of precision to microseconds. This change makes the API match the ec2 documents. Change-Id: I765e64e99042ade9fa996dfb1dee603d363f9b2c
This commit is contained in:
1
Authors
1
Authors
@@ -119,6 +119,7 @@ Loganathan Parthipan <parthipan@hp.com>
|
|||||||
Lorin Hochstein <lorin@nimbisservices.com>
|
Lorin Hochstein <lorin@nimbisservices.com>
|
||||||
Lvov Maxim <usrleon@gmail.com>
|
Lvov Maxim <usrleon@gmail.com>
|
||||||
Mandell Degerness <mdegerne@gmail.com>
|
Mandell Degerness <mdegerne@gmail.com>
|
||||||
|
Mark McClain <mark.mcclain@dreamhost.com>
|
||||||
Mark McLoughlin <markmc@redhat.com>
|
Mark McLoughlin <markmc@redhat.com>
|
||||||
Mark Washenberger <mark.washenberger@rackspace.com>
|
Mark Washenberger <mark.washenberger@rackspace.com>
|
||||||
Maru Newby <mnewby@internap.com>
|
Maru Newby <mnewby@internap.com>
|
||||||
|
|||||||
@@ -242,14 +242,14 @@ class ApiEc2TestCase(test.TestCase):
|
|||||||
"%Y-%m-%d %H:%M:%S.%f")
|
"%Y-%m-%d %H:%M:%S.%f")
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
conv(time_to_convert),
|
conv(time_to_convert),
|
||||||
'2011-02-21T20:14:10Z')
|
'2011-02-21T20:14:10.634Z')
|
||||||
# mysqlite database representation
|
# mysqlite database representation
|
||||||
time_to_convert = datetime.datetime.strptime(
|
time_to_convert = datetime.datetime.strptime(
|
||||||
"2011-02-21 19:56:18",
|
"2011-02-21 19:56:18",
|
||||||
"%Y-%m-%d %H:%M:%S")
|
"%Y-%m-%d %H:%M:%S")
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
conv(time_to_convert),
|
conv(time_to_convert),
|
||||||
'2011-02-21T19:56:18Z')
|
'2011-02-21T19:56:18.000Z')
|
||||||
|
|
||||||
def test_xmlns_version_matches_request_version(self):
|
def test_xmlns_version_matches_request_version(self):
|
||||||
self.expect_http(api_version='2010-10-30')
|
self.expect_http(api_version='2010-10-30')
|
||||||
|
|||||||
Reference in New Issue
Block a user