Hello community, here is the log from the commit of package python-oslo.middleware for openSUSE:Factory checked in at 2018-01-24 15:27:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslo.middleware (Old) and /work/SRC/openSUSE:Factory/.python-oslo.middleware.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.middleware" Wed Jan 24 15:27:49 2018 rev:8 rq:567276 version:3.33.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslo.middleware/python-oslo.middleware.changes 2017-09-29 11:56:36.524460824 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslo.middleware.new/python-oslo.middleware.changes 2018-01-24 15:27:50.929814298 +0100 @@ -1,0 +2,14 @@ +Mon Jan 15 11:57:19 UTC 2018 - cloud-de...@suse.de + +- update to version 3.33.0 + - Invalid parsing of Forwarded header fixed + - Update reno for stable/pike + - Remove setting of version/release from releasenotes + - doc: Specify openstackdocs theme + - Remove method set_latent + - Imported Translations from Zanata + - Remove Class HTTPProxyToWSGIMiddleware + - Updated from global requirements + - Fix exception in json response under py35 + +------------------------------------------------------------------- Old: ---- oslo.middleware-3.30.1.tar.gz New: ---- oslo.middleware-3.33.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslo.middleware.spec ++++++ --- /var/tmp/diff_new_pack.S9QhWq/_old 2018-01-24 15:27:51.573784179 +0100 +++ /var/tmp/diff_new_pack.S9QhWq/_new 2018-01-24 15:27:51.577783991 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-oslo.middleware # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,40 +16,41 @@ # -%global sname oslo.middleware Name: python-oslo.middleware -Version: 3.30.1 +Version: 3.33.0 Release: 0 Summary: OpenStack oslo.middleware library License: Apache-2.0 Group: Development/Languages/Python -Url: https://launchpad.net/%{sname} -Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz +Url: https://launchpad.net/oslo.middleware +Source0: https://files.pythonhosted.org/packages/source/o/oslo.middleware/oslo.middleware-3.33.0.tar.gz BuildRequires: openstack-macros BuildRequires: python-Jinja2 >= 2.8 BuildRequires: python-WebOb >= 1.7.1 BuildRequires: python-debtcollector >= 1.2.0 BuildRequires: python-devel BuildRequires: python-fixtures >= 3.0.0 -BuildRequires: python-mock >= 2.0 -BuildRequires: python-oslo.config >= 4.0.0 -BuildRequires: python-oslo.context >= 2.14.0 -BuildRequires: python-oslo.i18n >= 2.1.0 -BuildRequires: python-oslo.utils >= 3.20.0 +BuildRequires: python-mock >= 2.0.0 +BuildRequires: python-oslo.config >= 4.6.0 +BuildRequires: python-oslo.context >= 2.19.2 +BuildRequires: python-oslo.i18n >= 3.15.3 +BuildRequires: python-oslo.serialization >= 2.18.0 +BuildRequires: python-oslo.utils >= 3.31.0 BuildRequires: python-oslotest >= 1.10.0 BuildRequires: python-pbr >= 2.0.0 -BuildRequires: python-six >= 1.9.0 +BuildRequires: python-six >= 1.10.0 BuildRequires: python-statsd >= 3.2.1 BuildRequires: python-stevedore >= 1.20.0 -BuildRequires: python-testtools >= 1.4.0 +BuildRequires: python-testtools >= 2.2.0 Requires: python-Jinja2 >= 2.8 Requires: python-WebOb >= 1.7.1 Requires: python-debtcollector >= 1.2.0 -Requires: python-oslo.config >= 4.0.0 -Requires: python-oslo.context >= 2.14.0 -Requires: python-oslo.i18n >= 2.1.0 -Requires: python-oslo.utils >= 3.20.0 -Requires: python-six >= 1.9.0 +Requires: python-oslo.config >= 4.6.0 +Requires: python-oslo.context >= 2.19.2 +Requires: python-oslo.i18n >= 3.15.3 +Requires: python-oslo.serialization >= 2.18.0 +Requires: python-oslo.utils >= 3.31.0 +Requires: python-six >= 1.10.0 Requires: python-statsd >= 3.2.1 Requires: python-stevedore >= 1.20.0 BuildArch: noarch @@ -64,8 +65,8 @@ Summary: Documentation for OpenStack middleware library Group: Development/Languages/Python BuildRequires: python-Sphinx -BuildRequires: python-openstackdocstheme >= 1.16.0 -BuildRequires: python-reno >= 1.8.0 +BuildRequires: python-openstackdocstheme >= 1.17.0 +BuildRequires: python-reno >= 2.5.0 %description doc Oslo middleware library includes components that can be injected into wsgi @@ -75,7 +76,7 @@ This package contains the documentation. %prep -%autosetup -p1 -n %{sname}-%{version} +%autosetup -p1 -n oslo.middleware-3.33.0 %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg ++++++ _service ++++++ --- /var/tmp/diff_new_pack.S9QhWq/_old 2018-01-24 15:27:51.609782495 +0100 +++ /var/tmp/diff_new_pack.S9QhWq/_new 2018-01-24 15:27:51.609782495 +0100 @@ -1,8 +1,8 @@ <services> <service mode="disabled" name="renderspec"> - <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/openstack/oslo.middleware/oslo.middleware.spec.j2</param> + <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/master/openstack/oslo.middleware/oslo.middleware.spec.j2</param> <param name="output-name">python-oslo.middleware.spec</param> - <param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/global-requirements.txt</param> + <param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/master/requirements.txt</param> <param name="changelog-email">cloud-de...@suse.de</param> <param name="changelog-provider">gh,openstack,oslo.middleware</param> </service> ++++++ oslo.middleware-3.30.1.tar.gz -> oslo.middleware-3.33.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/AUTHORS new/oslo.middleware-3.33.0/AUTHORS --- old/oslo.middleware-3.30.1/AUTHORS 2017-09-27 06:25:25.000000000 +0200 +++ new/oslo.middleware-3.33.0/AUTHORS 2017-12-04 11:35:25.000000000 +0100 @@ -1,6 +1,7 @@ Abhijeet Malawade <abhijeet.malaw...@nttdata.com> Adam Kijak <adam.ki...@ovh.pl> Aditi Raveesh <aditi...@thoughtworks.com> +Akihiro Motoki <amot...@gmail.com> Akihiro Motoki <mot...@da.jp.nec.com> Andreas Jaeger <a...@suse.com> Andreas Jaeger <a...@suse.de> @@ -66,8 +67,11 @@ Victor Sergeyev <vserge...@mirantis.com> Victor Stinner <vstin...@redhat.com> Vu Cong Tuan <tua...@vn.fujitsu.com> +Yujun Zhang <zhang.yuj...@zte.com.cn> Zhihai Song <zhihai.s...@easystack.cn> Zhongyue Luo <zhongyue....@intel.com> +Zuul <z...@review.openstack.org> +chenghuiyu <yucheng...@unionpay.com> gengchc2 <geng.changc...@zte.com.cn> gord chung <g...@live.ca> gordon chung <g...@live.ca> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/ChangeLog new/oslo.middleware-3.33.0/ChangeLog --- old/oslo.middleware-3.30.1/ChangeLog 2017-09-27 06:25:25.000000000 +0200 +++ new/oslo.middleware-3.33.0/ChangeLog 2017-12-04 11:35:25.000000000 +0100 @@ -1,13 +1,40 @@ CHANGES ======= -3.30.1 +3.33.0 ------ +* Updated from global requirements +* Remove setting of version/release from releasenotes +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Updated from global requirements +* Imported Translations from Zanata + +3.32.1 +------ + + +3.32.0 +------ + +* Updated from global requirements +* Updated from global requirements +* Remove Class HTTPProxyToWSGIMiddleware + +3.31.0 +------ + +* Imported Translations from Zanata * Invalid parsing of Forwarded header fixed +* Remove method set\_latent +* Updated from global requirements +* Updated from global requirements +* Fix exception in json response under py35 +* Update reno for stable/pike * Updated from global requirements -* Update UPPER\_CONSTRAINTS\_FILE for stable/pike -* Update .gitreview for stable/pike +* doc: Specify openstackdocs theme 3.30.0 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/PKG-INFO new/oslo.middleware-3.33.0/PKG-INFO --- old/oslo.middleware-3.30.1/PKG-INFO 2017-09-27 06:25:26.000000000 +0200 +++ new/oslo.middleware-3.33.0/PKG-INFO 2017-12-04 11:35:25.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.middleware -Version: 3.30.1 +Version: 3.33.0 Summary: Oslo Middleware library Home-page: https://docs.openstack.org/oslo.middleware/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/doc/source/conf.py new/oslo.middleware-3.33.0/doc/source/conf.py --- old/oslo.middleware-3.30.1/doc/source/conf.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/doc/source/conf.py 2017-12-04 11:32:16.000000000 +0100 @@ -65,7 +65,7 @@ # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. # html_theme_path = ["."] -# html_theme = '_theme' +html_theme = 'openstackdocs' # html_static_path = ['static'] # Output file base name for HTML help builder. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo.middleware.egg-info/PKG-INFO new/oslo.middleware-3.33.0/oslo.middleware.egg-info/PKG-INFO --- old/oslo.middleware-3.30.1/oslo.middleware.egg-info/PKG-INFO 2017-09-27 06:25:25.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo.middleware.egg-info/PKG-INFO 2017-12-04 11:35:25.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.middleware -Version: 3.30.1 +Version: 3.33.0 Summary: Oslo Middleware library Home-page: https://docs.openstack.org/oslo.middleware/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo.middleware.egg-info/SOURCES.txt new/oslo.middleware-3.33.0/oslo.middleware.egg-info/SOURCES.txt --- old/oslo.middleware-3.30.1/oslo.middleware.egg-info/SOURCES.txt 2017-09-27 06:25:26.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo.middleware.egg-info/SOURCES.txt 2017-12-04 11:35:25.000000000 +0100 @@ -55,11 +55,8 @@ oslo_middleware/healthcheck/disable_by_file.py oslo_middleware/healthcheck/opts.py oslo_middleware/healthcheck/pluginbase.py -oslo_middleware/locale/de/LC_MESSAGES/oslo_middleware-log-error.po oslo_middleware/locale/de/LC_MESSAGES/oslo_middleware.po -oslo_middleware/locale/en_GB/LC_MESSAGES/oslo_middleware-log-error.po oslo_middleware/locale/en_GB/LC_MESSAGES/oslo_middleware.po -oslo_middleware/locale/fr/LC_MESSAGES/oslo_middleware-log-error.po oslo_middleware/locale/fr/LC_MESSAGES/oslo_middleware.po oslo_middleware/tests/__init__.py oslo_middleware/tests/test_base.py @@ -80,8 +77,10 @@ releasenotes/source/conf.py releasenotes/source/index.rst releasenotes/source/ocata.rst +releasenotes/source/pike.rst releasenotes/source/unreleased.rst releasenotes/source/_static/.placeholder releasenotes/source/_templates/.placeholder +releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po releasenotes/source/locale/fr/LC_MESSAGES/releasenotes.po tools/tox_install.sh \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo.middleware.egg-info/pbr.json new/oslo.middleware-3.33.0/oslo.middleware.egg-info/pbr.json --- old/oslo.middleware-3.30.1/oslo.middleware.egg-info/pbr.json 2017-09-27 06:25:25.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo.middleware.egg-info/pbr.json 2017-12-04 11:35:25.000000000 +0100 @@ -1 +1 @@ -{"git_version": "d9ad4ba", "is_release": true} \ No newline at end of file +{"git_version": "9d75e6c", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo.middleware.egg-info/requires.txt new/oslo.middleware-3.33.0/oslo.middleware.egg-info/requires.txt --- old/oslo.middleware-3.30.1/oslo.middleware.egg-info/requires.txt 2017-09-27 06:25:25.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo.middleware.egg-info/requires.txt 2017-12-04 11:35:25.000000000 +0100 @@ -1,10 +1,10 @@ pbr!=2.1.0,>=2.0.0 Jinja2!=2.9.0,!=2.9.1,!=2.9.2,!=2.9.3,!=2.9.4,>=2.8 -oslo.config!=4.3.0,!=4.4.0,>=4.0.0 -oslo.context>=2.14.0 -oslo.i18n!=3.15.2,>=2.1.0 -oslo.utils>=3.20.0 -six>=1.9.0 +oslo.config>=5.1.0 +oslo.context>=2.19.2 +oslo.i18n>=3.15.3 +oslo.utils>=3.31.0 +six>=1.10.0 stevedore>=1.20.0 WebOb>=1.7.1 debtcollector>=1.2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/cors.py new/oslo.middleware-3.33.0/oslo_middleware/cors.py --- old/oslo.middleware-3.30.1/oslo_middleware/cors.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/cors.py 2017-12-04 11:32:16.000000000 +0100 @@ -13,7 +13,6 @@ # limitations under the License. import copy -from debtcollector import moves import logging import debtcollector @@ -130,12 +129,6 @@ except Exception: return None - self.set_latent( - allow_headers=sanitize(self.conf.get('latent_allow_headers')), - expose_headers=sanitize(self.conf.get('latent_expose_headers')), - allow_methods=sanitize(self.conf.get('latent_allow_methods')) - ) - @classmethod def factory(cls, global_conf, **local_conf): """factory method for paste.deploy @@ -156,13 +149,6 @@ def _init_conf(self): '''Initialize this middleware from an oslo.config instance.''' - # Set up a location for our latent configuration options - self._latent_configuration = { - 'allow_headers': [], - 'expose_headers': [], - 'methods': [] - } - # First, check the configuration and register global options. self.oslo_conf.register_opts(CORS_OPTS, 'cors') @@ -245,42 +231,6 @@ 'allow_headers': allow_headers } - @moves.moved_method('set_defaults', - message='CORS.set_latent has been deprecated in favor ' - 'of oslo_middleware.cors.set_defaults') - def set_latent(self, allow_headers=None, allow_methods=None, - expose_headers=None): - '''Add a new latent property for this middleware. - - Latent properties are those values which a system requires for - operation. API-specific headers, for example, may be added by an - engineer so that they ship with the codebase, and thus do not require - extra documentation or passing of institutional knowledge. - - :param allow_headers: HTTP headers permitted in client requests. - :param allow_methods: HTTP methods permitted in client requests. - :param expose_headers: HTTP Headers exposed to clients. - ''' - - if allow_headers: - if isinstance(allow_headers, list): - self._latent_configuration['allow_headers'] = allow_headers - else: - raise TypeError("allow_headers must be a list or None.") - - if expose_headers: - if isinstance(expose_headers, list): - self._latent_configuration['expose_headers'] = expose_headers - else: - raise TypeError("expose_headers must be a list or None.") - - if allow_methods: - if isinstance(allow_methods, list): - self._latent_configuration['methods'] = allow_methods - else: - raise TypeError("allow_methods parameter must be a list or" - " None.") - def process_response(self, response, request=None): '''Check for CORS headers, and decorate if necessary. @@ -361,10 +311,7 @@ return response # Compare request method to permitted methods (Section 6.2.5) - permitted_methods = ( - cors_config['allow_methods'] + - self._latent_configuration['methods'] - ) + permitted_methods = cors_config['allow_methods'] if request_method not in permitted_methods: LOG.debug('Request method \'%s\' not in permitted list: %s' % (request_method, permitted_methods)) @@ -374,8 +321,7 @@ # (Section 6.2.6) permitted_headers = [header.upper() for header in (cors_config['allow_headers'] + - self.simple_headers + - self._latent_configuration['allow_headers'])] + self.simple_headers)] for requested_header in request_headers: upper_header = requested_header.upper() if upper_header not in permitted_headers: @@ -448,8 +394,7 @@ # Attach the exposed headers and exit. (Section 6.1.4) if cors_config['expose_headers']: response.headers['Access-Control-Expose-Headers'] = \ - ','.join(cors_config['expose_headers'] + - self._latent_configuration['expose_headers']) + ','.join(cors_config['expose_headers']) # NOTE(sileht): Shortcut for backwards compatibility filter_factory = CORS.factory diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/healthcheck/__init__.py new/oslo.middleware-3.33.0/oslo_middleware/healthcheck/__init__.py --- old/oslo.middleware-3.30.1/oslo_middleware/healthcheck/__init__.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/healthcheck/__init__.py 2017-12-04 11:32:16.000000000 +0100 @@ -558,4 +558,5 @@ functor = self._accept_to_functor[accept_type] body, content_type = functor(results, healthy) return webob.response.Response(status=status, body=body, + charset='UTF-8', content_type=content_type) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/http_proxy_to_wsgi.py new/oslo.middleware-3.33.0/oslo_middleware/http_proxy_to_wsgi.py --- old/oslo.middleware-3.30.1/oslo_middleware/http_proxy_to_wsgi.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/http_proxy_to_wsgi.py 2017-12-04 11:32:16.000000000 +0100 @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. See the License for the specific language governing permissions and # limitations under the License. -from debtcollector import removals from oslo_config import cfg from oslo_middleware import base @@ -92,8 +91,3 @@ v = req.environ.get("HTTP_X_FORWARDED_PREFIX") if v: req.environ['SCRIPT_NAME'] = v + req.environ['SCRIPT_NAME'] - - -@removals.remove -class HTTPProxyToWSGIMiddleware(HTTPProxyToWSGI): - """Placeholder for backward compatibility""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/locale/de/LC_MESSAGES/oslo_middleware-log-error.po new/oslo.middleware-3.33.0/oslo_middleware/locale/de/LC_MESSAGES/oslo_middleware-log-error.po --- old/oslo.middleware-3.30.1/oslo_middleware/locale/de/LC_MESSAGES/oslo_middleware-log-error.po 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/locale/de/LC_MESSAGES/oslo_middleware-log-error.po 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -# Translations template for oslo.middleware. -# Copyright (C) 2015 ORGANIZATION -# This file is distributed under the same license as the oslo.middleware -# project. -# -# Translators: -# Andreas Jaeger <jaegera...@gmail.com>, 2014 -# Andreas Jaeger <jaegera...@gmail.com>, 2016. #zanata -msgid "" -msgstr "" -"Project-Id-Version: oslo.middleware 3.7.1.dev18\n" -"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n" -"POT-Creation-Date: 2016-04-19 23:53+0000\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2014-09-07 08:10+0000\n" -"Last-Translator: Andreas Jaeger <jaegera...@gmail.com>\n" -"Language: de\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Generated-By: Babel 2.0\n" -"X-Generator: Zanata 3.7.3\n" -"Language-Team: German\n" - -#, python-format -msgid "An error occurred during processing the request: %s" -msgstr "Ein Fehler trat auf während die Anfrage behandelt wurde: %s" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/locale/en_GB/LC_MESSAGES/oslo_middleware-log-error.po new/oslo.middleware-3.33.0/oslo_middleware/locale/en_GB/LC_MESSAGES/oslo_middleware-log-error.po --- old/oslo.middleware-3.30.1/oslo_middleware/locale/en_GB/LC_MESSAGES/oslo_middleware-log-error.po 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/locale/en_GB/LC_MESSAGES/oslo_middleware-log-error.po 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -# Translations template for oslo.middleware. -# Copyright (C) 2015 ORGANIZATION -# This file is distributed under the same license as the oslo.middleware -# project. -# -# Translators: -# Andi Chandler <a...@gowling.com>, 2014 -# Andreas Jaeger <jaegera...@gmail.com>, 2016. #zanata -msgid "" -msgstr "" -"Project-Id-Version: oslo.middleware 3.7.1.dev18\n" -"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n" -"POT-Creation-Date: 2016-04-19 23:53+0000\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2014-11-03 11:03+0000\n" -"Last-Translator: Andi Chandler <a...@gowling.com>\n" -"Language: en-GB\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Generated-By: Babel 2.0\n" -"X-Generator: Zanata 3.7.3\n" -"Language-Team: English (United Kingdom)\n" - -#, python-format -msgid "An error occurred during processing the request: %s" -msgstr "An error occurred during processing the request: %s" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/locale/fr/LC_MESSAGES/oslo_middleware-log-error.po new/oslo.middleware-3.33.0/oslo_middleware/locale/fr/LC_MESSAGES/oslo_middleware-log-error.po --- old/oslo.middleware-3.30.1/oslo_middleware/locale/fr/LC_MESSAGES/oslo_middleware-log-error.po 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/locale/fr/LC_MESSAGES/oslo_middleware-log-error.po 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -# Translations template for oslo.middleware. -# Copyright (C) 2015 ORGANIZATION -# This file is distributed under the same license as the oslo.middleware -# project. -# -# Translators: -# Maxime COQUEREL <max.coque...@gmail.com>, 2014 -# Andreas Jaeger <jaegera...@gmail.com>, 2016. #zanata -msgid "" -msgstr "" -"Project-Id-Version: oslo.middleware 3.7.1.dev18\n" -"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n" -"POT-Creation-Date: 2016-04-19 23:53+0000\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2014-09-25 09:01+0000\n" -"Last-Translator: Maxime COQUEREL <max.coque...@gmail.com>\n" -"Language: fr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" -"Generated-By: Babel 2.0\n" -"X-Generator: Zanata 3.7.3\n" -"Language-Team: French\n" - -#, python-format -msgid "An error occurred during processing the request: %s" -msgstr "Une erreur s'est produite lors du traitement de la demande: %s" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/tests/test_cors.py new/oslo.middleware-3.33.0/oslo_middleware/tests/test_cors.py --- old/oslo.middleware-3.30.1/oslo_middleware/tests/test_cors.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/tests/test_cors.py 2017-12-04 11:32:16.000000000 +0100 @@ -280,29 +280,6 @@ # Now that the config is set up, create our application. self.application = cors.CORS(test_application, self.config) - def test_factory_latent_properties(self): - '''Assert latent properties in paste.ini config. - - If latent_* properties are added to a paste.ini config, assert that - they are persisted in the middleware. - ''' - - # Spaces in config are deliberate to frobb the config parsing. - filter = cors.filter_factory(global_conf=None, - oslo_config_project='foobar', - latent_expose_headers=' X-Header-1 , X-2', - latent_allow_headers='X-Header-1 , X-2', - latent_allow_methods='GET,PUT, POST') - app = filter(test_application) - - # Ensure that the properties are in latent configuration. - self.assertEqual(['X-Header-1', 'X-2'], - app._latent_configuration['expose_headers']) - self.assertEqual(['X-Header-1', 'X-2'], - app._latent_configuration['allow_headers']) - self.assertEqual(['GET', 'PUT', 'POST'], - app._latent_configuration['methods']) - class CORSRegularRequestTest(CORSTestBase): """CORS Specification Section 6.1 @@ -1261,112 +1238,3 @@ allow_credentials='true', expose_headers=None, has_content_type=True) - - -class CORSTestLatentProperties(CORSTestBase): - """Test the CORS wildcard specification.""" - - def setUp(self): - super(CORSTestLatentProperties, self).setUp() - - fixture = self.config_fixture # Line length accommodation - fixture.load_raw_values(group='cors', - allowed_origin='http://default.example.com', - allow_credentials='True', - max_age='', - expose_headers='X-Configured', - allow_methods='GET', - allow_headers='X-Configured') - - # Now that the config is set up, create our application. - self.application = cors.CORS(test_application, self.config) - - def test_latent_methods(self): - """Assert that latent HTTP methods are permitted.""" - - self.application.set_latent(allow_headers=None, - expose_headers=None, - allow_methods=['POST']) - - request = webob.Request.blank('/') - request.method = "OPTIONS" - request.headers['Origin'] = 'http://default.example.com' - request.headers['Access-Control-Request-Method'] = 'POST' - response = request.get_response(self.application) - self.assertCORSResponse(response, - status='200 OK', - allow_origin='http://default.example.com', - max_age=None, - allow_methods='POST', - allow_headers='', - allow_credentials='true', - expose_headers=None) - - def test_invalid_latent_methods(self): - """Assert that passing a non-list is caught.""" - - self.assertRaises(TypeError, - self.application.set_latent, - allow_methods='POST') - - def test_latent_allow_headers(self): - """Assert that latent HTTP headers are permitted.""" - - self.application.set_latent(allow_headers=['X-Latent'], - expose_headers=None, - allow_methods=None) - - request = webob.Request.blank('/') - request.method = "OPTIONS" - request.headers['Origin'] = 'http://default.example.com' - request.headers['Access-Control-Request-Method'] = 'GET' - request.headers[ - 'Access-Control-Request-Headers'] = 'X-Latent,X-Configured' - response = request.get_response(self.application) - self.assertCORSResponse(response, - status='200 OK', - allow_origin='http://default.example.com', - max_age=None, - allow_methods='GET', - allow_headers='X-Latent,X-Configured', - allow_credentials='true', - expose_headers=None) - - def test_invalid_latent_allow_headers(self): - """Assert that passing a non-list is caught in allow headers.""" - - self.assertRaises(TypeError, - self.application.set_latent, - allow_headers='X-Latent') - - def test_latent_expose_headers(self): - """Assert that latent HTTP headers are exposed.""" - - self.application.set_latent(allow_headers=None, - expose_headers=[ - 'X-Server-Generated-Response'], - allow_methods=None) - - request = webob.Request.blank('/') - request.method = "GET" - request.headers['Origin'] = 'http://default.example.com' - response = request.get_response(self.application) - self.assertCORSResponse(response, - status='200 OK', - allow_origin='http://default.example.com', - max_age=None, - allow_methods=None, - allow_headers=None, - allow_credentials='true', - expose_headers='X-Configured,' - 'X-Server-Generated-Response', - has_content_type=True) - - def test_invalid_latent_expose_headers(self): - """Assert that passing a non-list is caught in expose headers.""" - - # Add headers to the application. - - self.assertRaises(TypeError, - self.application.set_latent, - expose_headers='X-Latent') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/tests/test_healthcheck.py new/oslo.middleware-3.33.0/oslo_middleware/tests/test_healthcheck.py --- old/oslo.middleware-3.30.1/oslo_middleware/tests/test_healthcheck.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/tests/test_healthcheck.py 2017-12-04 11:32:16.000000000 +0100 @@ -18,6 +18,7 @@ import mock from oslo_config import fixture as config +from oslo_serialization import jsonutils from oslotest import base as test_base import requests import webob.dec @@ -192,3 +193,10 @@ expected_body=b'DISABLED BY FILE', server_port=81) self.assertIn('disable_by_files_ports', self.app._backends.names()) + + def test_json_response(self): + expected_body = jsonutils.dumps({'detailed': False, 'reasons': []}, + indent=4, + sort_keys=True).encode('utf-8') + self._do_test(expected_body=expected_body, + accept='application/json') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/oslo_middleware/tests/test_http_proxy_to_wsgi.py new/oslo.middleware-3.33.0/oslo_middleware/tests/test_http_proxy_to_wsgi.py --- old/oslo.middleware-3.30.1/oslo_middleware/tests/test_http_proxy_to_wsgi.py 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/oslo_middleware/tests/test_http_proxy_to_wsgi.py 2017-12-04 11:32:16.000000000 +0100 @@ -39,8 +39,7 @@ def fake_app(req): return util.application_uri(req.environ) - self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGIMiddleware( - fake_app) + self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGI(fake_app) response = self.request.get_response(self.middleware) self.assertEqual(b"http://localhost:80/", response.body) @@ -119,8 +118,7 @@ def fake_app(req): return req.environ['REMOTE_ADDR'] - self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGIMiddleware( - fake_app) + self.middleware = http_proxy_to_wsgi.HTTPProxyToWSGI(fake_app) forwarded_for_addr = '1.2.3.4' forwarded_addr = '8.8.8.8' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/releasenotes/source/conf.py new/oslo.middleware-3.33.0/releasenotes/source/conf.py --- old/oslo.middleware-3.30.1/releasenotes/source/conf.py 2017-09-27 06:23:17.000000000 +0200 +++ new/oslo.middleware-3.33.0/releasenotes/source/conf.py 2017-12-04 11:32:16.000000000 +0100 @@ -59,17 +59,12 @@ project = u'oslo.middleware Release Notes' copyright = u'2016, oslo.middleware Developers' -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -from oslo_middleware.version import version_info as oslo_middleware_version - +# Release notes do not need a version in the title, they span +# multiple versions. # The full version, including alpha/beta/rc tags. -release = oslo_middleware_version.version_string_with_vcs() +release = '' # The short X.Y version. -version = oslo_middleware_version.canonical_version_string() +version = '' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/releasenotes/source/index.rst new/oslo.middleware-3.33.0/releasenotes/source/index.rst --- old/oslo.middleware-3.30.1/releasenotes/source/index.rst 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/releasenotes/source/index.rst 2017-12-04 11:32:16.000000000 +0100 @@ -6,4 +6,5 @@ :maxdepth: 1 unreleased + pike ocata diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po new/oslo.middleware-3.33.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po --- old/oslo.middleware-3.30.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po 1970-01-01 01:00:00.000000000 +0100 +++ new/oslo.middleware-3.33.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po 2017-12-04 11:32:16.000000000 +0100 @@ -0,0 +1,64 @@ +# Andi Chandler <a...@gowling.com>, 2017. #zanata +msgid "" +msgstr "" +"Project-Id-Version: oslo.middleware Release Notes 3.32.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-09-25 17:24+0000\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2017-10-07 09:28+0000\n" +"Last-Translator: Andi Chandler <a...@gowling.com>\n" +"Language-Team: English (United Kingdom)\n" +"Language: en-GB\n" +"X-Generator: Zanata 3.9.6\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" + +msgid "3.20.0" +msgstr "3.20.0" + +msgid "3.27.0" +msgstr "3.27.0" + +msgid "New Features" +msgstr "New Features" + +msgid "Ocata Series Release Notes" +msgstr "Ocata Series Release Notes" + +msgid "Other Notes" +msgstr "Other Notes" + +msgid "Pike Series Release Notes" +msgstr "Pike Series Release Notes" + +msgid "Switch to reno for managing release notes." +msgstr "Switch to Reno for managing release notes." + +msgid "" +"This adds a new ``compat_headers`` class attribute to the ``RequestId`` " +"middleware. That allows projects like Nova that have API contracts on " +"alternative request-id headers to adopt the oslo ``RequestId`` middleware " +"but still retain their API contract." +msgstr "" +"This adds a new ``compat_headers`` class attribute to the ``RequestId`` " +"middleware. That allows projects like Nova that have API contracts on " +"alternative request-id headers to adopt the oslo ``RequestId`` middleware " +"but still retain their API contract." + +msgid "" +"This adds support for ``global_request_id`` to the ``RequestId`` middleware. " +"An inbound header of ``X-OpenStack-Request-ID`` is accepted as long as it is " +"of the format ``req-$uuid``, and made available to oslo.context. This will " +"allow for cross project request id tracking." +msgstr "" +"This adds support for ``global_request_id`` to the ``RequestId`` middleware. " +"An inbound header of ``X-OpenStack-Request-ID`` is accepted as long as it is " +"of the format ``req-$uuid``, and made available to oslo.context. This will " +"allow for cross project request id tracking." + +msgid "Unreleased Release Notes" +msgstr "Unreleased Release Notes" + +msgid "oslo.middleware Release Notes" +msgstr "oslo.middleware Release Notes" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/releasenotes/source/pike.rst new/oslo.middleware-3.33.0/releasenotes/source/pike.rst --- old/oslo.middleware-3.30.1/releasenotes/source/pike.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/oslo.middleware-3.33.0/releasenotes/source/pike.rst 2017-12-04 11:32:16.000000000 +0100 @@ -0,0 +1,6 @@ +=================================== + Pike Series Release Notes +=================================== + +.. release-notes:: + :branch: stable/pike diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/requirements.txt new/oslo.middleware-3.33.0/requirements.txt --- old/oslo.middleware-3.30.1/requirements.txt 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/requirements.txt 2017-12-04 11:32:38.000000000 +0100 @@ -4,11 +4,11 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0 Jinja2!=2.9.0,!=2.9.1,!=2.9.2,!=2.9.3,!=2.9.4,>=2.8 # BSD License (3 clause) -oslo.config!=4.3.0,!=4.4.0,>=4.0.0 # Apache-2.0 -oslo.context>=2.14.0 # Apache-2.0 -oslo.i18n!=3.15.2,>=2.1.0 # Apache-2.0 -oslo.utils>=3.20.0 # Apache-2.0 -six>=1.9.0 # MIT +oslo.config>=5.1.0 # Apache-2.0 +oslo.context>=2.19.2 # Apache-2.0 +oslo.i18n>=3.15.3 # Apache-2.0 +oslo.utils>=3.31.0 # Apache-2.0 +six>=1.10.0 # MIT stevedore>=1.20.0 # Apache-2.0 WebOb>=1.7.1 # MIT debtcollector>=1.2.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/test-requirements.txt new/oslo.middleware-3.33.0/test-requirements.txt --- old/oslo.middleware-3.30.1/test-requirements.txt 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/test-requirements.txt 2017-12-04 11:32:16.000000000 +0100 @@ -4,10 +4,11 @@ fixtures>=3.0.0 # Apache-2.0/BSD hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 -mock>=2.0 # BSD -openstackdocstheme>=1.16.0 # Apache-2.0 +mock>=2.0.0 # BSD +openstackdocstheme>=1.17.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0 sphinx>=1.6.2 # BSD -testtools>=1.4.0 # MIT +testtools>=2.2.0 # MIT coverage!=4.4,>=4.0 # Apache-2.0 -reno!=2.3.1,>=1.8.0 # Apache-2.0 +reno>=2.5.0 # Apache-2.0 +oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.middleware-3.30.1/tox.ini new/oslo.middleware-3.33.0/tox.ini --- old/oslo.middleware-3.30.1/tox.ini 2017-09-27 06:23:18.000000000 +0200 +++ new/oslo.middleware-3.33.0/tox.ini 2017-12-04 11:32:16.000000000 +0100 @@ -7,7 +7,7 @@ VIRTUAL_ENV={envdir} BRANCH_NAME=master CLIENT_NAME=oslo.middleware -install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike} {opts} {packages} +install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}'