diff options
author | Keith Holman <Keith.Holman@windriver.com> | 2014-06-13 15:09:46 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-06-16 15:23:23 -0400 |
commit | 7d2af28606c5dde7fa05bcdeb7d31188bae25b70 (patch) | |
tree | 900f5df1b4eeb7d91785c566d92bedf3f8fa66df /meta-openstack/recipes-devtools/python/python-barbican | |
parent | 7af8f00fc7ff4f3301744c568c9b503b05aafbeb (diff) | |
download | meta-cloud-services-7d2af28606c5dde7fa05bcdeb7d31188bae25b70.tar.gz |
barbican: add full path to test configuration files
Barbican expects configuration files for its tests to be in the same
location as they appear in the source tree. However, during
deployment configuration files are put into the /etc/barbican
directory. This fix patches the tests to find the configuration files
in the directory they are placed by the barbican recipe.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
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.patch | 33 |
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 @@ | |||
1 | From 30a57a0b4f2dcaff76821f21f4a545ecb9ddf194 Mon Sep 17 00:00:00 2001 | ||
2 | From: Keith Holman <Keith.Holman@windriver.com> | ||
3 | Date: Fri, 13 Jun 2014 13:46:04 -0400 | ||
4 | Subject: [PATCH] barbican: fix path to find configuration files | ||
5 | |||
6 | Barbican attempts to find configuration files for tests based on where | ||
7 | the files are located within the source tree. On deployment, | ||
8 | configuration files are installed to a directory specified by a build | ||
9 | recipe. This fix updates the location for the configuration files | ||
10 | with an identifier that is replaced during deployment. | ||
11 | |||
12 | Signed-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 | |||
17 | diff --git a/barbican/tests/api/test_resources_policy.py b/barbican/tests/api/test_resources_policy.py | ||
18 | index 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 | -- | ||
32 | 1.9.3 | ||
33 | |||