horizon/openstack_dashboard/test
David Lyle 2c4c4aa77a 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
(cherry picked from commit 33dc94079c)
2018-01-16 15:34:38 +00:00
..
api_tests NaNJSONEncoder should be used in api "cinder/tenantabsolutelimits" 2017-11-30 16:09:18 +00:00
integration_tests Replace dict.iteritems() with dict.items() in horizon 2017-08-01 08:31:49 +08:00
jasmine Remove unused jasmine_tests.py 2015-05-13 12:39:00 -06:00
templates Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
test_data Split out FWaaS dashboard 2017-06-27 14:20:03 +00:00
test_panels Add Apache 2.0 license to source file 2016-12-02 17:40:28 +07:00
test_plugins assertEquals is deprecated, use assertEqual 2016-01-27 00:59:19 +08:00
tests Correct quota usage check for instances 2018-01-16 15:34:38 +00:00
__init__.py Revamp of testing machinery. 2012-04-23 22:24:21 -07:00
error_pages_urls.py hacking: noqa cleanup in openstack_dashboard 2017-03-17 19:38:47 +00:00
helpers.py Use flake8-import-order plugin 2017-07-03 08:02:23 +00:00
settings.py Added SELECTABLE_THEMES setting 2017-07-26 11:52:35 +01:00
themes.py Added SELECTABLE_THEMES setting 2017-07-26 11:52:35 +01:00
urls.py hacking: noqa cleanup in openstack_dashboard 2017-03-17 19:38:47 +00:00
views.py Fix actions inside instance details view page 2017-11-17 10:04:04 +00:00