From c4e3732386af0df68a6d0c8ef63a0533b9847018 Mon Sep 17 00:00:00 2001 From: Keith Holman Date: Tue, 3 Jun 2014 16:31:03 -0400 Subject: keystone: install example test certificates Some tests provided by Keystone tests signing with an example certificate and signing key. If these certificates are not found these particular tests will hang. Thus, in order for these tests to pass we must install the example certificates to the system. This fix updates the install script for Keystone to include installing the example certificates. Signed-off-by: Keith Holman --- meta-openstack/recipes-devtools/python/python-keystone_git.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb index be74fd4..3f4220c 100644 --- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb +++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb @@ -28,6 +28,7 @@ TOKEN_FORMAT ?= "PKI" do_install_append() { KEYSTONE_CONF_DIR=${D}${sysconfdir}/keystone + KEYSTONE_PACKAGE_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/keystone install -m 750 -d ${KEYSTONE_CONF_DIR} @@ -41,6 +42,8 @@ do_install_append() { install -m 600 ${S}/etc/keystone.conf.sample ${KEYSTONE_CONF_DIR}/keystone.conf.sample install -m 600 ${S}/etc/keystone-paste.ini ${KEYSTONE_CONF_DIR}/keystone-paste.ini + cp -r ${S}/examples ${KEYSTONE_PACKAGE_DIR} + sed -e "s:%SERVICE_TOKEN%:${SERVICE_TOKEN}:g" -i ${KEYSTONE_CONF_DIR}/keystone.conf sed -e "s:%DB_USER%:${DB_USER}:g" -i ${KEYSTONE_CONF_DIR}/keystone.conf sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${KEYSTONE_CONF_DIR}/keystone.conf -- cgit v1.2.3-54-g00ecf