commit python-oslo.versionedobjects for openSUSE:Factory
Hello community, here is the log from the commit of package python-oslo.versionedobjects for openSUSE:Factory checked in at 2019-05-03 22:42:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslo.versionedobjects (Old) and /work/SRC/openSUSE:Factory/.python-oslo.versionedobjects.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-oslo.versionedobjects" Fri May 3 22:42:52 2019 rev:7 rq:692868 version:1.35.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslo.versionedobjects/python-oslo.versionedobjects.changes 2018-09-07 15:39:16.622544310 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslo.versionedobjects.new.5148/python-oslo.versionedobjects.changes 2019-05-03 22:42:54.771302894 +0200 @@ -1,0 +2,20 @@ +Mon Apr 8 11:34:36 UTC 2019 - cloud-devel@suse.de + +- update to version 1.35.1 + - Update hacking version + - Update mailinglist from dev to discuss + - add python 3.7 unit test job + - add lib-forward-testing-python3 test job + - Lower ObjectVersionChecker logging to DEBUG level + - Allow lists to be generated from any non-string iterable + - import zuul job settings from project-config + - Imported Translations from Zanata + - Update reno for stable/rocky + - Clean up .gitignore references to personal tools + - Use template for lower-constraints + - add python 3.6 unit test job + - Add ListOfUUIDField + - Switch to stestr + - delete unused '=' + +------------------------------------------------------------------- Old: ---- oslo.versionedobjects-1.33.3.tar.gz New: ---- oslo.versionedobjects-1.35.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslo.versionedobjects.spec ++++++ --- /var/tmp/diff_new_pack.AsdyG6/_old 2019-05-03 22:42:55.399304216 +0200 +++ /var/tmp/diff_new_pack.AsdyG6/_new 2019-05-03 22:42:55.399304216 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-oslo.versionedobjects # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,18 +12,18 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: python-oslo.versionedobjects -Version: 1.33.3 +Version: 1.35.1 Release: 0 Summary: Oslo Versioned Objects library License: Apache-2.0 Group: Development/Languages/Python URL: https://launchpad.net/oslo.versionedobjects -Source0: https://files.pythonhosted.org/packages/source/o/oslo.versionedobjects/oslo.... +Source0: https://files.pythonhosted.org/packages/source/o/oslo.versionedobjects/oslo.... BuildRequires: openstack-macros BuildRequires: python-devel BuildRequires: python2-iso8601 >= 0.1.11 @@ -38,8 +38,7 @@ BuildRequires: python2-oslo.utils >= 3.33.0 BuildRequires: python2-oslotest BuildRequires: python2-pbr -BuildRequires: python2-testrepository -BuildRequires: python2-testtools +BuildRequires: python2-stestr BuildRequires: python3-devel BuildRequires: python3-iso8601 >= 0.1.11 BuildRequires: python3-jsonschema @@ -53,8 +52,7 @@ BuildRequires: python3-oslo.utils >= 3.33.0 BuildRequires: python3-oslotest BuildRequires: python3-pbr -BuildRequires: python3-testrepository -BuildRequires: python3-testtools +BuildRequires: python3-stestr Requires: python-WebOb >= 1.7.1 Requires: python-iso8601 >= 0.1.11 Requires: python-netaddr >= 0.7.18 @@ -88,21 +86,20 @@ This package contains documentation files for %{name}. %prep -%autosetup -p1 -n oslo.versionedobjects-1.33.3 +%autosetup -p1 -n oslo.versionedobjects-1.35.1 %py_req_cleanup %build %{python_build} PYTHONPATH=. sphinx-build -b html doc/source doc/build/html +rm -r doc/build/html/.{doctrees,buildinfo} %install %{python_install} %check -%{python_expand rm -rf .testrepository -$python setup.py testr -} +%python_exec -m stestr.cli run %files %{python_files} %license LICENSE ++++++ _service ++++++ --- /var/tmp/diff_new_pack.AsdyG6/_old 2019-05-03 22:42:55.435304292 +0200 +++ /var/tmp/diff_new_pack.AsdyG6/_new 2019-05-03 22:42:55.435304292 +0200 @@ -1,8 +1,8 @@ <services> <service mode="disabled" name="renderspec"> - <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/rocky/openstack/oslo.versionedobjects/oslo.versionedobjects.spec.j2</param> + <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/stein/openstack/oslo.versionedobjects/oslo.versionedobjects.spec.j2</param> <param name="output-name">python-oslo.versionedobjects.spec</param> - <param name="requirements">https://raw.githubusercontent.com/openstack/oslo.versionedobjects/stable/rocky/requirements.txt</param> + <param name="requirements">https://raw.githubusercontent.com/openstack/oslo.versionedobjects/stable/stein/requirements.txt</param> <param name="changelog-email">cloud-devel@suse.de</param> <param name="changelog-provider">gh,openstack,oslo.versionedobjects</param> </service> ++++++ oslo.versionedobjects-1.33.3.tar.gz -> oslo.versionedobjects-1.35.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/.stestr.conf new/oslo.versionedobjects-1.35.1/.stestr.conf --- old/oslo.versionedobjects-1.33.3/.stestr.conf 1970-01-01 01:00:00.000000000 +0100 +++ new/oslo.versionedobjects-1.35.1/.stestr.conf 2019-02-28 19:02:47.000000000 +0100 @@ -0,0 +1,3 @@ +[DEFAULT] +test_path=./oslo_versionedobjects/tests +top_path=./ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/.testr.conf new/oslo.versionedobjects-1.35.1/.testr.conf --- old/oslo.versionedobjects-1.33.3/.testr.conf 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/.testr.conf 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -[DEFAULT] -test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ - OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ - OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ - ${PYTHON:-python} -m subunit.run discover -t ./ ./oslo_versionedobjects $LISTOPT $IDOPTION -test_id_option=--load-list $IDFILE -test_list_option=--list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/.zuul.yaml new/oslo.versionedobjects-1.35.1/.zuul.yaml --- old/oslo.versionedobjects-1.33.3/.zuul.yaml 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/.zuul.yaml 2019-02-28 19:02:47.000000000 +0100 @@ -2,11 +2,19 @@ check: jobs: - oslo.versionedobjects-src-grenade-devstack-multinode + templates: + - check-requirements + - lib-forward-testing + - lib-forward-testing-python3 + - openstack-lower-constraints-jobs + - openstack-python-jobs + - openstack-python35-jobs + - openstack-python36-jobs + - openstack-python37-jobs + - periodic-stable-jobs + - publish-openstack-docs-pti + - release-notes-jobs-python3 - - openstack-tox-lower-constraints - gate: - jobs: - - openstack-tox-lower-constraints - job: name: oslo.versionedobjects-src-grenade-devstack-multinode parent: legacy-dsvm-base-multinode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/AUTHORS new/oslo.versionedobjects-1.35.1/AUTHORS --- old/oslo.versionedobjects-1.33.3/AUTHORS 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/AUTHORS 2019-02-28 19:03:46.000000000 +0100 @@ -101,6 +101,7 @@ Donal Lafferty <donal.lafferty@citrix.com> Doug Hellmann <doug.hellmann@dreamhost.com> Doug Hellmann <doug@doughellmann.com> +Doug Wiegley <dwiegley@salesforce.com> Drew Thorstensen <thorst@us.ibm.com> Duncan McGreggor <duncan@dreamhost.com> Ed Leafe <ed@leafe.com> @@ -220,6 +221,7 @@ Matt Dietz <matt.dietz@rackspace.com> Matt Joyce <matt.joyce@cloudscaling.com> Matt Odden <mrodden@us.ibm.com> +Matt Riedemann <mriedem.os@gmail.com> Matt Riedemann <mriedem@us.ibm.com> Matthew Booth <mbooth@redhat.com> Matthew Hooker <matt@cloudscaling.com> @@ -362,10 +364,11 @@ Zhi Yan Liu <lzy.dev@gmail.com> Zhi Yan Liu <zhiyanl@cn.ibm.com> ZhiQiang Fan <aji.zqfan@gmail.com> +ZhijunWei <wzj334965317@outlook.com> Zhiteng Huang <zhiteng.huang@intel.com> +ZhongShengping <chdzsp@163.com> Zhongyue Luo <lzyeval@gmail.com> Zhongyue Luo <zhongyue.nah@intel.com> -Zuul <zuul@review.openstack.org> andy <github@anarkystic.com> brian-lamar <brian.lamar@gmail.com> danwent <danwent@dan-xs3-cs> @@ -405,4 +408,5 @@ termie <github@anarkystic.com> unicell <unicell@gmail.com> vladimir.p <vladimir@zadarastorage.com> +wangqi <wang.qi@99cloud.net> Édouard Thuleau <edouard.thuleau@orange.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/ChangeLog new/oslo.versionedobjects-1.35.1/ChangeLog --- old/oslo.versionedobjects-1.33.3/ChangeLog 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/ChangeLog 2019-02-28 19:03:45.000000000 +0100 @@ -1,6 +1,33 @@ CHANGES ======= +1.35.1 +------ + +* add python 3.7 unit test job +* Allow lists to be generated from any non-string iterable +* Update hacking version + +1.35.0 +------ + +* Lower ObjectVersionChecker logging to DEBUG level +* Add ListOfUUIDField +* Use template for lower-constraints +* Update mailinglist from dev to discuss +* Clean up .gitignore references to personal tools + +1.34.1 +------ + +* Imported Translations from Zanata +* add lib-forward-testing-python3 test job +* add python 3.6 unit test job +* import zuul job settings from project-config +* delete unused '=' +* Update reno for stable/rocky +* Switch to stestr + 1.33.3 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/PKG-INFO new/oslo.versionedobjects-1.35.1/PKG-INFO --- old/oslo.versionedobjects-1.33.3/PKG-INFO 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/PKG-INFO 2019-02-28 19:03:46.000000000 +0100 @@ -1,10 +1,10 @@ Metadata-Version: 1.1 Name: oslo.versionedobjects -Version: 1.33.3 +Version: 1.35.1 Summary: Oslo Versioned Objects library Home-page: https://docs.openstack.org/oslo.versionedobjects/latest/ Author: OpenStack -Author-email: openstack-dev@lists.openstack.org +Author-email: openstack-discuss@lists.openstack.org License: UNKNOWN Description: ======================== Team and repository tags diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/doc/source/reference/exception.rst new/oslo.versionedobjects-1.35.1/doc/source/reference/exception.rst --- old/oslo.versionedobjects-1.33.3/doc/source/reference/exception.rst 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/doc/source/reference/exception.rst 2019-02-28 19:02:47.000000000 +0100 @@ -1,6 +1,6 @@ -============= - exception -============= +========= +exception +========= .. automodule:: oslo_versionedobjects.exception :members: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/lower-constraints.txt new/oslo.versionedobjects-1.35.1/lower-constraints.txt --- old/oslo.versionedobjects-1.33.3/lower-constraints.txt 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/lower-constraints.txt 2019-02-28 19:02:47.000000000 +0100 @@ -31,7 +31,7 @@ netaddr==0.7.18 netifaces==0.10.4 os-client-config==1.28.0 -oslo.concurrency==3.25.0 +oslo.concurrency==3.26.0 oslo.config==5.2.0 oslo.context==2.19.2 oslo.i18n==3.15.3 @@ -65,9 +65,9 @@ six==1.10.0 smmap==0.9.0 statsd==3.2.1 +stestr==2.0.0 stevedore==1.20.0 tenacity==3.2.1 -testrepository==0.0.18 testtools==2.2.0 traceback2==1.4.0 unittest2==1.1.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo.versionedobjects.egg-info/PKG-INFO new/oslo.versionedobjects-1.35.1/oslo.versionedobjects.egg-info/PKG-INFO --- old/oslo.versionedobjects-1.33.3/oslo.versionedobjects.egg-info/PKG-INFO 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo.versionedobjects.egg-info/PKG-INFO 2019-02-28 19:03:46.000000000 +0100 @@ -1,10 +1,10 @@ Metadata-Version: 1.1 Name: oslo.versionedobjects -Version: 1.33.3 +Version: 1.35.1 Summary: Oslo Versioned Objects library Home-page: https://docs.openstack.org/oslo.versionedobjects/latest/ Author: OpenStack -Author-email: openstack-dev@lists.openstack.org +Author-email: openstack-discuss@lists.openstack.org License: UNKNOWN Description: ======================== Team and repository tags diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo.versionedobjects.egg-info/SOURCES.txt new/oslo.versionedobjects-1.35.1/oslo.versionedobjects.egg-info/SOURCES.txt --- old/oslo.versionedobjects-1.33.3/oslo.versionedobjects.egg-info/SOURCES.txt 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo.versionedobjects.egg-info/SOURCES.txt 2019-02-28 19:03:46.000000000 +0100 @@ -1,6 +1,6 @@ .coveragerc .mailmap -.testr.conf +.stestr.conf .zuul.yaml AUTHORS CONTRIBUTING.rst @@ -65,6 +65,7 @@ releasenotes/source/ocata.rst releasenotes/source/pike.rst releasenotes/source/queens.rst +releasenotes/source/rocky.rst releasenotes/source/unreleased.rst releasenotes/source/_static/.placeholder releasenotes/source/_templates/.placeholder diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo.versionedobjects.egg-info/pbr.json new/oslo.versionedobjects-1.35.1/oslo.versionedobjects.egg-info/pbr.json --- old/oslo.versionedobjects-1.33.3/oslo.versionedobjects.egg-info/pbr.json 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo.versionedobjects.egg-info/pbr.json 2019-02-28 19:03:46.000000000 +0100 @@ -1 +1 @@ -{"git_version": "d46aea7", "is_release": true} \ No newline at end of file +{"git_version": "c45d348", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/fields.py new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/fields.py --- old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/fields.py 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/fields.py 2019-02-28 19:02:47.000000000 +0100 @@ -13,6 +13,7 @@ # under the License. import abc +import collections import datetime from distutils import versionpredicate import re @@ -642,7 +643,9 @@ class List(CompoundFieldType): def coerce(self, obj, attr, value): - if not isinstance(value, list): + + if (not isinstance(value, collections.Iterable) or + isinstance(value, six.string_types + (collections.Mapping,))): raise ValueError(_('A list is required in field %(attr)s, ' 'not a %(type)s') % {'attr': attr, 'type': type(value).__name__}) @@ -1180,6 +1183,10 @@ super(ListOfObjectsField, self).__init__(**kwargs) +class ListOfUUIDField(AutoTypedField): + AUTO_TYPE = List(UUID()) + + class IPAddressField(AutoTypedField): AUTO_TYPE = IPAddress() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/fixture.py new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/fixture.py --- old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/fixture.py 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/fixture.py 2019-02-28 19:02:47.000000000 +0100 @@ -206,8 +206,8 @@ """Follow a chain of remotable things down to the original function.""" if isinstance(thing, classmethod): return self._find_remotable_method(cls, thing.__get__(None, cls)) - elif (inspect.ismethod(thing) - or inspect.isfunction(thing)) and hasattr(thing, 'remotable'): + elif (inspect.ismethod(thing) or + inspect.isfunction(thing)) and hasattr(thing, 'remotable'): return self._find_remotable_method(cls, thing.original_fn, parent_was_remotable=True) elif parent_was_remotable: @@ -320,8 +320,9 @@ kwargs = {'version_manifest': manifest} if manifest else {} for n in range(version[1] + 1): test_version = '%d.%d' % (version[0], n) - LOG.info('testing obj: %s version: %s' % - (obj_class.obj_name(), test_version)) + # Run the test with OS_DEBUG=True to see this. + LOG.debug('testing obj: %s version: %s' % + (obj_class.obj_name(), test_version)) kwargs['target_version'] = test_version obj_class(*init_args, **init_kwargs).obj_to_primitive(**kwargs) @@ -369,8 +370,8 @@ for my_version, child_version in versions: _my_version = vutils.convert_version_to_tuple(my_version) _ch_version = vutils.convert_version_to_tuple(child_version) - if not (last_my_version < _my_version - and last_child_version <= _ch_version): + if not (last_my_version < _my_version and + last_child_version <= _ch_version): raise AssertionError(('Object %s relationship %s->%s for ' 'field %s is out of order') % ( obj_class.obj_name(), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/locale/en_GB/LC_MESSAGES/oslo_versionedobjects.po new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/locale/en_GB/LC_MESSAGES/oslo_versionedobjects.po --- old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/locale/en_GB/LC_MESSAGES/oslo_versionedobjects.po 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/locale/en_GB/LC_MESSAGES/oslo_versionedobjects.po 2019-02-28 19:02:47.000000000 +0100 @@ -8,15 +8,16 @@ # Andi Chandler <andi@gowling.com>, 2016. #zanata # Andreas Jaeger <jaegerandi@gmail.com>, 2016. #zanata # Andi Chandler <andi@gowling.com>, 2017. #zanata +# Andi Chandler <andi@gowling.com>, 2018. #zanata msgid "" msgstr "" "Project-Id-Version: oslo.versionedobjects VERSION\n" "Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n" -"POT-Creation-Date: 2018-02-13 18:33+0000\n" +"POT-Creation-Date: 2018-08-13 06:45+0000\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2017-09-28 03:01+0000\n" +"PO-Revision-Date: 2018-08-08 07:53+0000\n" "Last-Translator: Andi Chandler <andi@gowling.com>\n" "Language: en_GB\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" @@ -156,8 +157,12 @@ msgstr "Value must be >= 0 for field %s" #, python-format -msgid "Version %(objver)s of %(objname)s is not supported" -msgstr "Version %(objver)s of %(objname)s is not supported" +msgid "" +"Version %(objver)s of %(objname)s is not supported, supported version is " +"%(supported)s" +msgstr "" +"Version %(objver)s of %(objname)s is not supported, supported version is " +"%(supported)s" #, python-format msgid "Version %(val)s is not a valid predicate in field %(attr)s" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/test.py new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/test.py --- old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/test.py 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/test.py 2019-02-28 19:02:47.000000000 +0100 @@ -20,8 +20,8 @@ """ -import eventlet -eventlet.monkey_patch(os=False) +import eventlet # noqa +eventlet.monkey_patch(os=False) # noqa import inspect import mock diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/tests/test_fields.py new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/tests/test_fields.py --- old/oslo.versionedobjects-1.33.3/oslo_versionedobjects/tests/test_fields.py 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/oslo_versionedobjects/tests/test_fields.py 2019-02-28 19:02:47.000000000 +0100 @@ -851,6 +851,24 @@ self.assertEqual('[[1, 2]]', self.field.stringify([[1, 2]])) +class TestListOfUUIDField(TestField): + def setUp(self): + super(TestListOfUUIDField, self).setUp() + self.field = fields.ListOfUUIDField() + self.uuid1 = '6b2097ea-d0e3-44dd-b131-95472b3ea8fd' + self.uuid2 = '478c193d-2533-4e71-ab2b-c7683f67d7f9' + self.coerce_good_values = [([self.uuid1, self.uuid2], + [self.uuid1, self.uuid2])] + # coerce_bad_values is intentionally ignored since the UUID field + # allows non-UUID values for now. See TestUUIDField for examples. + self.to_primitive_values = [([self.uuid1], [self.uuid1])] + self.from_primitive_values = [([self.uuid1], [self.uuid1])] + + def test_stringify(self): + self.assertEqual('[%s,%s]' % (self.uuid1, self.uuid2), + self.field.stringify([self.uuid1, self.uuid2])) + + class TestLocalMethods(test.TestCase): @mock.patch.object(obj_base.LOG, 'exception') def test__make_class_properties_setter_value_error(self, mock_log): @@ -1211,3 +1229,41 @@ invalid_vals = [x for x in self.coerce_bad_values] for invalid_val in invalid_vals: self.assertNotRegex(str(invalid_val), pattern) + + +class FakeCounter(six.Iterator): + def __init__(self): + self.n = 0 + + def __iter__(self): + return self + + def __next__(self): + if self.n <= 4: + self.n += 1 + return self.n + else: + raise StopIteration + + +class TestListTypes(test.TestCase): + + def test_regular_list(self): + fields.List(fields.Integer).coerce(None, None, [1, 2]) + + def test_non_iterable(self): + self.assertRaises(ValueError, + fields.List(fields.Integer).coerce, None, None, 2) + + def test_string_iterable(self): + self.assertRaises(ValueError, + fields.List(fields.Integer).coerce, None, None, + 'hello') + + def test_mapping_iterable(self): + self.assertRaises(ValueError, + fields.List(fields.Integer).coerce, None, None, + {'a': 1, 'b': 2}) + + def test_iter_class(self): + fields.List(fields.Integer).coerce(None, None, FakeCounter()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/releasenotes/source/index.rst new/oslo.versionedobjects-1.35.1/releasenotes/source/index.rst --- old/oslo.versionedobjects-1.33.3/releasenotes/source/index.rst 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/releasenotes/source/index.rst 2019-02-28 19:02:47.000000000 +0100 @@ -6,6 +6,7 @@ :maxdepth: 1 unreleased + rocky queens pike ocata diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po new/oslo.versionedobjects-1.35.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po --- old/oslo.versionedobjects-1.33.3/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po 2019-02-28 19:02:47.000000000 +0100 @@ -2,13 +2,13 @@ # Andi Chandler <andi@gowling.com>, 2018. #zanata msgid "" msgstr "" -"Project-Id-Version: oslo.versionedobjects Release Notes\n" +"Project-Id-Version: oslo.versionedobjects\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-02-13 18:33+0000\n" +"POT-Creation-Date: 2018-08-13 06:45+0000\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2018-02-06 11:26+0000\n" +"PO-Revision-Date: 2018-08-08 07:54+0000\n" "Last-Translator: Andi Chandler <andi@gowling.com>\n" "Language-Team: English (United Kingdom)\n" "Language: en_GB\n" @@ -36,5 +36,8 @@ msgid "Queens Series Release Notes" msgstr "Queens Series Release Notes" +msgid "Rocky Series Release Notes" +msgstr "Rocky Series Release Notes" + msgid "oslo.versionedobjects Release Notes" msgstr "oslo.versionedobjects Release Notes" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/releasenotes/source/rocky.rst new/oslo.versionedobjects-1.35.1/releasenotes/source/rocky.rst --- old/oslo.versionedobjects-1.33.3/releasenotes/source/rocky.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/oslo.versionedobjects-1.35.1/releasenotes/source/rocky.rst 2019-02-28 19:02:47.000000000 +0100 @@ -0,0 +1,6 @@ +=================================== + Rocky Series Release Notes +=================================== + +.. release-notes:: + :branch: stable/rocky diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/setup.cfg new/oslo.versionedobjects-1.35.1/setup.cfg --- old/oslo.versionedobjects-1.33.3/setup.cfg 2018-06-27 10:28:59.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/setup.cfg 2019-02-28 19:03:46.000000000 +0100 @@ -4,7 +4,7 @@ description-file = README.rst author = OpenStack -author-email = openstack-dev@lists.openstack.org +author-email = openstack-discuss@lists.openstack.org home-page = https://docs.openstack.org/oslo.versionedobjects/latest/ classifier = Environment :: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/test-requirements.txt new/oslo.versionedobjects-1.35.1/test-requirements.txt --- old/oslo.versionedobjects-1.33.3/test-requirements.txt 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/test-requirements.txt 2019-02-28 19:02:47.000000000 +0100 @@ -1,11 +1,12 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 +hacking>=1.1.0,<1.2.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 testtools>=2.2.0 # MIT coverage!=4.4,>=4.0 # Apache-2.0 jsonschema<3.0.0,>=2.6.0 # MIT +stestr>=2.0.0 # Apache-2.0 mock>=2.0.0 # BSD fixtures>=3.0.0 # Apache-2.0/BSD diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.versionedobjects-1.33.3/tox.ini new/oslo.versionedobjects-1.35.1/tox.ini --- old/oslo.versionedobjects-1.33.3/tox.ini 2018-06-27 10:26:38.000000000 +0200 +++ new/oslo.versionedobjects-1.35.1/tox.ini 2019-02-28 19:02:47.000000000 +0100 @@ -10,7 +10,7 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/test-requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' +commands = stestr run --slowest {posargs} [testenv:py27] basepython = python2.7
participants (1)
-
root