python-novaclient/tests
Mark McLoughlin f2d2e4cb06 Fix usage-list date range to use UTC time
Fixes bug #1045456

The date range in Nova's os-simple-tenant-usage is expected to be in UTC
time since launch/termination dates are stored in the DB in UTC time and
we use the client supplied parameters to query DB without conversion.

Switch from using datetime.today() to datetime.utcnow() to fix the issue.

Add a test for the default date range.

Import timeutils from openstack-common so we can control the return value
of utcnow() in the tests.

Change-Id: Iac77e3a4cc9561714d1492c54cef931f9764531e
2012-09-03 20:13:31 +01:00
..
v1_1 Fix usage-list date range to use UTC time 2012-09-03 20:13:31 +01:00
__init__.py Initial commit from fork 2011-01-25 14:01:22 -06:00
fakes.py Accept 1 and 2 as version choices 2011-12-14 14:44:26 -05:00
test_auth_plugins.py Allow different auth providers via plugin system. 2012-08-06 09:10:00 +02:00
test_base.py Removed v1.0 support. 2011-12-15 23:10:59 +00:00
test_client.py Abstract Client building into novaclient.client 2011-12-29 15:40:49 -05:00
test_http.py Add Accept: applicaton/json header to all service requests. Fixes bug 904436 2012-02-02 16:37:55 -08:00
test_service_catalog.py Filter out v1.0 endpoints 2012-06-18 17:08:34 -05:00
test_shell.py Make '--help' argument more useful. 2012-04-11 15:35:27 +01:00
test_utils.py Allow resources to use any field as 'name' 2012-08-08 12:01:40 -07:00
utils.py Update unittests to be Python 2.6 compatible. 2012-04-13 01:23:14 -04:00