From 2854e3b0dcf7f0ac2e115c82ed9686a62f2ee4a0 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Fri, 20 Jun 2014 13:06:01 -0400 Subject: 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 --- ...ent-fix-test-path-to-example-certificates.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch (limited to 'meta-openstack/recipes-devtools/python/python-keystoneclient/keystoneclient-fix-test-path-to-example-certificates.patch') 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 @@ +From fae14f85d43da3842b2a065baf0442d61a573598 Mon Sep 17 00:00:00 2001 +From: Keith Holman +Date: Fri, 13 Jun 2014 17:08:03 -0400 +Subject: [PATCH] keystoneclient: fix test path to example certificates + +The tests included with keystoneclient expect them to be ran from the +source tree. This fix changes base path of the system to where they +are actually deployed on the system. This fix is required for some +tests to work properly. + +Signed-off-by: Keith Holman +--- + keystoneclient/tests/client_fixtures.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/keystoneclient/tests/client_fixtures.py b/keystoneclient/tests/client_fixtures.py +index 1743162..6bfcb93 100644 +--- a/keystoneclient/tests/client_fixtures.py ++++ b/keystoneclient/tests/client_fixtures.py +@@ -25,7 +25,7 @@ from keystoneclient import utils + + + TESTDIR = os.path.dirname(os.path.abspath(__file__)) +-ROOTDIR = os.path.normpath(os.path.join(TESTDIR, '..', '..')) ++ROOTDIR = os.path.normpath(os.path.join(TESTDIR, '..')) + CERTDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'certs') + CMSDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'cms') + KEYDIR = os.path.join(ROOTDIR, 'examples', 'pki', 'private') +-- +1.9.3 + -- cgit v1.2.3-54-g00ecf