python-novaclient/tools
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
..
install_venv.py Install test-requires in development venv. 2012-07-09 17:31:34 +02:00
nova.bash_completion don't bash-complete the '-h' option 2012-06-27 11:53:57 +02:00
pip-requires Fix usage-list date range to use UTC time 2012-09-03 20:13:31 +01:00
test-requires Lock pep8 at v1.1 2012-05-24 07:13:16 -07:00
with_venv.sh Align run_tests.sh with nova. 2011-12-14 10:31:42 -05:00