nova/nova/tests/unit/api_samples_test_base
Lucian Petrut 133b194ba0 Fix os-simple-tenant-usage result order
nova usage-list can return incorrect results, having resources counted
twice. This only occurs when using the 2.40 microversion or later.

This microversion introduced pagination, which doesn't work properly.
Nova API will sort the instances using the tenant id and instance uuid,
but 'os-simple-tenant-usage' will not preserve the order when returning
the results.

For this reason, subsequent API calls made by the client will use the
wrong marker (which is supposed to be the last instance id), ending
up counting the same instances twice.

Change-Id: I6c7a67b23ec49aa207c33c38580acd834bb27e3c
Closes-Bug: #1796689
(cherry picked from commit afc3a16ce3)
2018-10-29 08:15:47 +00:00
..
__init__.py Add test coverage to functional api tests _compare_result method 2016-02-03 13:38:54 -08:00
test_compare_result.py Fix os-simple-tenant-usage result order 2018-10-29 08:15:47 +00:00