Commit Graph

9 Commits

Author SHA1 Message Date
chenghuiyu c65cb663de Fix usage of isotime
The commit I34b12b96de3ea21beaf935ed8a9f6bae2fe0d0bc and
Ib384ae8130dcc6cbd47a837d11ca171ce02ef29e introduced the
deprecated oslo_utils.timeutils.isotime() is deprecated
as of 1.6.

The deprecation message says to use the datetime.datetime.isoformat()
instead, but the format of the string generated by isoformat isn't
the same as the format of the string generated by isotime. The string
is used in tokens and other public APIs and we can't change it
without potentially breaking clients.

So the workaround is to copy the current implementation from
oslo_utils.timeutils.isotime() to ec2api.api.ec2utils.

For more informations:
https://docs.openstack.org/oslo.utils/latest/reference/timeutils.html

Change-Id: Id62fb53264b04a7ea6ae3035a129353c5cfa040a
Closes-Bug: #1461251
2018-06-29 16:00:40 +03:00
Ronald Bradford f70ab5b46d Graduate to oslo.utils.timeutils
Remove the Oslo Incubator code for timeutils in favor for the
 oslo.utils functionality.

Change-Id: Idb7917b80add6aa0f492e6974b630c3a8ffce71f
Depends-On: Ieff34b88d857727e02a3918908b2719535ff4b55
2016-03-18 14:11:42 -04:00
Zhihai Song ed23159ebc Replace oslo_utils.timeutils.isotime
This change introduces ec2api.openstack.common.timeutils that
substitutes the deprecating functions from oslo_utils. Using the
isoformat in the datetime lib will change the time format in API.
So it is better to carry this function in ec2-api. The deprecation
happens in this commit.
https://review.openstack.org/#/c/252898/

Change-Id: Id3606e7ca73ab3e7d58cfe6131984dbf0f3b7e4d
2015-12-17 19:02:59 +08:00
Feodor Tersin 6843471ed1 Implement VPN gateways
Change-Id: I6d1d88c779321e875c16943a4aa162457543267c
2015-05-16 17:28:53 +03:00
Feodor Tersin 54690d1095 Implement customer gateway
Change-Id: I0e090f1d8dca70235615242f8993081c71ae6615
2015-05-16 17:28:48 +03:00
Feodor Tersin 6058f48d47 Supress error logging for passed negative unit tests
Change-Id: Ifec457bef42a4276ae0bd9f2b38ffc5712b3b3b7
2015-03-08 00:00:45 +03:00
Andrey Pavlov f8af53b167 create tags' tests
Change-Id: Ic25c25e13f2c89e4179b5d926d3c8908fa4197b1
2015-03-05 09:35:39 +03:00
Feodor Tersin 49c721f8c7 Use timeutils from oslo.utils instead of oslo incubator
Change-Id: I4ad485df22bb3779f855b17b74c012f380f12d8e
2015-02-26 13:38:39 +03:00
Andrey Pavlov 78f29f61f0 move unit tests to subdirectory. part 1.
Change-Id: I46ff72b21c268faf761cb0ce11625870fbb7c62a
2015-02-06 22:00:33 +03:00