X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-barbican%2Fbarbican-fix-path-to-find-configuration-files.patch;fp=meta-stx%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-barbican%2Fbarbican-fix-path-to-find-configuration-files.patch;h=3f0987e33a222e0431c4d237bd22d47091e9c5da;hb=57fdea704bd62af847872c40508f00aa1d7cac60;hp=0000000000000000000000000000000000000000;hpb=f23f21bccfb750b9e30141fd9676515215ffbc4e;p=pti%2Frtp.git diff --git a/meta-stx/recipes-devtools/python/files/python-barbican/barbican-fix-path-to-find-configuration-files.patch b/meta-stx/recipes-devtools/python/files/python-barbican/barbican-fix-path-to-find-configuration-files.patch new file mode 100644 index 0000000..3f0987e --- /dev/null +++ b/meta-stx/recipes-devtools/python/files/python-barbican/barbican-fix-path-to-find-configuration-files.patch @@ -0,0 +1,35 @@ +From 223013ada4792ab0d8f9b02c89aa139969f99a97 Mon Sep 17 00:00:00 2001 +From: "Sar Ashki, Babak" +Date: Sun, 29 Dec 2019 21:41:38 -0800 +Subject: [PATCH] barbican: fix path to find configuration files + +From 3364915002aa2deaf63841e338375648e5dc8f24 Mon Sep 17 00:00:00 2001 +From: Keith Holman +Date: Fri, 13 Jun 2014 13:46:04 -0400 + +Barbican attempts to find configuration files for tests based on where +the files are located within the source tree. On deployment, +configuration files are installed to a directory specified by a build +recipe. This fix updates the location for the configuration files +with an identifier that is replaced during deployment. +--- + barbican/tests/api/test_resources_policy.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/barbican/tests/api/test_resources_policy.py b/barbican/tests/api/test_resources_policy.py +index 37a1630f..d9bd9d72 100644 +--- a/barbican/tests/api/test_resources_policy.py ++++ b/barbican/tests/api/test_resources_policy.py +@@ -37,8 +37,7 @@ from barbican.tests import utils + + + # Point to the policy.json file located in source control. +-TEST_VAR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), +- '../../../etc', 'barbican')) ++TEST_VAR_DIR = "%BARBICAN_CONF_DIR%" + + CONF = config.new_config() + +-- +2.23.0 +