summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-barbican
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-barbican')
-rw-r--r--meta-openstack/recipes-devtools/python/python-barbican/barbican-fix-path-to-find-configuration-files.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-barbican/barbican-fix-path-to-find-configuration-files.patch b/meta-openstack/recipes-devtools/python/python-barbican/barbican-fix-path-to-find-configuration-files.patch
new file mode 100644
index 0000000..8fd1010
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-barbican/barbican-fix-path-to-find-configuration-files.patch
@@ -0,0 +1,33 @@
1From 30a57a0b4f2dcaff76821f21f4a545ecb9ddf194 Mon Sep 17 00:00:00 2001
2From: Keith Holman <Keith.Holman@windriver.com>
3Date: Fri, 13 Jun 2014 13:46:04 -0400
4Subject: [PATCH] barbican: fix path to find configuration files
5
6Barbican attempts to find configuration files for tests based on where
7the files are located within the source tree. On deployment,
8configuration files are installed to a directory specified by a build
9recipe. This fix updates the location for the configuration files
10with an identifier that is replaced during deployment.
11
12Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
13---
14 barbican/tests/api/test_resources_policy.py | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17diff --git a/barbican/tests/api/test_resources_policy.py b/barbican/tests/api/test_resources_policy.py
18index 7d995c6..28b7599 100644
19--- a/barbican/tests/api/test_resources_policy.py
20+++ b/barbican/tests/api/test_resources_policy.py
21@@ -35,8 +35,7 @@ from barbican.openstack.common import policy
22 CONF = cfg.CONF
23
24 # Point to the policy.json file located in source control.
25-TEST_VAR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
26- '../../../etc', 'barbican'))
27+TEST_VAR_DIR = "%BARBICAN_CONF_DIR%"
28
29 ENFORCER = policy.Enforcer()
30
31--
321.9.3
33