summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2014-07-18 13:05:34 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-07-18 13:05:34 -0400
commit74f6718fc594b088fd9966562dbf8a110d2505d5 (patch)
tree1e64c59c2339d1ad720099882680234605feca5c /meta-openstack/recipes-devtools/python
parente69535f5c915f763910f179e3da6ddc7673fbb2e (diff)
downloadmeta-cloud-services-74f6718fc594b088fd9966562dbf8a110d2505d5.tar.gz
keystone: uprev to juno
Updating keystone to the juno release candidate. Also adding new dependencies. Note: also ensure that the new keystoneclient and keystonemiddleware are used. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone/keystone-remove-git-commands-in-tests.patch17
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch23
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone_git.bb13
3 files changed, 25 insertions, 28 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone-remove-git-commands-in-tests.patch b/meta-openstack/recipes-devtools/python/python-keystone/keystone-remove-git-commands-in-tests.patch
index 5605950..928c0fb 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone/keystone-remove-git-commands-in-tests.patch
+++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone-remove-git-commands-in-tests.patch
@@ -17,11 +17,11 @@ Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
17 keystone/tests/core.py | 2 ++ 17 keystone/tests/core.py | 2 ++
18 1 file changed, 2 insertions(+) 18 1 file changed, 2 insertions(+)
19 19
20diff --git a/keystone/tests/core.py b/keystone/tests/core.py 20Index: git/keystone/tests/core.py
21index 860f68d..9aa54db 100644 21===================================================================
22--- a/keystone/tests/core.py 22--- git.orig/keystone/tests/core.py
23+++ b/keystone/tests/core.py 23+++ git/keystone/tests/core.py
24@@ -109,6 +109,7 @@ def checkout_vendor(repo, rev): 24@@ -125,6 +125,7 @@
25 25
26 working_dir = os.getcwd() 26 working_dir = os.getcwd()
27 revdir = os.path.join(VENDOR, '%s-%s' % (name, rev.replace('/', '_'))) 27 revdir = os.path.join(VENDOR, '%s-%s' % (name, rev.replace('/', '_')))
@@ -29,14 +29,11 @@ index 860f68d..9aa54db 100644
29 modcheck = os.path.join(VENDOR, '.%s-%s' % (name, rev.replace('/', '_'))) 29 modcheck = os.path.join(VENDOR, '.%s-%s' % (name, rev.replace('/', '_')))
30 try: 30 try:
31 if os.path.exists(modcheck): 31 if os.path.exists(modcheck):
32@@ -129,6 +130,7 @@ def checkout_vendor(repo, rev): 32@@ -145,6 +146,7 @@
33 fd.write('1') 33 fd.write('1')
34 except environment.subprocess.CalledProcessError: 34 except environment.subprocess.CalledProcessError:
35 LOG.warning(_('Failed to checkout %s'), repo) 35 LOG.warning(_('Failed to checkout %s'), repo)
36+ """ 36+ """
37 cd(working_dir) 37 os.chdir(working_dir)
38 return revdir 38 return revdir
39 39
40--
411.9.3
42
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch b/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch
index 1259a20..6f88e17 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch
+++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone-search-in-etc-directory-for-config-files.patch
@@ -14,23 +14,23 @@ Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
14 keystone/tests/core.py | 6 +++--- 14 keystone/tests/core.py | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-) 15 1 file changed, 3 insertions(+), 3 deletions(-)
16 16
17diff --git a/keystone/tests/core.py b/keystone/tests/core.py 17Index: git/keystone/tests/core.py
18index 860f68d..8e069fb 100644 18===================================================================
19--- a/keystone/tests/core.py 19--- git.orig/keystone/tests/core.py
20+++ b/keystone/tests/core.py 20+++ git/keystone/tests/core.py
21@@ -75,9 +75,9 @@ from keystone.openstack.common import policy as common_policy # noqa 21@@ -68,9 +68,9 @@
22 22 PID = six.text_type(os.getpid())
23 LOG = logging.getLogger(__name__)
24 TESTSDIR = os.path.dirname(os.path.abspath(__file__)) 23 TESTSDIR = os.path.dirname(os.path.abspath(__file__))
24 TESTCONF = os.path.join(TESTSDIR, 'config_files')
25-ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..', '..')) 25-ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..', '..'))
26+ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..')) 26+ROOTDIR = os.path.normpath(os.path.join(TESTSDIR, '..'))
27 VENDOR = os.path.join(ROOTDIR, 'vendor') 27 VENDOR = os.path.join(ROOTDIR, 'vendor')
28-ETCDIR = os.path.join(ROOTDIR, 'etc') 28-ETCDIR = os.path.join(ROOTDIR, 'etc')
29+ETCDIR = "/etc/keystone" 29+ETCDIR = "/etc/keystone"
30 TMPDIR = os.path.join(TESTSDIR, 'tmp')
31 30
32 CONF = config.CONF 31
33@@ -380,7 +380,7 @@ class TestCase(NoModule, testtools.TestCase): 32 def _calc_tmpdir():
33@@ -560,7 +560,7 @@
34 def _paste_config(self, config): 34 def _paste_config(self, config):
35 if not config.startswith('config:'): 35 if not config.startswith('config:'):
36 test_path = os.path.join(TESTSDIR, config) 36 test_path = os.path.join(TESTSDIR, config)
@@ -39,6 +39,3 @@ index 860f68d..8e069fb 100644
39 for path in [test_path, etc_path]: 39 for path in [test_path, etc_path]:
40 if os.path.exists('%s-paste.ini' % path): 40 if os.path.exists('%s-paste.ini' % path):
41 return 'config:%s-paste.ini' % path 41 return 'config:%s-paste.ini' % path
42--
431.9.3
44
diff --git a/meta-openstack/recipes-devtools/python/python-keystone_git.bb b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
index 9360aae..190bb23 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-keystone_git.bb
@@ -7,18 +7,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
7PR = "r0" 7PR = "r0"
8SRCNAME = "keystone" 8SRCNAME = "keystone"
9 9
10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/havana \ 10SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=master \
11 file://keystone.conf \ 11 file://keystone.conf \
12 file://identity.sh \ 12 file://identity.sh \
13 file://keystone \ 13 file://keystone \
14 file://openrc \ 14 file://openrc \
15 file://keystone-search-in-etc-directory-for-config-files.patch \ 15 file://keystone-search-in-etc-directory-for-config-files.patch \
16 file://keystone-fix-location-of-files-for-tests.patch \
17 file://keystone-remove-git-commands-in-tests.patch \ 16 file://keystone-remove-git-commands-in-tests.patch \
18 " 17 "
19 18
20SRCREV="a96d1a44bc0f074729c312e5c2a0f0875edf1765" 19SRCREV="1070afe2cb8707ad28d43c4ea76116a941cf2131"
21PV="2013.2.2+git${SRCPV}" 20PV="2014.2.b1+git${SRCPV}"
22 21
23S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
24 23
@@ -62,7 +61,9 @@ do_install_append() {
62 61
63 install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmp 62 install -d ${KEYSTONE_PACKAGE_DIR}/tests/tmp
64 63
65 sed -e "s:%KEYSTONE_PACKAGE_DIR%:${PYTHON_SITEPACKAGES_DIR}/keystone:g" -i ${KEYSTONE_PACKAGE_DIR}/tests/test_overrides.conf 64 if [ -e "${KEYSTONE_PACKAGE_DIR}/tests/test_overrides.conf" ];then
65 sed -e "s:%KEYSTONE_PACKAGE_DIR%:${PYTHON_SITEPACKAGES_DIR}/keystone:g" -i ${KEYSTONE_PACKAGE_DIR}/tests/test_overrides.conf
66 fi
66 67
67 cp run_tests.sh ${KEYSTONE_CONF_DIR} 68 cp run_tests.sh ${KEYSTONE_CONF_DIR}
68} 69}
@@ -128,6 +129,8 @@ DEPENDS += " \
128 " 129 "
129 130
130RDEPENDS_${PN} += " \ 131RDEPENDS_${PN} += " \
132 python-pycadf \
133 python-oslo.db \
131 python-pam \ 134 python-pam \
132 python-webob \ 135 python-webob \
133 python-eventlet \ 136 python-eventlet \