horizon/openstack_dashboard/test/tests
David Lyle 33dc94079c Correct quota usage check for instances
Previously, updating the quota value for instance on a project that
the user was not currently scoped to would validate the new quota
value by comparing with the usage of the currently scoped project.
The cause of this error was an incorrect use of the server list
parameters.

According to the comment in nova source:
d43d1d6734/nova/api/openstack/compute/servers.py (L277-L280)
and the comments in this bug:
https://bugs.launchpad.net/nova/+bug/1185290

indicate that the tenant_id or project_id flag cannot be used without
the --all-tenants flag.

The fix involves passing the --all-tenants flag when querying instance usage
for any project the user is not currently scoped to. It also removes the
passing of the tenant_id flag when querying the current project.

Tests were also updated to match the new behavior by not passing the
tenant_id to the API call to list servers where the target project is
the currently scoped project.

Change-Id: Iee06bc1c8ccd50f595f4cb274f956c13495c8494
Closes-Bug: #1713724
2017-10-23 14:18:50 +00:00
..
__init__.py Allow running tests individually 2012-11-15 14:50:51 +11:00
error_pages.py Fix compatibility issues with Django 1.10 2016-09-20 12:29:16 +01:00
policy.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
policy_backend.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
quotas.py Correct quota usage check for instances 2017-10-23 14:18:50 +00:00
selenium_tests.py Use assertGreater(len(x), 0) instead of assertTrue(len(x) > 0) 2016-12-09 11:11:41 +07:00
templates.py Add support for downloading clouds.yaml files 2017-04-06 17:16:55 +00:00
utils.py Removing deprecate ceilometer code 2016-11-17 16:52:13 -07:00