]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Test for object version hash changes
authorMatt Riedemann <mriedem@us.ibm.com>
Tue, 10 Nov 2015 20:55:46 +0000 (12:55 -0800)
committerMatt Riedemann <mriedem@us.ibm.com>
Wed, 11 Nov 2015 21:09:22 +0000 (13:09 -0800)
commit17cc592c68cb94461c6377dd5049fc300227844a
treeca407bd959e928a11a0715da4f6694f6b3392011
parent0e68cf94dd3302da4efe6e6b420629dd65ba229a
Test for object version hash changes

Use the ObjectVersionChecker fixture from oslo.versionedobjects to check
when Cinder's registered objects have a change (new remotable method,
new field, etc) that require a version bump.

Fixes some registration problems along the way:

1. CinderObject doesn't need to be registered.
2. TestObject should be registered where it's used, not globally.

Removes deps=requirements.txt from tox.ini since it's not necessary and
prevents us from pip installing oslo.versionedobjects[fixtures].

Closes-Bug: #1514926

Change-Id: Id57c56a75ea11411e9e54104165bd44b577c1485
cinder/objects/base.py
cinder/test.py
cinder/tests/unit/objects/test_base.py
cinder/tests/unit/objects/test_objects.py [new file with mode: 0644]
tox.ini