diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch b/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch index 1259a20..6f88e17 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch +++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch | |||
| @@ -14,23 +14,23 @@ Signed-off-by: Keith Holman <Keith.Holman@windriver.com> | |||
| 14 | keystone/tests/core.py | 6 +++--- | 14 | keystone/tests/core.py | 6 +++--- |
| 15 | 1 file changed, 3 insertions(+), 3 deletions(-) | 15 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 16 | 16 | ||
| 17 | diff --git a/keystone/tests/core.py b/keystone/tests/core.py | 17 | Index: git/keystone/tests/core.py |
| 18 | index 860f68d..8e069fb 100644 | 18 | =================================================================== |
| 19 | --- a/keystone/tests/core.py | 19 | --- git.orig/keystone/tests/core.py |
| 20 | +++ b/keystone/tests/core.py | 20 | +++ git/keystone/tests/core.py |
| 21 | @@ -75,9 +75,9 @@ from keystone.openstack.common import policy as common_policy # noqa | 21 | @@ -68,9 +68,9 @@ |
| 22 | 22 | PID = six.text_type(os.getpid()) | |
| 23 | LOG = logging.getLogger(__name__) | ||
| 24 | TESTSDIR = os.path.dirname(os.path.abspath(__file__)) | 23 | TESTSDIR = os.path.dirname(os.path.abspath(__file__)) |
| 24 | TESTCONF = os.path.join(TESTSDIR, 'config_files') | ||
| 25 | -ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..', '..')) | 25 | -ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..', '..')) |
| 26 | +ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..')) | 26 | +ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..')) |
| 27 | VENDOR = os.path.join(ROOTDIR, 'vendor') | 27 | VENDOR = os.path.join(ROOTDIR, 'vendor') |
| 28 | -ETCDIR = os.path.join(ROOTDIR, 'etc') | 28 | -ETCDIR = os.path.join(ROOTDIR, 'etc') |
| 29 | +ETCDIR = "/etc/keystone" | 29 | +ETCDIR = "/etc/keystone" |
| 30 | TMPDIR = os.path.join(TESTSDIR, 'tmp') | ||
| 31 | 30 | ||
| 32 | CONF = config.CONF | 31 | |
| 33 | @@ -380,7 +380,7 @@ class TestCase(NoModule, testtools.TestCase): | 32 | def _calc_tmpdir(): |
| 33 | @@ -560,7 +560,7 @@ | ||
| 34 | def _paste_config(self, config): | 34 | def _paste_config(self, config): |
| 35 | if not config.startswith('config:'): | 35 | if not config.startswith('config:'): |
| 36 | test_path = os.path.join(TESTSDIR, config) | 36 | test_path = os.path.join(TESTSDIR, config) |
| @@ -39,6 +39,3 @@ index 860f68d..8e069fb 100644 | |||
| 39 | for path in [test_path, etc_path]: | 39 | for path in [test_path, etc_path]: |
| 40 | if os.path.exists('%s-paste.ini' % path): | 40 | if os.path.exists('%s-paste.ini' % path): |
| 41 | return 'config:%s-paste.ini' % path | 41 | return 'config:%s-paste.ini' % path |
| 42 | -- | ||
| 43 | 1.9.3 | ||
| 44 | |||
