nova/nova/tests/api
RongzeZhu 4ac2dcc36b Fix simple_tenant_usage's handing of future end times
Fixes bug #1043999

simple_tenant_usage returns the usage in the range between the supplied
start and end query parameters. The _hours_for() method calculates the
number of hours the instance was running in this range, even if the end time
is in the future.

By default, python-novaclient requests usage between 4 weeks ago and tomorrow.
This means we a report which accounts for 24 hours of extra running time for
each currently running instance. Fix this by clamping the period of the
returned report at the current time.

Change-Id: I61c211fd85b729aaeaac6ef24644ee19eb5bb6b0
(cherry picked from commit 869443f41c)
2012-09-06 14:35:47 -07:00
..
ec2 Fix bug 1006664: describe non existent ec2 keypair 2012-06-08 10:57:21 -07:00
openstack Fix simple_tenant_usage's handing of future end times 2012-09-06 14:35:47 -07:00
__init__.py Fix OpenStack Capitalization 2012-03-15 16:10:53 -07:00
test_auth.py Remove empty setUp/tearDown methods 2012-03-02 16:18:07 +00:00
test_validator.py aws/ec2 api validation 2012-01-19 15:38:59 -08:00
test_wsgi.py Remove a whole bunch of unused imports 2012-01-13 13:55:38 -08:00