summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-keystoneclient
diff options
context:
space:
mode:
authorKeith Holman <Keith.Holman@windriver.com>2014-06-20 13:06:01 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-06-23 12:43:13 -0400
commit9fed4c1c159292957702947d4b83d6212094af1a (patch)
tree83443f188af8add755584a38cd370846dabb3747 /meta-openstack/recipes-devtools/python/python-keystoneclient
parent80c8ac85e0967b8ed4e398048f079fea8a71751d (diff)
downloadmeta-cloud-services-9fed4c1c159292957702947d4b83d6212094af1a.tar.gz
keystoneclient: add example test certificates
The tests included with keystoneclient require the use of example certificates. This fix copies the example certificates that are found in the source to the target system. It also patches the test files to find the certificates in the correct location. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-keystoneclient')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch b/meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch
new file mode 100644
index 0000000..a75e1da
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch
@@ -0,0 +1,31 @@
1From fae14f85d43da3842b2a065baf0442d61a573598 Mon Sep 17 00:00:00 2001
2From: Keith Holman <Keith.Holman@windriver.com>
3Date: Fri, 13 Jun 2014 17:08:03 -0400
4Subject: [PATCH] keystoneclient: fix test path to example certificates
5
6The tests included with keystoneclient expect them to be ran from the
7source tree. This fix changes base path of the system to where they
8are actually deployed on the system. This fix is required for some
9tests to work properly.
10
11Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
12---
13 keystoneclient/tests/client_fixtures.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/keystoneclient/tests/client_fixtures.py b/keystoneclient/tests/client_fixtures.py
17index 1743162..6bfcb93 100644
18--- a/keystoneclient/tests/client_fixtures.py
19+++ b/keystoneclient/tests/client_fixtures.py
20@@ -25,7 +25,7 @@ from keystoneclient import utils
21
22
23 TESTDIR = os.path.dirname(os.path.abspath(__file__))
24-ROOTDIR = os.path.normpath(os.path.join(TESTDIR, '..', '..'))
25+ROOTDIR = os.path.normpath(os.path.join(TESTDIR, '..'))
26 CERTDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'certs')
27 CMSDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'cms')
28 KEYDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'private')
29--
301.9.3
31