From f2e9ffa607014f73c1f5b1c623bf701ae4e28879 Mon Sep 17 00:00:00 2001 From: Yves-Gwenael Bourhis Date: Tue, 1 Oct 2013 14:58:30 +0200 Subject: [PATCH] Common keystone version fallback If OPENSTACK_API_VERSIONS["identity"] was not set in local_settings.py, django_openstack_auth and horizon had their own fallback method which did not necessarily fallback on the same version and was leading to discrepancies and erratic behavior. Refactored in order to use the same fallback method defined in django_openstack_auth.utils Change-Id: I583d49a73077a20baf5f01628b0b6e8480296964 Closes-Bug: #1231357 --- openstack_dashboard/test/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openstack_dashboard/test/settings.py b/openstack_dashboard/test/settings.py index fbe4c64..42e5a94 100644 --- a/openstack_dashboard/test/settings.py +++ b/openstack_dashboard/test/settings.py @@ -92,6 +92,10 @@ AVAILABLE_REGIONS = [ ('http://remote:5000/v2.0', 'remote'), ] +OPENSTACK_API_VERSIONS = { + "identity": 3 +} + OPENSTACK_KEYSTONE_URL = "http://localhost:5000/v2.0" OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"