Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-devtools / python / files / python-barbican / barbican-fix-path-to-find-configuration-files.patch
1 From 223013ada4792ab0d8f9b02c89aa139969f99a97 Mon Sep 17 00:00:00 2001
2 From: "Sar Ashki, Babak" <Babak.SarAshki@windriver.com>
3 Date: Sun, 29 Dec 2019 21:41:38 -0800
4 Subject: [PATCH] barbican: fix path to find configuration files
5
6 From 3364915002aa2deaf63841e338375648e5dc8f24 Mon Sep 17 00:00:00 2001
7 From: Keith Holman <Keith.Holman@windriver.com>
8 Date: Fri, 13 Jun 2014 13:46:04 -0400
9
10 Barbican attempts to find configuration files for tests based on where
11 the files are located within the source tree.  On deployment,
12 configuration files are installed to a directory specified by a build
13 recipe.  This fix updates the location for the configuration files
14 with an identifier that is replaced during deployment.
15 ---
16  barbican/tests/api/test_resources_policy.py | 3 +--
17  1 file changed, 1 insertion(+), 2 deletions(-)
18
19 diff --git a/barbican/tests/api/test_resources_policy.py b/barbican/tests/api/test_resources_policy.py
20 index 37a1630f..d9bd9d72 100644
21 --- a/barbican/tests/api/test_resources_policy.py
22 +++ b/barbican/tests/api/test_resources_policy.py
23 @@ -37,8 +37,7 @@ from barbican.tests import utils
24  
25  
26  # Point to the policy.json file located in source control.
27 -TEST_VAR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),
28 -                                            '../../../etc', 'barbican'))
29 +TEST_VAR_DIR = "%BARBICAN_CONF_DIR%"
30  
31  CONF = config.new_config()
32  
33 -- 
34 2.23.0
35