diff options
| author | Keith Holman <Keith.Holman@windriver.com> | 2014-06-20 13:06:01 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-06-23 12:43:13 -0400 |
| commit | 9fed4c1c159292957702947d4b83d6212094af1a (patch) | |
| tree | 83443f188af8add755584a38cd370846dabb3747 /meta-openstack/recipes-devtools/python | |
| parent | 80c8ac85e0967b8ed4e398048f079fea8a71751d (diff) | |
| download | meta-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')
2 files changed, 40 insertions, 1 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 @@ | |||
| 1 | From fae14f85d43da3842b2a065baf0442d61a573598 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Keith Holman <Keith.Holman@windriver.com> | ||
| 3 | Date: Fri, 13 Jun 2014 17:08:03 -0400 | ||
| 4 | Subject: [PATCH] keystoneclient: fix test path to example certificates | ||
| 5 | |||
| 6 | The tests included with keystoneclient expect them to be ran from the | ||
| 7 | source tree. This fix changes base path of the system to where they | ||
| 8 | are actually deployed on the system. This fix is required for some | ||
| 9 | tests to work properly. | ||
| 10 | |||
| 11 | Signed-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 | |||
| 16 | diff --git a/keystoneclient/tests/client_fixtures.py b/keystoneclient/tests/client_fixtures.py | ||
| 17 | index 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 | -- | ||
| 30 | 1.9.3 | ||
| 31 | |||
diff --git a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb index de75a63..a326cd7 100644 --- a/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystoneclient_git.bb | |||
| @@ -5,10 +5,12 @@ LICENSE = "Apache-2.0" | |||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4a4d0e932ffae1c0131528d30d419c55" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4a4d0e932ffae1c0131528d30d419c55" |
| 6 | 6 | ||
| 7 | PR = "r0" | 7 | PR = "r0" |
| 8 | SRCNAME = "keystoneclient" | ||
| 8 | 9 | ||
| 9 | SRC_URI = "\ | 10 | SRC_URI = "\ |
| 10 | git://github.com/openstack/python-keystoneclient.git;branch=master \ | 11 | git://github.com/openstack/python-keystoneclient.git;branch=master \ |
| 11 | file://fix_keystoneclient_memory_leak.patch \ | 12 | file://fix_keystoneclient_memory_leak.patch \ |
| 13 | file://keystoneclient-fix-test-path-to-example-certificates.patch \ | ||
| 12 | " | 14 | " |
| 13 | 15 | ||
| 14 | PV="0.6.0+git${SRCPV}" | 16 | PV="0.6.0+git${SRCPV}" |
| @@ -38,7 +40,13 @@ PACKAGECONFIG[bash-completion] = ",,bash-completion,bash-completion ${BPN}-bash- | |||
| 38 | do_install_append() { | 40 | do_install_append() { |
| 39 | install -d ${D}/${sysconfdir}/bash_completion.d | 41 | install -d ${D}/${sysconfdir}/bash_completion.d |
| 40 | install -m 664 ${S}/tools/keystone.bash_completion ${D}/${sysconfdir}/bash_completion.d | 42 | install -m 664 ${S}/tools/keystone.bash_completion ${D}/${sysconfdir}/bash_completion.d |
| 43 | |||
| 44 | cp -r ${S}/examples ${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME} | ||
| 41 | } | 45 | } |
| 42 | 46 | ||
| 43 | PACKAGES =+ "${BPN}-bash-completion" | 47 | PACKAGES =+ " ${SRCNAME}-tests ${BPN}-bash-completion" |
| 44 | FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" | 48 | FILES_${BPN}-bash-completion = "${sysconfdir}/bash_completion.d/*" |
| 49 | |||
| 50 | FILES_${SRCNAME}-tests = "${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/examples \ | ||
| 51 | " | ||
| 52 | |||
